From a82c63890864118fa4eb8a1a1e97aa4db318b1ed Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 01 九月 2023 09:22:45 +0800
Subject: [PATCH] 本地提交
---
Source/UBCS-WEB/src/views/docking/infoForm.vue | 11 ++++++++---
1 files changed, 8 insertions(+), 3 deletions(-)
diff --git a/Source/UBCS-WEB/src/views/docking/infoForm.vue b/Source/UBCS-WEB/src/views/docking/infoForm.vue
index ffbb634..e5b83fa 100644
--- a/Source/UBCS-WEB/src/views/docking/infoForm.vue
+++ b/Source/UBCS-WEB/src/views/docking/infoForm.vue
@@ -5,7 +5,7 @@
<el-form ref="form" :model="formData" show-message="true" inline size="medium" label-suffix=":"
class="dockingForm" :rules="rules" status-icon="true">
<el-form-item label="鎺ュ彛绫诲瀷" prop="dataFlowType">
- <el-select v-model="formData.dataFlowType" placeholder="璇烽�夋嫨" @change="dataFlowTypeChange">
+ <el-select v-model="formData.dataFlowType" placeholder="璇烽�夋嫨" @change="dataFlowTypeChange" :disabled="formData.type == 'edit'">
<el-option v-for="item in dataFlowTypeList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
@@ -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.10.0