+
@@ -720,7 +720,7 @@ export default {
showSearch: true,
// 总条数
total: 0,
- // 考核评测表格数据
+ // 考核任务表格数据
pingceList: [],
// 弹出层标题
title: "",
@@ -839,7 +839,7 @@ export default {
this.getVoteItemsList();
},
methods: {
- /** 查询考核评测列表 */
+ /** 查询考核任务列表 */
getList() {
this.loading = true
listPingce(this.queryParams).then(response => {
@@ -897,7 +897,7 @@ export default {
handleAdd() {
this.reset()
this.open = true
- this.title = "添加考核评测"
+ this.title = "添加考核任务"
},
/** 修改按钮操作 */
handleUpdate(row) {
@@ -927,7 +927,7 @@ export default {
}
this.form.pcBkhdxs = [];
this.open = true;
- this.title = "修改考核评测";
+ this.title = "修改考核任务";
})
},
/** 提交按钮 */
@@ -994,7 +994,7 @@ export default {
/** 删除按钮操作 */
handleDelete(row) {
const ids = row.id || this.ids
- this.$modal.confirm('是否确认删除考核评测编号为"' + ids + '"的数据项?').then(function() {
+ this.$modal.confirm('是否确认删除考核任务编号为"' + ids + '"的数据项?').then(function() {
return delPingce(ids)
}).then(() => {
this.getList()
@@ -1164,12 +1164,6 @@ export default {
type: 'Danger'
})
}
- /*if(!Vote.state){
- flag = false;
- this.$alert(`状态不能为空!`, `提示`, {
- type: 'Danger'
- })
- }*/
if(!Vote.sTime){
flag = false;
this.$alert(`开始时间不能为空!`, `提示`, {
@@ -1212,7 +1206,7 @@ export default {
type: 'Danger'
})
}
- if(row.typeId!==5 && (!Vote.percentage)){
+ if(row.typeId!==3 && (!Vote.percentage)){
flag = false;
this.$alert(`评分占比不能为空!`, `提示`, {
type: 'Danger'
@@ -1242,6 +1236,7 @@ export default {
if(Vote.voteItems){
Vote.voteItems = Vote.voteItems.join(',')
}
+ Vote.state = '0'
addVote(Vote).then(response => {
this.$modal.msgSuccess("新增成功")
this.cancelVote()
diff --git a/ruoyi-ui/src/views/kaohe/vote/index.vue b/ruoyi-ui/src/views/kaohe/vote/index.vue
index 80ad6e1..2cc237f 100644
--- a/ruoyi-ui/src/views/kaohe/vote/index.vue
+++ b/ruoyi-ui/src/views/kaohe/vote/index.vue
@@ -59,7 +59,7 @@
选项评分
占比评分
- 单独评分
+ 单独评分
@@ -100,7 +100,7 @@
-
+
@@ -311,12 +311,6 @@ export default {
type: 'Danger'
})
}
- if(!Vote.state){
- flag = false;
- this.$alert(`状态不能为空!`, `提示`, {
- type: 'Danger'
- })
- }
if(!Vote.sTime){
flag = false;
this.$alert(`开始时间不能为空!`, `提示`, {
@@ -359,7 +353,7 @@ export default {
type: 'Danger'
})
}
- if(row.khitemTypeid!==5 && (!Vote.percentage)){
+ if(row.khitemTypeid!==3 && (!Vote.percentage)){
flag = false;
this.$alert(`评分占比不能为空!`, `提示`, {
type: 'Danger'