From 483af85d1bf87622467173818a4fb0f2383b6f3a Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期五, 20 十月 2023 09:52:24 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue |   44 +++++++++++++++++++++++++++++++++-----------
 1 files changed, 33 insertions(+), 11 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
index f558240..c7ea7bc 100644
--- a/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
+++ b/Source/UBCS-WEB/src/components/MasterCrud/VciMasterCrud.vue
@@ -35,15 +35,15 @@
                 <el-option label="瀹℃牳涓�" value="Auditing"></el-option>
               </el-select></span>
             </div>
-            <el-table ref="dataTable" v-loading="isLoading" :data="tableData"
-                      :height="tableHeight"
+            <el-table class="custom-scrollbar" ref="dataTable" v-loading="isLoading" :data="tableData"
+                      :height="tableHeight"  border
                       @select="handleSelection" @cell-click="handleCellClick" @row-click="handleRowClick"
                       @select-all="handleSelectionAll" @selection-change="handleSelectionChange"
                       @sort-change="sortChange">
               <el-table-column v-if="tableData.length != 0" fixed type="selection" width="55"></el-table-column>
               <el-table-column v-if="tableData.length != 0" fixed label="搴忓彿" type="index" width="55">
               </el-table-column>
-              <el-table-column v-for="item in CodeArray" v-if="!item.hidden" :label="item.label" :prop="item.prop"
+              <el-table-column  v-for="item in CodeArray" v-if="CodeArray.length !== 0 && !item.hidden" :label="item.label" :prop="item.prop"
                                :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width"
                                align="center">
                 <template slot-scope="scope">
@@ -61,7 +61,7 @@
                                :width="item.width"
                                align="center">
               </el-table-column>
-              <el-table-column  v-for="item in lcstatusArray" v-if="!item.hidden" label="鐢熷懡鍛ㄦ湡鍊�" prop="lcstatus"
+              <el-table-column v-for="item in lcstatusArray" v-if=" lcstatusArray.length !== 0 && !item.hidden" label="鐢熷懡鍛ㄦ湡鍊�" prop="lcstatus"
                                 :show-overflow-tooltip="true" :sortable="item.sortable" :width="item.width"
                                 align="center">
                 <template slot-scope="scope">
@@ -381,14 +381,25 @@
           }
         })
         this.tableHeadFindDatas = newval;
+        console.log('new',newval)
         if (!this.isCodeArrayPushed) {
-          this.CodeArray.push(newval.find(item => item.prop === 'id'))
-          this.isCodeArrayPushed = true
-        };
+          if (newval.find(item => item.prop === 'id')) {
+            this.CodeArray.push(newval.find(item => item.prop === 'id'));
+          } else {
+            this.CodeArray.push([]);
+          }
+          console.log('CodeArray', this.CodeArray);
+          this.isCodeArrayPushed = true;
+        }
         if (!this.islcstatusPushed) {
-          this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus'))
-          this.islcstatusPushed = true
-        };
+          if (newval.find(item => item.prop === 'lcstatus')) {
+            this.lcstatusArray.push(newval.find(item => item.prop === 'lcstatus'));
+          } else {
+            this.lcstatusArray.push([]);
+          }
+          console.log('lcstatusArray', this.lcstatusArray);
+          this.islcstatusPushed = true;
+        }
         // console.log('new',newval)
         this.WupinFindValue = ''
       },
@@ -955,5 +966,16 @@
 .bottom {
   margin-top: 10px;
 }
-
+//.custom-scrollbar::-webkit-scrollbar {
+//  width: 10px  !important;;/* 璁剧疆婊氬姩鏉$殑瀹藉害 */
+//}
+//
+//.custom-scrollbar::-webkit-scrollbar-thumb {
+//  background-color: #a11313  !important;; /* 璁剧疆婊氬姩鏉$殑棰滆壊 */
+//  border-radius: 5px  !important;; /* 璁剧疆婊氬姩鏉$殑杈规寮у害 */
+//}
+//
+//.custom-scrollbar::-webkit-scrollbar-track {
+//  background-color: #f1f1f1  !important;; /* 璁剧疆婊氬姩鏉$殑杞ㄩ亾棰滆壊 */
+//}
 </style>

--
Gitblit v1.9.3