Commit 6cb608e5 by 1377875331@qq.com

Merge remote-tracking branch 'origin/master'

parents 6e0fc221 2d7a8217
...@@ -29,9 +29,24 @@ export default { ...@@ -29,9 +29,24 @@ export default {
}, },
async check(){ async check(){
let result = await this.getVM().checkAll() let result = await this.getVM().checkAll()
if(result.respCode != SUCCESS) if(result.respCode != SUCCESS) {
{
this.$notify.error({title: '错误',message: result.respMsg}); this.$notify.error({title: '错误',message: result.respMsg});
} else {
const fields = this.getVM().$refs.modelForm.fields
const fieldErrors = result.fieldErrors;
for (const key in fieldErrors) {
if (Object.hasOwnProperty.call(fieldErrors, key)) {
const fieldError = fieldErrors[key];
for (let i = 0; i < fields.length; i++) {
const field = fields[i];
if (field.prop === key) {
field.validateState = 'error';
field.validateMessage = fieldError;
break;
}
}
}
}
} }
}, },
exit(){ exit(){
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Ditopn Default规则 * Ditopn Default规则
*/ */
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index";
export default { export default {
"didgrp.rec.resflg": defaultDidgrpRecResflg, "didgrp.rec.resflg": defaultDidgrpRecResflg,
......
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