| | |
| | | <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> |
| | |
| | | } |
| | | }, |
| | | submitAttribute() { |
| | | console.log() |
| | | const that = this; |
| | | let pass=true |
| | | if(this.formData.dataFlowType=='push' && (validatenull(this.formData.classifyName)||validatenull(this.formData.targetSystemName))){ |
| | |
| | | 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 = { |
| | |
| | | sysIntHeaderVOs: [] |
| | | }; |
| | | that.$emit('refreshTable'); |
| | | that.formData.type=null; |
| | | }); |
| | | } |
| | | }) |