|
|
@@ -627,6 +627,11 @@ export default {
|
|
|
|
|
|
this.addOrUpdate(params);
|
|
|
} else if (this.operateType === 'edit') {
|
|
|
+ let errorText = this.validForm();
|
|
|
+ if (errorText) {
|
|
|
+ this.$message.error(errorText+'!');
|
|
|
+ return;
|
|
|
+ }
|
|
|
let params = {
|
|
|
xmId: this.formData.id,
|
|
|
yjlx: this.formData.yjlx,
|
|
|
@@ -635,6 +640,10 @@ export default {
|
|
|
yqcgxs: this.formData.yqcgxs.join(','),
|
|
|
xmjsjjmb: this.formData.xmjsjjmb.join(',')
|
|
|
};
|
|
|
+ params.lxbg = JSON.stringify(this.formData.lxbg);
|
|
|
+ params.lxpw = JSON.stringify(this.formData.lxpw);
|
|
|
+ params.qtzl = JSON.stringify(this.formData.qtzl);
|
|
|
+ console.log(params)
|
|
|
this.addOrUpdate(params);
|
|
|
}
|
|
|
|