代码提交

This commit is contained in:
userName 2024-02-22 10:07:06 +08:00
parent 1d0ecbacc6
commit cd04d17d4c
1 changed files with 2 additions and 5 deletions

View File

@ -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 = "&nbsp;&nbsp;&nbsp;&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
}