2025-01-02 09:57:15 +00:00
|
|
|
|
<template>
|
|
|
|
|
|
<div class="conetentBox">
|
|
|
|
|
|
<div class="flex-row jcsb aic userBox">
|
|
|
|
|
|
<div>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<el-form :inline="true" class="demo-form-inline" size="small">
|
2025-01-02 09:57:15 +00:00
|
|
|
|
<el-form-item label="考核人员" class="form-item">
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="examineId"
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
@change="userChange"
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in userList"
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
:label="item.userName"
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
2025-01-02 09:57:15 +00:00
|
|
|
|
</el-form-item>
|
|
|
|
|
|
<el-form-item label="考核任务" class="form-item">
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<el-select
|
|
|
|
|
|
v-model="examineTaskId"
|
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
|
@change="getUserList"
|
|
|
|
|
|
>
|
2025-01-02 09:57:15 +00:00
|
|
|
|
<el-option
|
|
|
|
|
|
v-for="item in taskList"
|
2025-01-06 04:35:35 +00:00
|
|
|
|
:key="item.id"
|
|
|
|
|
|
:label="item.taskName"
|
|
|
|
|
|
:value="item.id"
|
2025-01-02 09:57:15 +00:00
|
|
|
|
>
|
|
|
|
|
|
</el-option>
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
</el-form>
|
|
|
|
|
|
</div>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<div>考核评分:{{ score }}</div>
|
2025-01-02 09:57:15 +00:00
|
|
|
|
</div>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<el-tabs v-model="activeName" type="card">
|
2025-01-02 09:57:15 +00:00
|
|
|
|
<el-tab-pane label="组长评估" name="first">
|
|
|
|
|
|
<div
|
2025-01-06 04:35:35 +00:00
|
|
|
|
v-for="(table, index) in tableData1"
|
2025-01-02 09:57:15 +00:00
|
|
|
|
:key="index"
|
|
|
|
|
|
style="margin-bottom: 20px"
|
|
|
|
|
|
>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<div class="userBox">{{ table[0].reviewCategory }}</div>
|
2025-01-02 09:57:15 +00:00
|
|
|
|
<el-table :data="table" style="width: 100%">
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
v-for="(header, hIndex) in headers"
|
|
|
|
|
|
:key="hIndex"
|
|
|
|
|
|
:label="header.label"
|
|
|
|
|
|
:prop="header.prop"
|
|
|
|
|
|
:width="header.width"
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="评分" prop="score" width="300">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div style="width: 80%; position: relative">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-slider
|
|
|
|
|
|
v-model="scope.row.score"
|
|
|
|
|
|
:min="0"
|
|
|
|
|
|
:max="10"
|
2025-01-06 04:35:35 +00:00
|
|
|
|
disabled
|
2025-01-02 09:57:15 +00:00
|
|
|
|
></el-slider>
|
|
|
|
|
|
</div>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<div class="statusText" v-show="scope.row.score == 0">
|
|
|
|
|
|
未打分
|
|
|
|
|
|
</div>
|
2025-01-02 09:57:15 +00:00
|
|
|
|
|
|
|
|
|
|
<div class="flex-row jcsb" style="margin-left: 10px">
|
|
|
|
|
|
<div>0</div>
|
|
|
|
|
|
<div class="scoreText">{{ scope.row.score }}分</div>
|
|
|
|
|
|
<div>10</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<div class="userBox">总体评价</div>
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
:autosize="{ minRows: 4 }"
|
|
|
|
|
|
placeholder="0/300"
|
2025-01-06 04:35:35 +00:00
|
|
|
|
v-model="judgeContent"
|
2025-01-02 09:57:15 +00:00
|
|
|
|
readonly
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div></div
|
|
|
|
|
|
></el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="个人自评" name="second">
|
|
|
|
|
|
<div
|
2025-01-06 04:35:35 +00:00
|
|
|
|
v-for="(table, index) in tableData2"
|
2025-01-02 09:57:15 +00:00
|
|
|
|
:key="index"
|
|
|
|
|
|
style="margin-bottom: 20px"
|
|
|
|
|
|
>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<div class="userBox">表格 {{ table[0].reviewCategory }}</div>
|
2025-01-02 09:57:15 +00:00
|
|
|
|
<el-table :data="table" style="width: 100%">
|
|
|
|
|
|
<el-table-column
|
|
|
|
|
|
v-for="(header, hIndex) in headers"
|
|
|
|
|
|
:key="hIndex"
|
|
|
|
|
|
:label="header.label"
|
|
|
|
|
|
:prop="header.prop"
|
|
|
|
|
|
:width="header.width"
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="评分" prop="score" width="300">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div style="width: 80%; position: relative">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-slider
|
|
|
|
|
|
v-model="scope.row.score"
|
|
|
|
|
|
:min="0"
|
|
|
|
|
|
:max="10"
|
2025-01-06 04:35:35 +00:00
|
|
|
|
disabled
|
2025-01-02 09:57:15 +00:00
|
|
|
|
></el-slider>
|
|
|
|
|
|
</div>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
<div class="statusText" v-show="scope.row.score == 0">
|
|
|
|
|
|
未打分
|
|
|
|
|
|
</div>
|
2025-01-02 09:57:15 +00:00
|
|
|
|
|
|
|
|
|
|
<div class="flex-row jcsb" style="margin-left: 10px">
|
|
|
|
|
|
<div>0</div>
|
|
|
|
|
|
<div class="scoreText">{{ scope.row.score }}分</div>
|
|
|
|
|
|
<div>10</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
<el-table-column label="自评总结" prop="score" width="300">
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-button
|
2025-01-06 04:35:35 +00:00
|
|
|
|
v-if="scope.row.remark"
|
2025-01-02 09:57:15 +00:00
|
|
|
|
@click="handleEdit(scope.row)"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
size="mini"
|
2025-01-06 04:35:35 +00:00
|
|
|
|
icon="el-icon-view"
|
|
|
|
|
|
:class="{ hasEdit: !scope.row.remark }"
|
|
|
|
|
|
>查看</el-button
|
|
|
|
|
|
>
|
|
|
|
|
|
<el-button
|
|
|
|
|
|
v-if="!scope.row.remark"
|
|
|
|
|
|
type="text"
|
|
|
|
|
|
size="mini"
|
2025-01-02 09:57:15 +00:00
|
|
|
|
:class="{ hasEdit: !scope.row.remark }"
|
2025-01-06 04:35:35 +00:00
|
|
|
|
>未填写</el-button
|
2025-01-02 09:57:15 +00:00
|
|
|
|
>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
<div></div
|
|
|
|
|
|
></el-tab-pane>
|
|
|
|
|
|
</el-tabs>
|
|
|
|
|
|
<el-dialog title="自评总结" :visible.sync="dialogVisible" width="30%">
|
|
|
|
|
|
<div>
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
type="textarea"
|
|
|
|
|
|
:autosize="{ minRows: 4 }"
|
|
|
|
|
|
placeholder="0/200"
|
|
|
|
|
|
v-model="remark"
|
|
|
|
|
|
readonly
|
|
|
|
|
|
>
|
|
|
|
|
|
</el-input>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
|
|
|
<el-button @click="dialogVisible = false">关闭</el-button>
|
|
|
|
|
|
</span>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2025-01-06 04:35:35 +00:00
|
|
|
|
import { taskApi } from "@/utils/api";
|
2025-01-02 09:57:15 +00:00
|
|
|
|
export default {
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2025-01-06 04:35:35 +00:00
|
|
|
|
examineTaskId: "",
|
|
|
|
|
|
examineId: "",
|
|
|
|
|
|
userList: [],
|
2025-01-02 09:57:15 +00:00
|
|
|
|
dialogVisible: false,
|
|
|
|
|
|
remark: "",
|
|
|
|
|
|
headers: [
|
2025-01-06 04:35:35 +00:00
|
|
|
|
{ label: "考核项", prop: "reviewItem", width: 300 },
|
|
|
|
|
|
{ label: "评分标准", prop: "remarks" },
|
2025-01-02 09:57:15 +00:00
|
|
|
|
],
|
|
|
|
|
|
// 二维数组,每个子数组代表一个表格的数据
|
2025-01-06 04:35:35 +00:00
|
|
|
|
tableData1: [],
|
|
|
|
|
|
tableData2: [],
|
|
|
|
|
|
taskList: [],
|
|
|
|
|
|
judgeContent: "",
|
|
|
|
|
|
score: "",
|
2025-01-02 09:57:15 +00:00
|
|
|
|
activeName: "first",
|
|
|
|
|
|
};
|
|
|
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
|
|
|
handleEdit(row) {
|
|
|
|
|
|
this.dialogVisible = true;
|
|
|
|
|
|
this.remark = row.remark;
|
|
|
|
|
|
},
|
2025-01-06 04:35:35 +00:00
|
|
|
|
|
|
|
|
|
|
getTaskList() {
|
|
|
|
|
|
taskApi
|
|
|
|
|
|
.getTaskList({
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 100000,
|
|
|
|
|
|
})
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
this.taskList = res.rows;
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.examineTaskId = Number(this.$route.query.taskId);
|
|
|
|
|
|
this.getUserList();
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
getUserList() {
|
|
|
|
|
|
if (!this.examineTaskId) return;
|
|
|
|
|
|
taskApi
|
|
|
|
|
|
.getTaskUserList({
|
|
|
|
|
|
taskId: this.examineTaskId,
|
|
|
|
|
|
pageNum: 1,
|
|
|
|
|
|
pageSize: 100000,
|
|
|
|
|
|
})
|
|
|
|
|
|
.then((res) => {
|
|
|
|
|
|
this.userList = res.rows;
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.examineId = Number(this.$route.query.examineId);
|
|
|
|
|
|
this.getSocreDetail(0);
|
|
|
|
|
|
this.getSocreDetail(1);
|
|
|
|
|
|
});
|
|
|
|
|
|
});
|
2025-01-02 09:57:15 +00:00
|
|
|
|
},
|
2025-01-06 04:35:35 +00:00
|
|
|
|
userChange() {
|
|
|
|
|
|
this.getSocreDetail(0);
|
|
|
|
|
|
this.getSocreDetail(1);
|
2025-01-02 09:57:15 +00:00
|
|
|
|
},
|
2025-01-06 04:35:35 +00:00
|
|
|
|
// 获取评分详情
|
|
|
|
|
|
getSocreDetail(type) {
|
|
|
|
|
|
let param = {
|
|
|
|
|
|
examineTaskId: this.examineTaskId,
|
|
|
|
|
|
reviewType: type,
|
|
|
|
|
|
examineId: this.examineId,
|
|
|
|
|
|
};
|
|
|
|
|
|
taskApi.getTaskScoreDetail(param).then((res) => {
|
|
|
|
|
|
let objData = {};
|
|
|
|
|
|
res.data.examineConfigDetailVoList.forEach((ele) => {
|
|
|
|
|
|
if (!objData[ele.reviewCategory]) objData[ele.reviewCategory] = [];
|
|
|
|
|
|
objData[ele.reviewCategory].push(ele);
|
|
|
|
|
|
});
|
|
|
|
|
|
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;
|
|
|
|
|
|
});
|
2025-01-02 09:57:15 +00:00
|
|
|
|
},
|
|
|
|
|
|
},
|
2025-01-06 04:35:35 +00:00
|
|
|
|
created() {
|
|
|
|
|
|
this.getTaskList();
|
|
|
|
|
|
},
|
2025-01-02 09:57:15 +00:00
|
|
|
|
};
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
|
|
.conetentBox {
|
|
|
|
|
|
padding: 30px;
|
|
|
|
|
|
background-color: #fff;
|
|
|
|
|
|
height: 90vh; /* 设置整体高度 */
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
}
|
|
|
|
|
|
.el-table {
|
|
|
|
|
|
margin-top: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.userBox {
|
|
|
|
|
|
margin: 0 0 20px;
|
|
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: bold;
|
|
|
|
|
|
}
|
|
|
|
|
|
::v-deep .el-slider__runway {
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
margin: 10px !important;
|
|
|
|
|
|
/* width: 95%; */
|
|
|
|
|
|
}
|
|
|
|
|
|
::v-deep .el-slider__bar {
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
background-color: #ff5722;
|
|
|
|
|
|
}
|
2025-01-06 04:35:35 +00:00
|
|
|
|
::v-deep .el-slider__runway.disabled .el-slider__bar {
|
|
|
|
|
|
background-color: #ff5722;
|
|
|
|
|
|
}
|
|
|
|
|
|
::v-deep .el-slider__bar {
|
|
|
|
|
|
height: 20px;
|
|
|
|
|
|
border-radius: 20px;
|
|
|
|
|
|
background-color: #ff5722;
|
|
|
|
|
|
}
|
2025-01-02 09:57:15 +00:00
|
|
|
|
::v-deep .el-slider__button {
|
|
|
|
|
|
display: none;
|
|
|
|
|
|
}
|
|
|
|
|
|
.scoreText {
|
|
|
|
|
|
color: #1686d8;
|
|
|
|
|
|
}
|
|
|
|
|
|
::v-deep .el-table th {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
::v-deep .el-table .cell {
|
|
|
|
|
|
text-align: center;
|
|
|
|
|
|
}
|
|
|
|
|
|
.statusText {
|
|
|
|
|
|
color: #ff5722;
|
|
|
|
|
|
position: absolute;
|
|
|
|
|
|
right: -58px;
|
|
|
|
|
|
top: 10px;
|
|
|
|
|
|
}
|
|
|
|
|
|
.hasEdit {
|
|
|
|
|
|
color: #ff5722;
|
|
|
|
|
|
}
|
|
|
|
|
|
::v-deep .el-dialog {
|
|
|
|
|
|
margin-top: 15% !important;
|
|
|
|
|
|
}
|
2025-01-06 04:35:35 +00:00
|
|
|
|
|
|
|
|
|
|
::v-deep .el-tab-pane {
|
|
|
|
|
|
height: 600px;
|
|
|
|
|
|
overflow: auto;
|
|
|
|
|
|
}
|
2025-01-02 09:57:15 +00:00
|
|
|
|
</style>
|