|
|
@@ -151,13 +151,13 @@
|
|
|
>
|
|
|
<template slot-scope="scope">{{ scope.row.createBy | getUserName(userList)}}</template>
|
|
|
</el-table-column>
|
|
|
- <!-- <el-table-column
|
|
|
+ <el-table-column
|
|
|
show-overflow-tooltip
|
|
|
label="提交人"
|
|
|
width="100"
|
|
|
>
|
|
|
- <template slot-scope="scope">{{ getParenthesesStr(scope.row.subject)[2] }}</template>
|
|
|
- </el-table-column> -->
|
|
|
+ <template slot-scope="scope">{{ getName(scope.row) }}</template>
|
|
|
+ </el-table-column>
|
|
|
</template>
|
|
|
<el-table-column show-overflow-tooltip width="160" :key="Date.now() + Math.random()">
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
@@ -415,6 +415,15 @@
|
|
|
handleExpandCollapse(isExpand) {
|
|
|
this.width = isExpand ? 230 : 30
|
|
|
},
|
|
|
+ getName ({createBy, updateBy}) {
|
|
|
+ const id = updateBy ? updateBy : createBy
|
|
|
+ const { name = '' } = this.$store.getters
|
|
|
+ if (this.activeTab === 'finish') {
|
|
|
+ let t = this.userList.find(i => i.userId === id)
|
|
|
+ return t ? t.userName : ''
|
|
|
+ }
|
|
|
+ return name
|
|
|
+ },
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
|
if (rowIndex % 2 === 1) return 'warning-row'
|
|
|
return 'success-row'
|