From 04af966bddb7dfb8e850bf0e314defc83cbe3f4e Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期三, 20 三月 2024 17:28:30 +0800
Subject: [PATCH] UI上下文展示引擎

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

diff --git a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
index 54a1b44..f90dbcd 100644
--- a/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
+++ b/Source/ProjectWeb/src/components/dynamic-components/dynamic-table.vue
@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div class="UI-dynamic" :id="'UI-dynamic-'+areasName+componentVO.oid" style="overflow: hidden">
     <avue-crud v-model="form"
                :data="tableList"
                :option="option"
@@ -49,6 +49,8 @@
   },
   data() {
     return {
+      clientHeight:0,
+      parentHeight:'100%',//褰撳墠缁勪欢鏍硅妭鐐瑰厓绱犻珮搴�
       form: {},
       formName: '',
       loading: false,
@@ -616,17 +618,15 @@
       ],
     }
   },
-  mounted() {
-    console.log('componentVO',this.componentVO)
-  },
   computed: {
-      option() {
+    option() {
       return {
         index: true,
         addBtn: false,
         editBtn: false,
         delBtn: false,
-        height: 'auto',
+        height: this.parentHeight,
+        calcHeight: 15,
         indexFixed: false,
         menuFixed: false,
         column: this.updatedColumns,
@@ -648,6 +648,20 @@
       });
     },
   },
+  watch:{
+    clientHeight: {
+      handler(newval) {
+        if(newval>50){
+          //鐖跺厓绱犻珮搴�-鎸夐挳楂樺害-鍒嗛〉楂樺害
+          this.parentHeight=this.$el.clientHeight-this.$children[0].$children[1].$children[0].$el.clientHeight-this.$children[0].$children[2].$el.clientHeight;
+          console.log(this.parentHeight)
+        }
+      }
+    },
+  },
+  mounted() {
+    this.clientHeight=this.$el.clientHeight;
+  },
   methods: {
     buttonClick(scope, item) {
       this.formName = item.name;

--
Gitblit v1.9.3