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