From 69dbc35a84b948acc2166aef6876c300da03f2c6 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 24 十月 2024 16:18:46 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue |   52 +++++++++++++++++++++-------------------------------
 1 files changed, 21 insertions(+), 31 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/dialog.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue
similarity index 89%
rename from Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/dialog.vue
rename to Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue
index b7d3214..c47afba 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/dialog.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/components/dialog.vue
@@ -8,11 +8,11 @@
              class="avue-dialog"
              width="1400px"
              @close="cancelDialog">
-    <el-container>
+    <el-container style="height: 580px;">
       <el-aside>
-        <basic-container>
+        <basic-container style="height: 560px;">
           <!-- 宸︿晶鏍� -->
-          <div style="height: 200px;">
+          <div style="height: 520px;">
             <avue-tree
               ref="tree"
               v-model="treeForm"
@@ -31,7 +31,7 @@
       </el-aside>
 
       <el-main>
-        <basic-container>
+        <basic-container style="height: 560px;">
           <div>
             <avue-crud
               ref="crud"
@@ -62,27 +62,13 @@
 </template>
 
 <script>
-import {
-  getActionTree,
-  getActionTableData,
-  saveAction,
-  updateAction,
-  exportAction,
-  deleteAction,
-  getPLActionParam,
-  savePLActionParam,
-  updatePLActionParam,
-  deletePLActionParam,
-  saveActionCls,
-  updateActionCls,
-  deleteActionCls
-} from '@/api/UI/Action/api'
+import { getActionTree, getActionTableData} from '@/api/UI/Action/api'
 import func from "@/util/func";
 import basicOption from "@/util/basic-option";
-import {clonePageDef, cloneTabButton, clonetabPage} from "@/api/UI/uiDefine";
 
 export default {
   name: "index",
+  props:['isMuti'],
   data() {
     return {
       dialog: {
@@ -99,7 +85,7 @@
       option: {
         ...basicOption,
         addBtn: false,
-        height: 200,
+        height: 420,
         highlightCurrentRow: true,
         menu:false,
         column: [
@@ -168,7 +154,7 @@
   created() {
   },
   methods: {
-    openDialog(data) {
+    openDialog() {
       this.dialog.showDialog = true;
       this.getTreeList()
       this.data = [];
@@ -176,21 +162,25 @@
     cancelDialog() {
       this.dialog.loading = false;
       this.dialog.showDialog = false;
+      this.$refs.tree.setCurrentKey(null);
     },
     submitDialog() {
       if (this.selectList.length==0) {
         this.$message.error('璇烽�夋嫨Action');
         return;
       }
-      const saveFunction = {
-        'pageDef': ''
-      };
-      saveFunction[this.type](params).then(res => {
-        if(res.data.code == 200){
-          this.$message.success(res.data.obj);
-          this.cancelDialog();
+      if(this.isMuti){
+        this.$emit('updataAction', this.selectList);
+      }else {
+        if(this.selectList.length>1){
+          this.$message.error('璇烽�夋嫨涓�鏉ction');
+          return;
         }
-      })
+        this.$emit('updataAction', this.selectList[0]);
+      }
+
+      this.cancelDialog();
+
     },
     // 宸︿晶鏍戣姹�
     getTreeList(status) {
@@ -207,7 +197,6 @@
     nodeClick(row) {
       this.treeNodeRow = row;
       this.getRightTableList(row);
-      this.bottomData = [];
     },
 
     // 澶撮儴鍒锋柊鎸夐挳
@@ -228,6 +217,7 @@
         const data = res.data.data;
         this.data = data;
         this.tableLoading = false;
+
       })
     },
 

--
Gitblit v1.9.3