Commit b3f11b5c by javaHeight

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents be72f8f8 2804b00e
...@@ -4,12 +4,13 @@ export default { ...@@ -4,12 +4,13 @@ export default {
methods: { methods: {
// 表单提交 // 表单提交
async handleSubmit(rulePath) { async handleSubmit(rulePath) {
let result; // let result;
if(rulePath==""){ // if(rulePath==""){
result = await this.save(); // result = await this.save();
}else{ // }else{
result = await this.executeRule(rulePath); // result = await this.executeRule(rulePath);
} // }
let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) { if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({ this.$notify({
title: "成功", title: "成功",
...@@ -117,13 +118,13 @@ export default { ...@@ -117,13 +118,13 @@ export default {
}, },
// 表单校验 // 表单校验
async handleCheck(rulePath) { async handleCheck(rulePath) {
let result; // let result;
if(rulePath==""){ // if(rulePath==""){
result = await this.checkAll(); // result = await this.checkAll();
}else{ // }else{
result = await this.executeRule(rulePath); // result = await this.executeRule(rulePath);
} // }
// let result = await this.checkAll(); let result = await this.checkAll();
if (result.respCode == SUCCESS) { if (result.respCode == SUCCESS) {
const fieldErrors = result.fieldErrors; const fieldErrors = result.fieldErrors;
this.updateModel(result.data); this.updateModel(result.data);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment