上线完成
parent
74de4ef76c
commit
829acc5857
|
@ -87,7 +87,21 @@ export default {
|
||||||
},
|
},
|
||||||
columns: [
|
columns: [
|
||||||
{ prop: "userName", label: "考核人员" },
|
{ 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",
|
prop: "examineStatus",
|
||||||
label: "状态",
|
label: "状态",
|
||||||
|
@ -101,8 +115,10 @@ export default {
|
||||||
return `<span style="color: ${color}">待个人自评/组长评分</span>`;
|
return `<span style="color: ${color}">待个人自评/组长评分</span>`;
|
||||||
} else if (row.examineStatusSelf == 0) {
|
} else if (row.examineStatusSelf == 0) {
|
||||||
return `<span style="color: ${color}">待个人自评</span>`;
|
return `<span style="color: ${color}">待个人自评</span>`;
|
||||||
|
} else if (row.examineStatus == 0) {
|
||||||
|
return `<span style="color: ${color}">待组长评分</span>`;
|
||||||
} else {
|
} else {
|
||||||
return `<span style="color: ${color}">待组长评分评</span>`;
|
return `<span style="color: ${color}">已完成</span>`;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -139,9 +155,17 @@ export default {
|
||||||
this.getTaskUserList();
|
this.getTaskUserList();
|
||||||
},
|
},
|
||||||
handleEdit(row, edit) {
|
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({
|
this.$router.push({
|
||||||
path: "/projectBank/userScoreDetail",
|
path: "/projectBank/userScoreDetail",
|
||||||
query: { taskId: row.taskId, examineId: row.id },
|
query: { taskId: row.taskId, examineId: row.id, score },
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getTaskUserList() {
|
getTaskUserList() {
|
||||||
|
@ -321,7 +345,7 @@ export default {
|
||||||
::v-deep .el-tree-node__content {
|
::v-deep .el-tree-node__content {
|
||||||
font-weight: bold;
|
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;
|
color: #4096ff !important;
|
||||||
}
|
}
|
||||||
::v-deep .el-tree-node__content {
|
::v-deep .el-tree-node__content {
|
||||||
|
|
|
@ -45,19 +45,19 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-row jcsb aic userBox headerBox">
|
<div class="flex-row jcsb aic userBox headerBox">
|
||||||
<div class="flex-row aic">
|
<div class="flex-row aic" style="width: 200px">
|
||||||
<i
|
<i
|
||||||
class="el-icon-user-solid"
|
class="el-icon-user-solid"
|
||||||
style="color: #4096ff; font-size: 24px; margin-right: 5px"
|
style="color: #4096ff; font-size: 24px; margin-right: 5px"
|
||||||
></i
|
></i
|
||||||
>{{ userList.find((ele) => ele.id == examineId).userName }}
|
>{{ (userList.find((ele) => ele.id == examineId) || {}).userName }}
|
||||||
</div>
|
</div>
|
||||||
<div class="totalBox aic" v-if="!isNormal">
|
<div class="totalBox aic">
|
||||||
<div>考核评分:</div>
|
<div>考核评分:</div>
|
||||||
<div class="scoreTotal">{{ score }}</div>
|
<div class="scoreTotal">{{ score }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-tabs v-model="activeName" type="card">
|
<el-tabs v-model="activeName">
|
||||||
<el-tab-pane label="组长评估" name="first">
|
<el-tab-pane label="组长评估" name="first">
|
||||||
<div class="tableBox">
|
<div class="tableBox">
|
||||||
<div
|
<div
|
||||||
|
@ -141,7 +141,7 @@
|
||||||
v-model="scope.row.score"
|
v-model="scope.row.score"
|
||||||
:min="0"
|
:min="0"
|
||||||
:max="10"
|
:max="10"
|
||||||
:disabled="!isEdit"
|
:disabled="true"
|
||||||
style="width: 90%"
|
style="width: 90%"
|
||||||
show-stops
|
show-stops
|
||||||
show-tooltip
|
show-tooltip
|
||||||
|
@ -164,15 +164,17 @@
|
||||||
:autosize="{ minRows: 4 }"
|
:autosize="{ minRows: 4 }"
|
||||||
placeholder="0/300"
|
placeholder="0/300"
|
||||||
v-model="judgeContent"
|
v-model="judgeContent"
|
||||||
:readonly="!isEdit"
|
:readonly="true"
|
||||||
maxlength="300"
|
maxlength="300"
|
||||||
show-word-limit
|
show-word-limit
|
||||||
>
|
>
|
||||||
</el-input>
|
</el-input>
|
||||||
</div>
|
</div>
|
||||||
|
<div style="margin-top: 20px;font-weight: bold;">组长:{{ manageUserName }}</div>
|
||||||
</div>
|
</div>
|
||||||
</div></div
|
</div>
|
||||||
></el-tab-pane>
|
</div></el-tab-pane
|
||||||
|
>
|
||||||
<el-tab-pane label="个人自评" name="second">
|
<el-tab-pane label="个人自评" name="second">
|
||||||
<div class="tableBox">
|
<div class="tableBox">
|
||||||
<div
|
<div
|
||||||
|
@ -257,7 +259,7 @@
|
||||||
:min="0"
|
:min="0"
|
||||||
:max="10"
|
:max="10"
|
||||||
@change="updateScore(scope.row)"
|
@change="updateScore(scope.row)"
|
||||||
:disabled="!isEdit"
|
:disabled="true"
|
||||||
style="width: 90%"
|
style="width: 90%"
|
||||||
show-stops
|
show-stops
|
||||||
show-tooltip
|
show-tooltip
|
||||||
|
@ -269,24 +271,10 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="自评总结" prop="score">
|
<el-table-column label="自评总结" prop="score" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
<el-button
|
<el-button
|
||||||
v-if="isEdit"
|
|
||||||
@click="handleEdit(scope.row)"
|
|
||||||
type="text"
|
|
||||||
size="mini"
|
|
||||||
:class="{ hasEdit: !scope.row.remark }"
|
|
||||||
style="font-weight: 600"
|
|
||||||
>{{ scope.row.remark ? "查看" : "暂未评价" }}
|
|
||||||
<i
|
|
||||||
style="color: #4096ff; font-size: 14px"
|
|
||||||
class="el-icon-edit el-icon--right"
|
|
||||||
></i
|
|
||||||
></el-button>
|
|
||||||
<el-button
|
|
||||||
v-if="!isEdit"
|
|
||||||
@click="handleEdit(scope.row)"
|
@click="handleEdit(scope.row)"
|
||||||
type="text"
|
type="text"
|
||||||
size="mini"
|
size="mini"
|
||||||
|
@ -347,6 +335,7 @@ export default {
|
||||||
judgeContent: "",
|
judgeContent: "",
|
||||||
score: "",
|
score: "",
|
||||||
activeName: "first",
|
activeName: "first",
|
||||||
|
manageUserName: "",
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@ -355,7 +344,7 @@ export default {
|
||||||
this.remark = row.remark;
|
this.remark = row.remark;
|
||||||
},
|
},
|
||||||
|
|
||||||
getTaskList() {
|
getTaskList(first) {
|
||||||
taskApi
|
taskApi
|
||||||
.getTaskList({
|
.getTaskList({
|
||||||
pageNum: 1,
|
pageNum: 1,
|
||||||
|
@ -365,11 +354,11 @@ export default {
|
||||||
this.taskList = res.rows;
|
this.taskList = res.rows;
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.examineTaskId = Number(this.$route.query.taskId);
|
this.examineTaskId = Number(this.$route.query.taskId);
|
||||||
this.getUserList();
|
this.getUserList(first);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
getUserList() {
|
getUserList(first) {
|
||||||
if (!this.examineTaskId) return;
|
if (!this.examineTaskId) return;
|
||||||
taskApi
|
taskApi
|
||||||
.getTaskUserList({
|
.getTaskUserList({
|
||||||
|
@ -380,7 +369,9 @@ export default {
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
this.userList = res.rows;
|
this.userList = res.rows;
|
||||||
this.$nextTick(() => {
|
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(0);
|
||||||
this.getSocreDetail(1);
|
this.getSocreDetail(1);
|
||||||
});
|
});
|
||||||
|
@ -406,12 +397,20 @@ export default {
|
||||||
if (type == 0) this.tableData1 = Object.values(objData);
|
if (type == 0) this.tableData1 = Object.values(objData);
|
||||||
else this.tableData2 = Object.values(objData);
|
else this.tableData2 = Object.values(objData);
|
||||||
this.judgeContent = res.data.examineUser.judgeContent;
|
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() {
|
created() {
|
||||||
this.getTaskList();
|
this.getTaskList(1);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
|
@ -513,7 +512,7 @@ export default {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
.block {
|
.block {
|
||||||
width: 4px;
|
width: 4px;
|
||||||
|
@ -530,10 +529,10 @@ export default {
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.totalBox {
|
.totalBox {
|
||||||
width: 150px;
|
width: 180px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
.scoreTotal {
|
.scoreTotal {
|
||||||
|
@ -550,4 +549,17 @@ export default {
|
||||||
::v-deep .el-table__header .el-table__cell {
|
::v-deep .el-table__header .el-table__cell {
|
||||||
padding: 14px 30px;
|
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;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -15,7 +15,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex-row jcsb aic userBox headerBox">
|
<div class="flex-row jcsb aic userBox headerBox">
|
||||||
<div class="flex-row aic">
|
<div class="flex-row aic" style="width: 200px;">
|
||||||
<i
|
<i
|
||||||
class="el-icon-user-solid"
|
class="el-icon-user-solid"
|
||||||
style="color: #4096ff; font-size: 24px; margin-right: 5px"
|
style="color: #4096ff; font-size: 24px; margin-right: 5px"
|
||||||
|
@ -122,7 +122,7 @@
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column label="自评总结" prop="score" v-if="isNormal">
|
<el-table-column label="自评总结" prop="score" v-if="isNormal" width="150">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
<div>
|
<div>
|
||||||
<el-button
|
<el-button
|
||||||
|
@ -493,7 +493,7 @@ export default {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
background-color: #f9f9f9;
|
background-color: #f9f9f9;
|
||||||
border-radius: 2px;
|
border-radius: 2px;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
.block {
|
.block {
|
||||||
width: 4px;
|
width: 4px;
|
||||||
|
@ -510,10 +510,10 @@ export default {
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
}
|
}
|
||||||
.totalBox {
|
.totalBox {
|
||||||
width: 150px;
|
width: 180px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
font-size: 14px;
|
font-size: 16px;
|
||||||
color: #333333;
|
color: #333333;
|
||||||
}
|
}
|
||||||
.scoreTotal {
|
.scoreTotal {
|
||||||
|
|
|
@ -37,8 +37,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div></div
|
</div>
|
||||||
></el-tab-pane>
|
</div>
|
||||||
|
<el-empty v-if="!taskList['0']" description="暂无数据"></el-empty>
|
||||||
|
</el-tab-pane>
|
||||||
<el-tab-pane label="已过期" name="已过期">
|
<el-tab-pane label="已过期" name="已过期">
|
||||||
<div class="assessment-container flex-row">
|
<div class="assessment-container flex-row">
|
||||||
<div v-for="item in taskList['2']" :key="item.id" class="taskBox">
|
<div v-for="item in taskList['2']" :key="item.id" class="taskBox">
|
||||||
|
@ -75,8 +77,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div></div
|
</div>
|
||||||
></el-tab-pane>
|
</div>
|
||||||
|
<el-empty v-if="!taskList['2']" description="暂无数据"></el-empty>
|
||||||
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -217,7 +221,7 @@ export default {
|
||||||
::v-deep .el-tag--warning {
|
::v-deep .el-tag--warning {
|
||||||
color: #ea741e;
|
color: #ea741e;
|
||||||
}
|
}
|
||||||
.waitBtn{
|
.waitBtn {
|
||||||
color: #999;
|
color: #999;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
@ -37,7 +37,9 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div></div
|
</div>
|
||||||
|
</div>
|
||||||
|
<el-empty v-if="!taskList['0']" description="暂无数据"></el-empty
|
||||||
></el-tab-pane>
|
></el-tab-pane>
|
||||||
<el-tab-pane label="已过期" name="已过期">
|
<el-tab-pane label="已过期" name="已过期">
|
||||||
<div class="assessment-container flex-row">
|
<div class="assessment-container flex-row">
|
||||||
|
@ -75,8 +77,10 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div></div
|
</div>
|
||||||
></el-tab-pane>
|
</div>
|
||||||
|
<el-empty v-if="!taskList['2']" description="暂无数据"></el-empty>
|
||||||
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -120,7 +124,7 @@ export default {
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
console.log(123);
|
console.log(123);
|
||||||
|
|
||||||
this.getTaks();
|
this.getTaks();
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue