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() {