{{ 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(`已超时,无法提交评分!`, `提示`, {