From c30b850bdf5c48a2279f293d414850c32501192a Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 29 四月 2024 16:25:25 +0800
Subject: [PATCH] 修改首页样式

---
 src/views/common/ztt-table.vue |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/src/views/common/ztt-table.vue b/src/views/common/ztt-table.vue
index f068d46..ab46d8f 100644
--- a/src/views/common/ztt-table.vue
+++ b/src/views/common/ztt-table.vue
@@ -175,7 +175,7 @@
         v-loading="dataListLoading"
         element-loading-text="鍔犺浇涓�..."
         element-loading-spinner="el-icon-loading"
-        :expand-row-keys="expandRowKeys"
+        @expand-change="expandChange"
       >
         <!--澶氶�夋嫨妗�-->
         <el-table-column
@@ -570,10 +570,6 @@
   name: 'TTable',
   components: { exSlot, advancedSearchDialog, zttdraggable },
   props: {
-    expandRowKeys: {
-      type: Array,
-      default: ()=>[]
-    },
     rowKey: {
       type: String,
       default: ()=>{
@@ -711,6 +707,7 @@
   },
   data() {
     return {
+        currentExpand:null,
       dataListLoading: false,
       tableKey: 0,
       // jipf  瀵煎嚭鎵�鐢ㄥ彉閲�
@@ -1382,6 +1379,7 @@
         this.multipleSelection = selection
         this.$emit('handleSelectionChange', selection)
       } */
+      this.$emit('shoudonggouxuan',row)
     },
     handleSelectionChange(val) {
       this.multipleSelection = val
@@ -1733,6 +1731,15 @@
     // 璁剧疆楂樼骇鎼滅储鏌ヨ鏉′欢
     setMultiSearchFilter(filters) {
       this.multiSearchFilter = filters
+    },
+    expandChange(e){
+        this.currentExpand = e;
+    },
+    toggleRowExpansion(){
+        this.tableData.forEach((ele) => {
+            this.$refs.lmesTable.toggleRowExpansion(ele,false)
+      })
+        this.$refs.lmesTable.toggleRowExpansion(this.currentExpand,true)
     }
   }
 }

--
Gitblit v1.9.3