From daf9b8a51c7201aafccbac226fa8adee66057bcf Mon Sep 17 00:00:00 2001 From: shidongli Date: Wed, 11 Dec 2024 09:33:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=BC=E5=85=A5=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/components/SearchForm.vue | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/src/views/components/SearchForm.vue b/src/views/components/SearchForm.vue index 905b9c1..03948d4 100644 --- a/src/views/components/SearchForm.vue +++ b/src/views/components/SearchForm.vue @@ -839,7 +839,6 @@ export default { }, /** 提交按钮 --添加*/ submitFormadd() { - console.log(this.form, 'this.forma000000000000000000') let reg = new RegExp("-", "g"); if (this.formadd.establishDate && this.formadd.revokeDate && new Date(this.formadd.establishDate.replace(reg, "/")) > new Date(this.formadd.revokeDate.replace(reg, "/"))) { @@ -863,7 +862,6 @@ export default { console.log(this.form.deptAliasVOS) // this.form.deptAliasVOS[this.indexadd].departmentName = this.formadd.departmentName this.$set(this.form.deptAliasVOS[this.indexadd], 'departmentName', this.formadd.departmentName) - // this.$forceUpdate() this.openadd = false; // this.getList(); }); @@ -881,21 +879,17 @@ export default { this.$modal.msgError("必填项请填写完整,再进行提交"); } else { secondaryUpload(this.form).then(response => { + if(response.code==200){ this.$modal.msgSuccess(response.msg); + }else{ + this.$modal.msgError(response.msg); + } this.open = false; this.$emit('handleRules') - }); + }).catch(()=>{ + this.open = false; + }) } - - // this.$refs["form"].validate(valid => { - // if (valid) { - // secondaryUpload(this.form).then(response => { - // this.$modal.msgSuccess("保存成功"); - // this.open = false; - // this.$emit('handleRules') - // }); - // } - // }); }, // 屏幕resize监听 screenChange() {