SunZehao hai 1 ano
pai
achega
e944869796
Modificáronse 1 ficheiros con 21 adicións e 3 borrados
  1. 21 3
      src/components/taskCenter/taskCenterDeptBusinessFrom.vue

+ 21 - 3
src/components/taskCenter/taskCenterDeptBusinessFrom.vue

@@ -67,7 +67,7 @@
                 <el-tabs v-model="activeName" class="demo-tabs" @tab-click="handleClick">
                     <el-tab-pane label="考评指标项内容" name="first">
                         <el-table :data="quantifiedList.slice((pageLeft.currentPage-1)*pageLeft.pagesize, pageLeft.currentPage*pageLeft.pagesize)"
-                         style="width: 100%" @select="rowClick" @select-all="rowClick">
+                         style="width: 100%" @select="rowClick" @select-all="rowClick" :row-class-name="tableRowClassName">
                             <el-table-column label="序号" type="index" width="80" />
                             <el-table-column label="部门名称" prop="deptName" width="260">
                                 <template #default="scope">
@@ -103,7 +103,7 @@
                             </el-table-column>
                             <el-table-column label="审核状态" width="200" >
                                 <template #default="scope">
-                                    <el-select v-model="scope.row.auditStatus"
+                                    <el-select v-model="scope.row.auditStatusKp"
                                      :disabled="userMes.deptId !== '23031009'" placeholder="请选择审核状态">
                                         <el-option
                                         v-for="item in statusData"
@@ -235,6 +235,15 @@ export default {
         rowClick(selection, row) {
             this.changeDateSelect = selection
         },
+        tableRowClassName(row, rowIndex) {
+            if (row.row.auditStatusKp === '-1') {
+                return 'warning-row'
+            } else if (row.row.auditStatusKp === '0') {
+                return 'success-row'
+            } else {
+                return 'error-row'
+            }
+        },
         handleCurrentChangeLeft(val) {
             this.pageLeft.currentPage = val
         },
@@ -282,7 +291,7 @@ export default {
                     targetValue: item.targetValue,
                     baseScore: item.baseScore.toString(),
                     evaluationCriteria: item.evaluationCriteria,
-                    auditStatus: item.auditStatus,
+                    auditStatusKp: item.auditStatusKp,
                     serialNumber: item.serialNumber,
                     completionStatus: item.completionStatus,
                     evaluationScore: item.evaluationScore
@@ -591,6 +600,15 @@ export default {
                                     }
                                 }
                             }
+                            .warning-row {
+                                --el-table-tr-bg-color: #fdf6ec;
+                            }
+                            .success-row {
+                                --el-table-tr-bg-color: #f1f9ec;
+                            }
+                            .error-row {
+                                --el-table-tr-bg-color: #fdecec;
+                            }
                         }
                     }
                 }