diff --git a/src/views/projectBank/userScore.vue b/src/views/projectBank/userScore.vue
index 71d9a67..5c8b566 100644
--- a/src/views/projectBank/userScore.vue
+++ b/src/views/projectBank/userScore.vue
@@ -87,7 +87,21 @@ export default {
},
columns: [
{ prop: "userName", label: "考核人员" },
- { prop: "manageScore", label: "考核评分", sortable: "custom" },
+ {
+ prop: "score",
+ label: "考核评分",
+ sortable: "custom",
+ type: "status",
+ callback: (value, row) => {
+ if (row.score) {
+ return row.score;
+ } else if (row.manageScore) {
+ return row.manageScore;
+ } else {
+ return row.selfScore;
+ }
+ },
+ },
{
prop: "examineStatus",
label: "状态",
@@ -101,8 +115,10 @@ export default {
return `待个人自评/组长评分`;
} else if (row.examineStatusSelf == 0) {
return `待个人自评`;
+ } else if (row.examineStatus == 0) {
+ return `待组长评分`;
} else {
- return `待组长评分评`;
+ return `已完成`;
}
},
},
@@ -139,9 +155,17 @@ export default {
this.getTaskUserList();
},
handleEdit(row, edit) {
+ let score = "";
+ if (row.score) {
+ score = row.score;
+ } else if (row.manageScore) {
+ score = row.manageScore;
+ } else {
+ score = row.selfScore;
+ }
this.$router.push({
path: "/projectBank/userScoreDetail",
- query: { taskId: row.taskId, examineId: row.id },
+ query: { taskId: row.taskId, examineId: row.id, score },
});
},
getTaskUserList() {
@@ -321,7 +345,7 @@ export default {
::v-deep .el-tree-node__content {
font-weight: bold;
}
-::v-deep .is-current>.el-tree-node__content:first-child .el-tree-node__label {
+::v-deep .is-current > .el-tree-node__content:first-child .el-tree-node__label {
color: #4096ff !important;
}
::v-deep .el-tree-node__content {
diff --git a/src/views/projectBank/userScoreDetail.vue b/src/views/projectBank/userScoreDetail.vue
index 7564590..b4d008d 100644
--- a/src/views/projectBank/userScoreDetail.vue
+++ b/src/views/projectBank/userScoreDetail.vue
@@ -45,19 +45,19 @@
+
+
-
+
{{ scope.row.remark ? "查看" : "暂未评价" }}
-
- {
this.examineTaskId = Number(this.$route.query.taskId);
- this.getUserList();
+ this.getUserList(first);
});
});
},
- getUserList() {
+ getUserList(first) {
if (!this.examineTaskId) return;
taskApi
.getTaskUserList({
@@ -380,7 +369,9 @@ export default {
.then((res) => {
this.userList = res.rows;
this.$nextTick(() => {
- this.examineId = Number(this.$route.query.examineId);
+ if (first !== 1) this.examineId = this.userList[0].id;
+ else this.examineId = Number(this.$route.query.examineId);
+
this.getSocreDetail(0);
this.getSocreDetail(1);
});
@@ -406,12 +397,20 @@ export default {
if (type == 0) this.tableData1 = Object.values(objData);
else this.tableData2 = Object.values(objData);
this.judgeContent = res.data.examineUser.judgeContent;
- this.score = res.data.examineUser.score||res.data.examineUser.manageScore;
+
+ this.manageUserName = res.data.examineUser.manageUserName;
+ if (res.data.examineUser.score) {
+ this.score = res.data.examineUser.score;
+ } else if (res.data.examineUser.manageScore) {
+ this.score = res.data.examineUser.manageScore;
+ } else {
+ this.score = res.data.examineUser.selfScore;
+ }
});
},
},
created() {
- this.getTaskList();
+ this.getTaskList(1);
},
};
@@ -513,7 +512,7 @@ export default {
padding: 20px;
background-color: #f9f9f9;
border-radius: 2px;
- font-size: 14px;
+ font-size: 16px;
}
.block {
width: 4px;
@@ -530,10 +529,10 @@ export default {
z-index: 100;
}
.totalBox {
- width: 150px;
+ width: 180px;
display: flex;
flex-direction: row;
- font-size: 14px;
+ font-size: 16px;
color: #333333;
}
.scoreTotal {
@@ -550,4 +549,17 @@ export default {
::v-deep .el-table__header .el-table__cell {
padding: 14px 30px;
}
+::v-deep .el-tabs__item.is-active {
+ color: #4096ff;
+}
+::v-deep .el-tabs__item {
+ font-size: 18px;
+ font-weight: bold;
+ color: #999999;
+}
+::v-deep .el-tabs__active-bar {
+ height: 3px;
+ width: 32px !important;
+ left: 20px;
+}
diff --git a/src/views/workAppraisal/detail.vue b/src/views/workAppraisal/detail.vue
index 24a2884..d90c5c9 100644
--- a/src/views/workAppraisal/detail.vue
+++ b/src/views/workAppraisal/detail.vue
@@ -15,7 +15,7 @@
+
+
+
+
-
+
+
+
+
@@ -217,7 +221,7 @@ export default {
::v-deep .el-tag--warning {
color: #ea741e;
}
-.waitBtn{
+.waitBtn {
color: #999;
}
diff --git a/src/views/workAppraisal/normalWorker.vue b/src/views/workAppraisal/normalWorker.vue
index e0fd015..7aea9e8 100644
--- a/src/views/workAppraisal/normalWorker.vue
+++ b/src/views/workAppraisal/normalWorker.vue
@@ -37,7 +37,9 @@
-
+
+
@@ -75,8 +77,10 @@
-
+
+
+
+
@@ -120,7 +124,7 @@ export default {
},
created() {
console.log(123);
-
+
this.getTaks();
},
};