From 20603b654efce7d5ca8dc19f181af543a2215e56 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期一, 15 一月 2024 15:33:04 +0800
Subject: [PATCH] 主数据表格高度调整

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   31 +++++++++++++++++++------------
 1 files changed, 19 insertions(+), 12 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index 305aadf..44bc9d7 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -18,7 +18,7 @@
               <span v-if="tableHeadFindData.length > 0 ">
               <el-select slot="prepend" v-model="keyWordFind" placeholder="璇烽�夋嫨" size="small" @change="searchChange">
                 <el-option v-for="item in tableHeadFindData" :key="item.id" :label="item.label"
-                           :value="item.prop"></el-option>
+                           :value="item.query"></el-option>
               </el-select>
               <el-input v-if="!isTimeStatus" v-model="WupinFindValue"
                         placeholder="璇疯緭鍏ュ叧閿瓧鎸夊洖杞︽煡璇�" size="small" style="width: 180px; margin-left: 5px; margin-top: 10px"
@@ -395,7 +395,10 @@
     },
     tableHeadDataFateher: {
       handler(newval, oldval) {
-        this.options = newval.tableDefineVO.seniorQueryColumns
+        // console.log(newval)
+        if (newval.length > 0) {
+          this.options = newval.tableDefineVO.seniorQueryColumns
+        }
       }
     },
     codeClassifyOid: {
@@ -407,16 +410,20 @@
     tableDataArray: {
       handler(newval, oldval) {
         this.tableData = newval;
-        this.searchResults = newval
+        this.searchResults = newval;
         this.doLayout();
-        this.fileOptions = {
-          ownbizOid: "0",
-          ownbizBtm: "0",
-          fileDocClassify: '!=processAuditSuggest',
-          fileDocClassifyName: '',
-          hasDownload: true,
-          hasUpload: true,
-          height: 'auto'
+        if (newval.length > 0) {
+          this.fileOptions = {
+            ownbizOid: "0",
+            ownbizBtm: "0",
+            fileDocClassify: '!=processAuditSuggest',
+            fileDocClassifyName: '',
+            hasDownload: true,
+            hasUpload: true,
+            height: 'auto'
+          }
+        } else {
+          this.fileOptions = {};
         }
       },
     },
@@ -1201,7 +1208,7 @@
 .main {
   display: flex;
   flex-direction: column;
-  height: calc(100vh - 150px);
+  height: calc(100vh - 145px);
   min-height: 400px;
 }
 

--
Gitblit v1.9.3