This commit is contained in:
xiongchengqiang 2020-12-16 16:37:00 +08:00
parent 11eed00b8d
commit 6dded10b78
2 changed files with 52 additions and 2 deletions

View File

@ -23,8 +23,12 @@
</div>
</div>
</template>
<div class="title table-header-flex kaohejieguo" v-if="scoreListForParams.length>0">考核结果</div>
<div class="title table-header-flex jixiaodengji" v-if="scoreListForParams.length>0">绩效等级</div>
</div>
<div class="table-weidu"
<div class="tableRight">
<div>
<div class="table-weidu"
v-for="(item,index) in ((tableInfo.score || tableAuth.showScore)?obj.recortModelDtos:obj.recortModelDtos.slice(0,obj.recortModelDtos.length-1))"
:key="index">
<!-- ((tableInfo.score || tableAuth.showScore) && tableAuth.editScore?obj.recortModelDtos:obj.recortModelDtos.slice(0,obj.recortModelDtos.length-1)) -->
@ -155,6 +159,16 @@
</div>
</div>
</div>
</div>
<div v-if="scoreListForParams.length>0" style='display:flex;'>
<div class="item kaohejieguo">
{{handleGetAllScore(scoreListForParams).score}}
</div>
<div class="item jixiaodengji">
{{handleGetAllScore(scoreListForParams).a}}
</div>
</div>
</div>
</div>
<div v-else
@ -318,7 +332,10 @@ export default {
result += Number(item.Score)
return result
}, 0)
return '总分:' + (this.scoreList.filter(i => i.minScore <= result && i.maxScore > result).length > 0 ? this.scoreList.filter(i => i.minScore <= result && i.maxScore > result)[0].name : '--')
return {
score: result,
a: this.scoreList.find(i => i.minScore <= result && i.maxScore > result).name
}
},
handleGetScorlList (list) {
if (!list) list = []
@ -381,6 +398,23 @@ export default {
}
</script>
<style lang='less' scoped>
.item{
border-right: 1px solid @borderColor;
border-bottom: 1px solid @borderColor;
}
.tableRight{
display: flex;
}
.kaohejieguo{
width: 100px;
.center();
font-size:10px;
}
.jixiaodengji{
width: 100px;
font-size:10px;
.center();
}
.title {
background: #f5f5f5;
border-bottom: 1px solid @borderColor;

View File

@ -50,6 +50,13 @@
@click="showChooseList= true"
type="primary"
>开始评分</el-button>
<el-button
size="small"
type="primary"
v-if="auth.toFast"
@click="handleAddCuiBan"
plain
>一键催办</el-button>
<!-- handleGetList handleChoose -->
<el-button
size="small"
@ -293,6 +300,15 @@ export default {
await this.handleStartsReq()
},
methods: {
async handleAddCuiBan () {
const obj = this.titleList.find(i => i.active)
if (obj.num === 0) return this.$message.info('暂无可催办人员!')
const params = {
startId: this.startId[0],
flowProcess: obj.flowProcess
}
console.log('params: ', params)
},
async handleCallBackChoose (item) {
if (!item.value) return this.$message.info('请选择考评组!')
this.$confirm('所选考评组员工的绩效考核将自动进入评分流程,确认开始评分?', '提示', {