From eccac28a7a34ff4c817d70c8fbe8d93fd4d535e0 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期三, 30 八月 2023 17:19:22 +0800 Subject: [PATCH] 接口基本信息管理-编辑(集成系统编辑刷新) --- Source/UBCS-WEB/src/views/docking/infoForm.vue | 9 +++++++-- 1 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Source/UBCS-WEB/src/views/docking/infoForm.vue b/Source/UBCS-WEB/src/views/docking/infoForm.vue index ffbb634..530e651 100644 --- a/Source/UBCS-WEB/src/views/docking/infoForm.vue +++ b/Source/UBCS-WEB/src/views/docking/infoForm.vue @@ -490,6 +490,7 @@ } }, submitAttribute() { + console.log() const that = this; let pass=true if(this.formData.dataFlowType=='push' && (validatenull(this.formData.classifyName)||validatenull(this.formData.targetSystemName))){ @@ -522,8 +523,11 @@ ordernNo:item.$index } }) - add(that.formData).then(res => { - that.$message.success("淇濆瓨鎴愬姛"); + const apiCall = that.formData.type == 'edit' ? edit : add; + const Message = that.formData.type == 'edit' ? "淇敼鎴愬姛" : "淇濆瓨鎴愬姛"; + console.log( that.formData) + apiCall(that.formData).then(res => { + that.$message.success(Message); that.showSubmitDialog = false; this.$refs.form.resetFields(); this.formData = { @@ -531,6 +535,7 @@ sysIntHeaderVOs: [] }; that.$emit('refreshTable'); + that.formData.type=null; }); } }) -- Gitblit v1.9.3