diff --git a/ruoyi-ui/src/views/kaohe/ld_employee/index.vue b/ruoyi-ui/src/views/kaohe/ld_employee/index.vue new file mode 100644 index 0000000..9f91c8b --- /dev/null +++ b/ruoyi-ui/src/views/kaohe/ld_employee/index.vue @@ -0,0 +1,707 @@ + + + + + diff --git a/ruoyi-ui/src/views/kaohe/pingce/index.vue b/ruoyi-ui/src/views/kaohe/pingce/index.vue index 1476e2b..8ca8929 100644 --- a/ruoyi-ui/src/views/kaohe/pingce/index.vue +++ b/ruoyi-ui/src/views/kaohe/pingce/index.vue @@ -384,7 +384,7 @@
考核任务名称:{{ pcSetUp.pingceName }}
- + @@ -548,7 +548,7 @@
- +
this.pcSetUp.row.pcBkhdxs.length)){ flag = false; this.$alert(`评优最大值不能大于被考核对象个数!`, `提示`, { @@ -1484,6 +1479,7 @@ export default { this.khdf.list = []; this.khdf.tableHeader = []; this.khdf.open = true; + this.khdf.title = row.pcTitle; this.getListKhResult(row.id); }, // 获取考核得分列表 @@ -1675,7 +1671,9 @@ export default { drwScpfzhSubmit(){ this.$refs["drwScpfzhForm"].validate(valid => { if (valid) { + let VoteIds=[]; this.drwScpfzhForm.itemsOpt.forEach(item=>{ + VoteIds.push(item.selectVotes.map(item1 => item1.id)) item['khrwNames'] = item.pcName +':'+ item.selectVotes.map(item1 => item1.khitemName).join('、'); }) let itemNames = this.drwScpfzhForm.itemsOpt.map(item1 => item1.khrwNames).join(';'); @@ -1685,6 +1683,7 @@ export default { pcNames: this.drwScpfzhForm.pcNames, num: this.drwScpfzhForm.num, itemNames: itemNames, + voteIds: VoteIds.join(','), }).then(response => { this.drwScpfzhOpen = false; this.$modal.msgSuccess("生成成功"); diff --git a/ruoyi-ui/src/views/votepage.vue b/ruoyi-ui/src/views/votepage.vue index 5d3df5f..ab5a39b 100644 --- a/ruoyi-ui/src/views/votepage.vue +++ b/ruoyi-ui/src/views/votepage.vue @@ -10,7 +10,7 @@
{{ item.bkhdxName }} - +
参与评分 {{ item.voteNum!==null?item.voteNum: ''}} 人
均值:{{ item.avgScore!==null?item.avgScore: '' }}
@@ -26,7 +26,7 @@
{{ item.bkhdxName }} - +
参与评分 {{ item.voteNum!==null?item.voteNum: ''}} 人
均值:{{ item.avgScore!==null?item.avgScore: '' }}
@@ -185,7 +185,7 @@ export default { bkhdxName=bkhdxName.slice(0, -1); } - if(pyA>this.vote.umax){ + if(this.vote.umax && pyA>this.vote.umax){ flag = false; this.$alert(`评优数量不能超过评优最大值!`, `提示`, { type: 'Danger' @@ -193,16 +193,27 @@ export default { } if(flag){ if(new Date(this.vote.eTime) > (new Date())){ - VoteEmpSubmit({ - khitemTypeid : this.vote.khitemTypeid, - voteId : this.vote.id, - userId : this.$store.state.user.id, - userName : this.$store.state.user.name, - uid : 1, - voteEmpList: voteEmpList - }).then(response => { - this.$modal.msgSuccess("提交成功"); - this.$router.go(-1) + this.$confirm('是否确认提交评分?', '提示', { + confirmButtonText: '确定', + cancelButtonText: '取消', + type: 'warning' + }).then(() => { + VoteEmpSubmit({ + khitemTypeid : this.vote.khitemTypeid, + voteId : this.vote.id, + userId : this.$store.state.user.id, + userName : this.$store.state.user.name, + uid : 1, + voteEmpList: voteEmpList + }).then(response => { + this.$modal.msgSuccess("提交成功"); + this.$router.go(-1) + }); + }).catch(() => { + this.$message({ + type: 'info', + message: '已取消提交操作' + }); }); }else { this.$alert(`已超时,无法提交评分!`, `提示`, {