|
@@ -87,10 +87,18 @@
|
|
|
|
|
|
<!-- 项目任务报表 -->
|
|
|
<el-table v-if="ins == 1" :key="ins" border :data="list1" highlight-current-row v-loading="listLoading" :height="tableHeight" style="width: 100%;">
|
|
|
- <el-table-column prop="project_code" label="项目编号" width="120"></el-table-column>
|
|
|
+ <el-table-column prop="project_code" label="项目编号" width="120">
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <div>
|
|
|
+ <!-- {{scope.row.project_code}} -->
|
|
|
+ {{scope.row.customCode}}
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column prop="project_name" label="项目名称" width="200">
|
|
|
<template slot-scope="scope" >
|
|
|
- {{scope.row.project_name}}
|
|
|
+ <!-- {{scope.row.project_name}} -->
|
|
|
+ {{scope.row.customName}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="name" label="任务名称" width="300">
|
|
@@ -901,6 +909,18 @@ export default {
|
|
|
},
|
|
|
res => {
|
|
|
if (res.code == "ok") {
|
|
|
+ for(var i in res.data.records) {
|
|
|
+ if(i > 0 && (res.data.records[i].project_code == res.data.records[i - 1].project_code)) {
|
|
|
+ res.data.records[i].customCode = '——'
|
|
|
+ } else {
|
|
|
+ res.data.records[i].customCode = res.data.records[i].project_code
|
|
|
+ }
|
|
|
+ if(i > 0 && (res.data.records[i].project_name == res.data.records[i - 1].project_name)) {
|
|
|
+ res.data.records[i].customName = '——'
|
|
|
+ } else {
|
|
|
+ res.data.records[i].customName = res.data.records[i].project_name
|
|
|
+ }
|
|
|
+ }
|
|
|
this.list1 = res.data.records;
|
|
|
this.total = res.data.total;
|
|
|
this.listLoading = false;
|