From d1fae033c247f26d4e3676015a65bd2dc137f474 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期五, 01 九月 2023 10:35:13 +0800 Subject: [PATCH] 集成系统接口基本管理表单树回填 --- Source/UBCS-WEB/src/views/docking/info.vue | 41 ++++++++++++++++++++++++++--------------- 1 files changed, 26 insertions(+), 15 deletions(-) diff --git a/Source/UBCS-WEB/src/views/docking/info.vue b/Source/UBCS-WEB/src/views/docking/info.vue index 99d2c3c..acfbe07 100644 --- a/Source/UBCS-WEB/src/views/docking/info.vue +++ b/Source/UBCS-WEB/src/views/docking/info.vue @@ -12,7 +12,7 @@ <template slot="menu" slot-scope="{row,index}"> <el-button icon="el-icon-edit" size="small" type="text" @click="updateSave(row,index)" :disabled="row.usedFlag === 'true' ? false :true">缂栬緫</el-button> <el-button icon="el-icon-delete" size="small" type="text" @click="deleteSave(row,index)">鍒犻櫎</el-button> - <el-button v-if="row.usedflag=='false'" icon="el-icon-position" size="small" type="text" + <el-button v-if="row.usedFlag=='false' || row.usedFlag==''" icon="el-icon-position" size="small" type="text" @click="ENABLE(row,index)">鍚敤 </el-button> <el-button v-else icon="el-icon-finished" size="small" type="text" @click="DISABLE(row,index)">鍋滅敤 @@ -174,8 +174,9 @@ },{ label: 'soapAction', prop: 'soapAction', + overHidden:true, sortable: true, - width: 150 + width: 200 }, { label: '璋冪敤鏂瑰紡', prop: 'cxfaxis', @@ -191,7 +192,8 @@ label: '璇锋眰鍦板潃', prop: 'requestUrl', sortable: true, - width: 150 + overHidden:true, + width: 200 }, { label: '鎺ュ彛鍑芥暟', prop: 'interfaceFunction', @@ -200,7 +202,7 @@ width: 150 }, { label: '鍙傛暟鍚嶇О', - prop: 'targName', + prop: 'targetName', sortable: true, width: 150 },{ @@ -251,11 +253,19 @@ return oids.join(","); } }, + watch:{ + // editAttribute:{ + // immediate: true, + // handler(newData) { + // this.$refs.infoForm.formData = Object.assign({}, newData); + // } + // } + }, methods: { //鍗曞厓鏍兼牱寮� cellStyle(row,column,rowIndex,columnIndex){ if(row.columnIndex==2) { - if(row.row.usedFlag == 'false'){ + if(row.row.usedFlag == '' || row.row.usedFlag == 'false'){ return { color: 'red', fontWeight: 'bold', @@ -299,11 +309,11 @@ addSave() { this.$refs.infoForm.showSubmitDialog = true; this.$refs.infoForm.formData = { - dataFlowType: 'push', - pushType: '1', - sourceSystemName: '缂栫爜绯荤粺', - sourceSystemOid: 'code00000001', - sourceSystemId: 'CODE', + dataFlowType: '', + pushType: '', + sourceSystemName: '', + sourceSystemOid: '', + sourceSystemId: '', targetSystemName: '', targetSystemOid: '', targetSystemId: '', @@ -316,10 +326,11 @@ this.editAttribute = row; this.editAttribute.sysIntParamVOs = row.sysIntParamVOs || []; this.editAttribute.sysIntHeaderVOs = row.sysIntHeaderVOs || []; + this.editAttribute.type = 'edit'; this.$refs.infoForm.formData = this.editAttribute; this.$refs.infoForm.showSubmitDialog = true; - console.log('row',row.dataFlowTypeText) - console.log('editAttribute',this.editAttribute.dataFlowTypeText) + // console.log('row',this.editAttribute.pushType) + // console.log('editAttribute',this.editAttribute.dataFlowTypeText) }, deleteSave(row, index) { this.$confirm("鍒犻櫎鏁版嵁灏嗘棤娉曡鎭㈠, 鏄惁缁х画?", "鎻愮ず", { @@ -391,7 +402,7 @@ onLoad(page, params = {}) { this.loading = true; getList(this.page.currentPage, this.page.pageSize, Object.assign(params, this.query)).then(res => { - console.log(res) + // console.log(res) const data = res.data.data; this.page.total = data.total; this.data = data.records; @@ -409,7 +420,7 @@ // interfaceFunction:'', // nameSpace:'', // soapAction:'', - // targName:'', + // targetName:'', // cxfaxis:'' // }; // this.pushTypeList.forEach(item => { @@ -459,7 +470,7 @@ fieldType: 'text' }, { title: '鍙傛暟鍚嶇О', - queryField: 'targName', + queryField: 'targetName', fieldType: 'text' }, { title: '璋冪敤鏂瑰紡', -- Gitblit v1.9.3