From a34c10535d130c4be667301434a0e8072ee82716 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 14 十月 2024 15:21:48 +0800
Subject: [PATCH] 整合代码,修改表单定义按钮排列方式

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/uiDefine/rightRegion/bottomTable/index.vue |   27 ++++++++++++++++++++-------
 1 files changed, 20 insertions(+), 7 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..a3aab36 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>
 
@@ -206,14 +209,14 @@
 import basicOption from "@/util/basic-option";
 import func from "@/util/func";
 import {
-  getPLPageDefinations,
   getBtmDatasByPage,
   getPortalVIDatasByPage,
   getQTInfoDatasByPage,
+  getLinkDatasByPage,
+  getPLPageDefinations,
   getTabButtons,
   addTapButton,
   updateTapButton,
-  getLinkDatasByPage,
   addPageDefination,
   deleteTabButton,
   delPageDefination,
@@ -242,6 +245,10 @@
   name: "index",
   data() {
     return {
+      formBtnOid: '',
+      sourceBtnOid: '',
+      sourceOId: '',
+      fromOid: '',
       paramsForm: {},
       eventOption: {
         ...basicOption,
@@ -717,7 +724,7 @@
     sourceData: {
       handler(val) {
         if (val && val.plOId) {
-          this.getTableList()
+          this.getTableList();
         } else {
           this.data = [];
         }
@@ -864,7 +871,8 @@
         console.log(res);
         if (res.data.code === 200) {
           this.$message.success(res.data.obj);
-          done()
+          this.getTableList();
+          done();
         }
       }).catch(err => {
         loading();
@@ -993,6 +1001,7 @@
         return;
       }
       this.btnDesignVisible = true;
+      this.formBtnOid = this.selectList[0].id;
       this.getTabBtnTree();
     },
 
@@ -1180,7 +1189,8 @@
         this.$message.error('椤跺眰鑺傜偣涓嶅厑璁稿鍒�');
         return;
       }
-      this.$refs.cloneDialog.openDialog(this.nodeTreeRow);
+      this.sourceBtnOid = this.nodeTreeRow.oId;
+      this.$refs.cloneBtnDialog.openDialog(this.nodeTreeRow);
     },
 
     // 閫夋嫨action
@@ -1196,6 +1206,9 @@
 
     // 鎵撳紑鍏嬮殕瀵硅瘽妗�
     rowCloneHandler(row) {
+      console.log(row);
+      this.fromOid = this.sourceData.plOId;
+      this.sourceOId = row.id;
       this.$refs.cloneDialog.openDialog(row);
     },
 

--
Gitblit v1.9.3