代码提交
This commit is contained in:
parent
1d0ecbacc6
commit
cd04d17d4c
|
@ -64,7 +64,7 @@
|
|||
</el-table-column>
|
||||
<el-table-column label="计划/实际" align="center" prop="flag" width="100">
|
||||
<template #default="scope">
|
||||
<span>{{ scope.row.category === 1 ? '计划' : '实际' }}</span>
|
||||
<span>{{ scope.row.flag === 'plan' ? '计划' : '实际' }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<!-- <el-table-column label="计划时间" align="center" prop="planDate" width="180">
|
||||
|
@ -278,12 +278,9 @@ function handleChangeCellStyle({ row, column, rowIndex, columnIndex }) {
|
|||
const nbsp = " "
|
||||
function handleName(row) {
|
||||
let res = ''
|
||||
let arr = row.ancestors.split(',')
|
||||
if (arr.length > 1) {
|
||||
for (let i = 1; i < arr.length; i++) {
|
||||
if (row.parentId != 0) {
|
||||
res = res + nbsp
|
||||
}
|
||||
}
|
||||
return res
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue