From 18715a9d20518abb1374408007759ab2988d1150 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期二, 08 十月 2024 11:58:35 +0800 Subject: [PATCH] 页签克隆 --- Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue | 25 ++++++++++++++++++++++--- 1 files changed, 22 insertions(+), 3 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 37e2e11..961577c 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 @@ -26,6 +26,7 @@ </el-button> <el-button icon="el-icon-delete" size="small" type="text" @click="rowDeleteHandler(scope.row)">鍒犻櫎 </el-button> + <el-button icon="el-icon-document-copy" size="small" type="text" @click="rowCloneHandler(scope.row)">鍏嬮殕</el-button> </template> <!-- eventKey浠ュ強eventValue鏄剧ず鍖哄煙 --> @@ -79,7 +80,7 @@ </el-button> <el-button plain size="mini" type="primary">璋冩暣涓轰笅绾ф寜閽�</el-button> <el-button plain size="mini" type="primary">璋冩暣涓轰笂绾ф寜閽�</el-button> - <el-button plain size="mini" type="primary">澶嶅埗鍒板叾浠栫粍浠�</el-button> + <el-button plain size="mini" type="primary" @click="cloneClickBtnHandler">澶嶅埗鍒板叾浠栫粍浠�</el-button> </div> </el-header> <el-container> @@ -195,6 +196,7 @@ </el-container> </el-dialog> <action-dialog ref="actionDialog" @updataAction="actionSaveHandler"></action-dialog> + <clone-dialog ref="cloneDialog"></clone-dialog> </div> </template> @@ -213,6 +215,7 @@ addPageDefination } from "@/api/UI/uiDefine"; import actionDialog from '@/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/components/action'; +import cloneDialog from "@/views/modelingMenu/ui/uiDefine/rightRegion/cloneDialog"; export default { props: { @@ -227,7 +230,8 @@ } }, components: { - actionDialog + actionDialog, + cloneDialog }, name: "index", data() { @@ -1105,6 +1109,7 @@ this.treeData = [{ label: this.selectList[0].name, oId: 'parentNode', + disabled: true, children: data }]; this.treeLoading = false; @@ -1259,6 +1264,17 @@ }); }, + cloneClickBtnHandler(){ + if (func.isEmptyObject(this.nodeTreeRow)) { + this.$message.error('璇烽�夋嫨鑺傜偣杩涜澶嶅埗'); + return; + } + if (this.nodeTreeRow.oId === "parentNode") { + this.$message.error('椤跺眰鑺傜偣涓嶅厑璁稿鍒�'); + return; + } + this.$refs.cloneDialog.openDialog(this.nodeTreeRow); + }, // 閫夋嫨action actionFoucus() { this.$refs.actionDialog.btnActionVisible = true; @@ -1268,7 +1284,10 @@ actionSaveHandler(val) { this.$set(this.basicForm, 'actionName', val.plName); this.$set(this.basicForm, 'actionOId', val.plOId); - } + }, + rowCloneHandler(row) { + this.$refs.cloneDialog.openDialog(row); + }, } } </script> -- Gitblit v1.9.3