From a68ce68105de4a7d61c89298f4e4ef079443ba4a Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期一, 09 十二月 2024 16:53:58 +0800
Subject: [PATCH] 图标管理

---
 Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue |   19 +++++++++++++------
 1 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue
index efaba17..5a2a9f3 100644
--- a/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/modelingMenu/ui/Aciton/index.vue
@@ -1,6 +1,5 @@
 <template>
   <el-container>
-
     <el-aside>
       <basic-container>
         <div ref="TreeBox" style="height: calc(100vh - 144px);!important;">
@@ -92,6 +91,11 @@
                          icon="el-icon-check"
                          v-if="scope.type === 'add'"
                          @click="handleSaveNext()">淇濆瓨鍚庣户缁坊鍔�</el-button>
+              <el-button type="primary"
+                         size="small"
+                         icon="el-icon-circle-plus-outline"
+                         v-if="scope.type === 'add'"
+                         @click="$refs.BottomCrud.rowSave()">淇濆瓨</el-button>
             </template>
           </avue-crud>
         </div>
@@ -154,6 +158,7 @@
         selection: false,
         refreshBtn: false,
         dialogWidth:'700',
+        saveBtn:false,
         // height:'auto',
         column: [
           {
@@ -384,9 +389,10 @@
 
     // 鍙充晶琛ㄦ牸淇℃伅
     getRightTableList(row) {
+      console.log(row);
       this.tableLoading = true;
       const params = {
-        plactioncls: row.id
+        plactioncls: row.id ? row.id : ''
       }
       getActionTableData(params).then(res => {
         const data = res.data.data;
@@ -427,7 +433,7 @@
       }
       this.tableLoading = true;
       const apiParams = {
-        plactioncls: this.treeNodeRow.id === 'root' ? '' : this.treeNodeRow.id,
+        plactioncls: this.treeNodeRow.id === 'root' ? '' : this.treeNodeRow.id ? this.treeNodeRow.id : '',
         ...params
       }
 
@@ -451,12 +457,13 @@
     beforeOpen(done, type, loading) {
       if ([ 'edit'].includes(type)) {
         // 缂栬緫閫昏緫
-        this.option.column[32].disabled = false;
+        this.$set(this.option.column[2],'disabled',false);
       } else {
         // 鏂板閫昏緫
-        this.option.column[2].disabled = true;
+        this.$set(this.option.column[2],'disabled',true);
       }
       done();
+      console.log(this.option.column)
     },
     // action鍒楄〃澧炲姞
     addClickHandler() {
@@ -664,8 +671,8 @@
           this.$message.success('鍒嗙被鍒涘缓鎴愬姛');
           this.getTreeList();
         }
-        done();
       })
+      done();
       loading();
     },
 

--
Gitblit v1.9.3