|
|
|
|
@ -490,7 +490,16 @@
|
|
|
|
|
|
|
|
|
|
<!--查看考核得分-->
|
|
|
|
|
<el-dialog title="查看考核得分" :visible.sync="khdf.open" width="90%" top="20px !important">
|
|
|
|
|
|
|
|
|
|
<div style="margin-bottom: 10px;">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-download"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="khdfExport"
|
|
|
|
|
v-hasPermi="['kaohe:kh_result:export']"
|
|
|
|
|
>导出</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<el-table border :data="khdf.list" height="650px">
|
|
|
|
|
<template v-for="column in khdf.tableHeader">
|
|
|
|
|
<table-column :key="column.label" :column="column" />
|
|
|
|
|
@ -554,6 +563,8 @@ export default {
|
|
|
|
|
// 考核得分
|
|
|
|
|
khdf:{
|
|
|
|
|
open: false,
|
|
|
|
|
id: null,
|
|
|
|
|
pcName: null,
|
|
|
|
|
list: [],
|
|
|
|
|
tableHeader: []
|
|
|
|
|
},
|
|
|
|
|
@ -1213,6 +1224,8 @@ export default {
|
|
|
|
|
pageSize: 10,
|
|
|
|
|
pcId: pcId,
|
|
|
|
|
}).then(response => {
|
|
|
|
|
this.khdf.id = response.rows[0].id;
|
|
|
|
|
this.khdf.pcName = response.rows[0].pcName;
|
|
|
|
|
this.khdf.list = JSON.parse(response.rows[0].tableData);
|
|
|
|
|
let btTabelTree = JSON.parse(response.rows[0].tableHeader);
|
|
|
|
|
btTabelTree.forEach(item => {
|
|
|
|
|
@ -1291,6 +1304,10 @@ export default {
|
|
|
|
|
this.$modal.msgSuccess("删除成功")
|
|
|
|
|
}).catch(() => {})
|
|
|
|
|
},
|
|
|
|
|
// 考核得分导出
|
|
|
|
|
khdfExport(){
|
|
|
|
|
this.download('kaohe/kh_result/exportById?id='+this.khdf.id, {}, `${ this.khdf.pcName+''+new Date().getTime()}.xlsx`)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
</script>
|
|
|
|
|
|