|
@@ -539,7 +539,6 @@ export default {
|
|
this.toleadResult.id = 0
|
|
this.toleadResult.id = 0
|
|
this.toleadResult.name = '文件格式上传错误,仅支持上传xlsx,xls)'
|
|
this.toleadResult.name = '文件格式上传错误,仅支持上传xlsx,xls)'
|
|
this.nowIndex = 3
|
|
this.nowIndex = 3
|
|
- // this.$message.warning('文件格式上传错误,仅支持上传xlsx,xls)');
|
|
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -689,7 +688,6 @@ export default {
|
|
} else {
|
|
} else {
|
|
this.rule_loading2 = true;
|
|
this.rule_loading2 = true;
|
|
self.rules_detail_form.item_id = self.rules_detail_form.id;
|
|
self.rules_detail_form.item_id = self.rules_detail_form.id;
|
|
-
|
|
|
|
if (self.rules_detail_form.min_point == 0 && self.rules_detail_form.range_type == 1) {
|
|
if (self.rules_detail_form.min_point == 0 && self.rules_detail_form.range_type == 1) {
|
|
self.$message.error('积分不能为零');
|
|
self.$message.error('积分不能为零');
|
|
this.rule_loading2 = false;
|
|
this.rule_loading2 = false;
|
|
@@ -800,11 +798,6 @@ export default {
|
|
this.$message.error('请选择积分细则');
|
|
this.$message.error('请选择积分细则');
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
- // this.$confirm('此操作将永久删除该选项, 是否继续?', '提示', {
|
|
|
|
- // confirmButtonText: '确定',
|
|
|
|
- // cancelButtonText: '取消',
|
|
|
|
- // type: 'warning'
|
|
|
|
- // })
|
|
|
|
const h = this.$createElement;
|
|
const h = this.$createElement;
|
|
this.$msgbox({
|
|
this.$msgbox({
|
|
title: '提示',
|
|
title: '提示',
|
|
@@ -831,7 +824,6 @@ export default {
|
|
if (res.data.code == 1) {
|
|
if (res.data.code == 1) {
|
|
this.$message.success(res.data.msg);
|
|
this.$message.success(res.data.msg);
|
|
this.getData(true);
|
|
this.getData(true);
|
|
- // this.handleNodeClick(this.selectItem);
|
|
|
|
}
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -839,33 +831,25 @@ export default {
|
|
|
|
|
|
editDetails(val) {
|
|
editDetails(val) {
|
|
this.rules_detail_form = JSON.parse(JSON.stringify(val));
|
|
this.rules_detail_form = JSON.parse(JSON.stringify(val));
|
|
-
|
|
|
|
if (this.rules_detail_form.min_point == this.rules_detail_form.max_point) {
|
|
if (this.rules_detail_form.min_point == this.rules_detail_form.max_point) {
|
|
this.rules_detail_form.range_type = '1';
|
|
this.rules_detail_form.range_type = '1';
|
|
} else {
|
|
} else {
|
|
this.rules_detail_form.range_type = '2';
|
|
this.rules_detail_form.range_type = '2';
|
|
}
|
|
}
|
|
-
|
|
|
|
if (this.rules_detail_form.min_point < 0) {
|
|
if (this.rules_detail_form.min_point < 0) {
|
|
this.integral_select_name1 = '2';
|
|
this.integral_select_name1 = '2';
|
|
let str = this.rules_detail_form.min_point;
|
|
let str = this.rules_detail_form.min_point;
|
|
this.rules_detail_form.min_point = str.toString().substring(1);
|
|
this.rules_detail_form.min_point = str.toString().substring(1);
|
|
- // this.rules_detail_form.min_point2=str.toString().substring(1);
|
|
|
|
} else {
|
|
} else {
|
|
this.integral_select_name1 = '1';
|
|
this.integral_select_name1 = '1';
|
|
}
|
|
}
|
|
-
|
|
|
|
if (this.rules_detail_form.max_point < 0) {
|
|
if (this.rules_detail_form.max_point < 0) {
|
|
this.integral_select_name2 = '2';
|
|
this.integral_select_name2 = '2';
|
|
let str = this.rules_detail_form.max_point;
|
|
let str = this.rules_detail_form.max_point;
|
|
this.rules_detail_form.max_point = str.toString().substring(1);
|
|
this.rules_detail_form.max_point = str.toString().substring(1);
|
|
- // this.rules_detail_form.max_point2=str.toString().substring(1);
|
|
|
|
} else {
|
|
} else {
|
|
this.integral_select_name2 = '1';
|
|
this.integral_select_name2 = '1';
|
|
}
|
|
}
|
|
- // this.rules_detail_form.min_point2=this.rules_detail_form.min_point;
|
|
|
|
- // this.rules_detail_form.max_point2=this.rules_detail_form.max_point;
|
|
|
|
-
|
|
|
|
this.rule_show = true;
|
|
this.rule_show = true;
|
|
this.rule_type = 'edit';
|
|
this.rule_type = 'edit';
|
|
},
|
|
},
|
|
@@ -879,7 +863,6 @@ export default {
|
|
handleNodeClick(e) {
|
|
handleNodeClick(e) {
|
|
if(e.id){
|
|
if(e.id){
|
|
var items = this.getItemData(e);
|
|
var items = this.getItemData(e);
|
|
- console.log(items,e.id)
|
|
|
|
this.selectItem = {
|
|
this.selectItem = {
|
|
child: e.child,
|
|
child: e.child,
|
|
id: e.id,
|
|
id: e.id,
|
|
@@ -973,6 +956,7 @@ export default {
|
|
let that = this;
|
|
let that = this;
|
|
that.$refs[form].validate(valid => {
|
|
that.$refs[form].validate(valid => {
|
|
if (valid) {
|
|
if (valid) {
|
|
|
|
+ let pidData=JSON.parse(JSON.stringify(that.dept_formdata.pid))//备份选择的规则,因为提交时间PID会被重新赋值
|
|
if (that.class_type == 'edit') {
|
|
if (that.class_type == 'edit') {
|
|
delete that.dept_formdata.child;
|
|
delete that.dept_formdata.child;
|
|
that.dept_formdata.rule_id = that.dept_formdata.id;
|
|
that.dept_formdata.rule_id = that.dept_formdata.id;
|
|
@@ -994,6 +978,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
|
|
+ this.dept_formdata.pid=pidData
|
|
this.dept_loading = false;
|
|
this.dept_loading = false;
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
@@ -1011,6 +996,7 @@ export default {
|
|
}
|
|
}
|
|
})
|
|
})
|
|
.finally(() => {
|
|
.finally(() => {
|
|
|
|
+ this.dept_formdata.pid=pidData
|
|
this.dept_loading = false;
|
|
this.dept_loading = false;
|
|
});
|
|
});
|
|
}
|
|
}
|