| | |
| | | <el-form-item v-if="formData.interfaceType=='webService'" label="soapAction" prop="soapAction"> |
| | | <el-input v-model="formData.soapAction" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="formData.interfaceType=='webService'" label="参数名称" prop="targName"> |
| | | <el-input v-model="formData.targName" ></el-input> |
| | | <el-form-item v-if="formData.interfaceType=='webService'" label="参数名称" prop="targetName"> |
| | | <el-input v-model="formData.targetName" ></el-input> |
| | | </el-form-item> |
| | | <el-form-item v-if="formData.interfaceType=='webService'" label="cxfaxis" prop="cxfaxis"> |
| | | <el-input v-model="formData.cxfaxis" ></el-input> |
| | |
| | | soapAction: [ |
| | | {required: true, message: '请输入soapAction', trigger: 'blur'} |
| | | ], |
| | | targName: [ |
| | | targetName: [ |
| | | {required: true, message: '请输入参数名称', trigger: 'blur'} |
| | | ], |
| | | cxfaxis: [ |
| | |
| | | } |
| | | }, |
| | | submitAttribute() { |
| | | console.log() |
| | | const that = this; |
| | | let pass=true |
| | | if(this.formData.dataFlowType=='push' && (validatenull(this.formData.classifyName)||validatenull(this.formData.targetSystemName))){ |
| | |
| | | return; |
| | | } |
| | | this.$refs.form.validateField(['paramType','returnType','dataFlowType','pushType','classPath','requestMethod','requestUrl', |
| | | 'interfaceFunction','nameSpace','soapAction','targName','cxfaxis'],function (errormsg, field) { |
| | | 'interfaceFunction','nameSpace','soapAction','targetName','cxfaxis'],function (errormsg, field) { |
| | | if (errormsg) { |
| | | pass=false |
| | | } |
| | |
| | | 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; |
| | | }); |
| | | } |
| | | }) |