From a5a27e231cb2aa2c2a045df11ad90e5eda547ae9 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期二, 05 十一月 2024 18:11:59 +0800 Subject: [PATCH] 密级传参问题,以及同步整合代码 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue | 44 ++++++++++++++++++++++++++++---------------- 1 files changed, 28 insertions(+), 16 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue index 6c8a6f5..5bdf0cc 100644 --- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue @@ -136,7 +136,7 @@ </el-form-item> <el-col :span="12"> - <el-form-item label="鏄惁鎺堟潈锛�" prop="resource"> + <el-form-item label="鏄惁鎺堟潈锛�" prop="authorization"> <el-radio v-model="basicForm.authorization" :disabled="disabledBtn" label="0">鏄�</el-radio> <el-radio v-model="basicForm.authorization" :disabled="disabledBtn" label="1">鍚�</el-radio> </el-form-item> @@ -198,7 +198,10 @@ </el-container> </el-dialog> <action-dialog ref="actionDialog" @updataAction="actionSaveHandler"></action-dialog> - <clone-dialog ref="cloneDialog"></clone-dialog> + <clone-dialog ref="cloneDialog" :fromOid="fromOid" :sourceOId="sourceOId" paramsType="tab" + type="pageDef"></clone-dialog> + <clone-dialog ref="cloneBtnDialog" :fromOid="formBtnOid" :sourceOId="sourceBtnOid" paramsType="pageDef" + type="tabButton"></clone-dialog> </div> </template> @@ -207,20 +210,16 @@ import func from "@/util/func"; import { getPLPageDefinations, - getBtmDatasByPage, - getPortalVIDatasByPage, - getQTInfoDatasByPage, getTabButtons, addTapButton, updateTapButton, - getLinkDatasByPage, addPageDefination, deleteTabButton, delPageDefination, joinBtn, exitBtn } from "@/api/UI/uiDefine"; -import actionDialog from '@/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action'; +import actionDialog from '@/views/modelingMenu/ui/Aciton/components/dialog'; import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog"; export default { @@ -242,11 +241,15 @@ name: "index", data() { return { + formBtnOid: '', + sourceBtnOid: '', + sourceOId: '', + fromOid: '', paramsForm: {}, eventOption: { ...basicOption, addBtn: false, - editBtn: false, + // editBtn: false, delBtn: false, refreshBtn: false, highlightCurrentRow: true, @@ -717,7 +720,7 @@ sourceData: { handler(val) { if (val && val.plOId) { - this.getTableList() + this.getTableList(); } else { this.data = []; } @@ -788,8 +791,9 @@ // 缂栬緫鎵撳紑琛ㄥ崟鍓� beforeOpen(done, type) { if (type === 'edit') { - this.form.showType = 'Ludc'; - this.$set(this.form, 'showType', 'Ludc'); + console.log('edit'); + // this.form.showType = 'Ludc'; + // this.$set(this.form, 'showType', "terminology"); // this.$set(this.option.group[0].column[0],'value','Ludc'); // this.option.group[0].column[0].value = 'Ludc'; done(); @@ -864,7 +868,8 @@ console.log(res); if (res.data.code === 200) { this.$message.success(res.data.obj); - done() + this.getTableList(); + done(); } }).catch(err => { loading(); @@ -936,7 +941,7 @@ // 妯℃澘绫诲瀷涓烘爲琛� templateTypeTreeTable(val) { if (!val) return; - this.updateDisplay(val, ['showType', 'templateId', 'queryTemplateName', 'expandCols', 'zkfs']); + this.updateDisplay(val, ['showType', 'templateId', 'queryTemplateName', 'expandCols', 'expandMode']); }, // 妯℃澘绫诲瀷涓鸿〃鍗� @@ -992,7 +997,9 @@ this.$message.error('璇烽�夋嫨涓�鏉℃暟鎹�'); return; } + console.log(this.selectList); this.btnDesignVisible = true; + this.formBtnOid = this.selectList[0].id; this.getTabBtnTree(); }, @@ -1116,7 +1123,8 @@ const params = this.saveType === 'add' ? { ...this.basicForm, parentId: this.nodeTreeRow.oId === 'parentNode' ? '' : this.nodeTreeRow.parentId, - buttonParams: bottomParams + buttonParams: bottomParams, + tableOId:this.selectList[0].id } : { ...this.basicForm, buttonParams: bottomParams @@ -1180,12 +1188,13 @@ this.$message.error('椤跺眰鑺傜偣涓嶅厑璁稿鍒�'); return; } - this.$refs.cloneDialog.openDialog(this.nodeTreeRow); + this.sourceBtnOid = this.nodeTreeRow.oId; + this.$refs.cloneBtnDialog.openDialog(this.nodeTreeRow); }, // 閫夋嫨action actionFoucus() { - this.$refs.actionDialog.btnActionVisible = true; + this.$refs.actionDialog.openDialog(); }, // 淇濆瓨action @@ -1196,6 +1205,9 @@ // 鎵撳紑鍏嬮殕瀵硅瘽妗� rowCloneHandler(row) { + console.log(row); + this.fromOid = this.sourceData.plOId; + this.sourceOId = row.id; this.$refs.cloneDialog.openDialog(row); }, -- Gitblit v1.9.3