From 11654cd865cb3c01817eeb765e341bb617a23458 Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期四, 28 三月 2024 11:56:05 +0800
Subject: [PATCH] UI上下文展示引擎

---
 Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue |   20 ++++++++++++++++----
 1 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
index dbfec95..0a6ecb1 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
@@ -6,6 +6,7 @@
                :option="option"
                :page.sync="pageType"
                :table-loading="loading"
+               @row-click="rowClickChange"
                @selection-change="selectChange">
       <!--top鍖哄煙鎸夐挳-->
       <template slot="menuLeft" slot-scope="scope">
@@ -513,7 +514,7 @@
       });
     },
     pageType() {
-      return this.areasName === 'westArea' ? this.simplePage : this.page;
+      return this.areasName.indexOf('westArea') == 0  ? this.simplePage : this.page;
     }
   },
   watch: {
@@ -537,6 +538,13 @@
           this.parentHeight = this.$el.clientHeight - this.$children[0].$children[1].$children[0].$el.clientHeight - this.$children[0].$children[2].$el.clientHeight - 5;
         }
       }
+    },
+    sourceData:{
+      handler(newval) {
+        //婧愭暟鎹湁鍙樺寲鏃跺彉鏇村綋鍓嶅尯鍩熸暟鎹�
+        console.log(this.areasName);
+        console.log(newval);
+      }
     }
   },
   created() {
@@ -549,11 +557,15 @@
     }
   },
   methods: {
+    rowClickChange(row){
+      this.$refs.dataTable.toggleRowSelection(row);
+    },
     selectChange(row) {
       this.selectList = row;
-    },
-    TreeSelectChange(row) {
-      this.TreeSelectList = row;
+      this.$emit("setDataStore", {
+        area: this.areasName,
+        dataStore:row
+      });
     }
   }
 }

--
Gitblit v1.9.3