From 083e907c2567ba53c892a45cf2605172715922ab Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期三, 10 七月 2024 17:03:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue |  320 ++++++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 269 insertions(+), 51 deletions(-)

diff --git a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
index da4f9db..bfa9643 100644
--- a/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
+++ b/Source/UBCS-WEB/src/components/Theme/ThemeAttrCrud.vue
@@ -1,69 +1,90 @@
 <template>
   <div>
-    <div v-if="this.crudArrayFlag" class="app" style="display: flex;flex-wrap: wrap; display: inline-block">
+    <div v-if="this.crudArrayFlag" class="app"
+         style="display: flex;flex-wrap: wrap; display: inline-block;height: 80px">
       <el-button-group>
         <!--鏂板-->
-        <el-button
-          v-if="attrEditVisible == false && attrFlagChiledren==false && editOpenFlag &&  (!checkStatus || crudLCStatus=='Editing' )"
-          icon="el-icon-plus" plain size="small" type="primary" @click="busineHandle">娣诲姞 {{ msg }}
+        <span v-if="permissionList.busineStatus">
+           <el-button
+             v-if="attrEditVisible == false && attrFlagChiledren==false && editOpenFlag &&  (!checkStatus || crudLCStatus=='Editing' )"
+             icon="el-icon-plus" plain size="small" type="primary" @click="busineHandle">娣诲姞 {{ msg }}
         </el-button>
+        </span>
         <!--        鍏ㄥ睆缂栬緫-->
-        <el-button
-          v-if=" attrEditVisible == false && attrFlagChiledren==false && editOpenFlag&&(!checkStatus || crudLCStatus=='Editing')"
-          icon="el-icon-full-screen" size="small" @click="fullscreenHandle">鍏ㄥ睆缂栬緫
+        <span v-if="permissionList.fullscreenStatus">
+            <el-button
+              v-if=" attrEditVisible == false && attrFlagChiledren==false && editOpenFlag&&(!checkStatus || crudLCStatus=='Editing')"
+              icon="el-icon-full-screen" size="small" @click="fullscreenHandle">鍏ㄥ睆缂栬緫
         </el-button>
-        <!--        楠岃瘉瑙勫垯-->
+        </span>
+        <span v-if="permissionList.ruleStatus">
+           <!--        楠岃瘉瑙勫垯-->
         <el-button v-if="(!checkStatus || crudLCStatus=='Editing' )&& editOpenFlag" icon="el-icon-info" size="small"
                    @click="ruleAddHandler">楠岃瘉瑙勫垯
         </el-button>
-        <!--        灞炴�у垎缁�-->
+        </span>
+        <span v-if="permissionList.attrStatus">
+          <!--        灞炴�у垎缁�-->
         <el-button v-if="(!checkStatus || crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-menu" size="small"
                    @click="attrVisibleHandle">灞炴�у垎缁�
         </el-button>
+       </span>
       </el-button-group>
       <el-button-group>
-        <!--    淇濆瓨-->
+        <span v-if="permissionList.saveStatus">
+           <!--    淇濆瓨-->
         <el-button v-if="(!checkStatus|| crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-check" plain
                    size="small"
                    type="success" @click.prevent="addsHandler">淇濆瓨
         </el-button>
+        </span>
         <!--    棰勮鎺掑簭-->
-        <el-button icon="el-icon-arrow-down" size="small" @click="orderHandle">棰勮鎺掑簭</el-button>
-        <!--    鍒犻櫎-->
+        <el-button v-if="permissionList.orderStatus" icon="el-icon-arrow-down" size="small" @click="orderHandle">棰勮鎺掑簭
+        </el-button>
+        <span v-if="permissionList.removeStatus">
+           <!--    鍒犻櫎-->
         <el-button v-if="(!checkStatus || crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-delete" size="small"
                    @click="CrudRemove">鍒犻櫎
         </el-button>
+        </span>
         <!--    閲嶇疆-->
-        <el-button icon="el-icon-refresh-right" size="small" @click="reset">閲嶇疆</el-button>
+        <el-button v-if="permissionList.resetStatus" icon="el-icon-refresh-right" size="small" @click="resetHandler">
+          閲嶇疆
+        </el-button>
       </el-button-group>
       <el-button-group>
-        <!--鏂板-->
-        <!--        鍒嗙被娉ㄥ叆-->
+       <span v-if="permissionList.injectStatus"><!--        鍒嗙被娉ㄥ叆-->
         <el-button v-if="(!checkStatus || crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-magic-stick"
                    size="small" @click="injectBtn">鍒嗙被娉ㄥ叆
-        </el-button>
-        <!--    缁勫悎瑙勫垯-->
+        </el-button></span>
+        <span v-if="permissionList.isShowStatus"> <!--    缁勫悎瑙勫垯-->
         <el-button v-if="(!checkStatus || crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-film" size="small"
                    @click="isShowHandler">缁勫悎瑙勫垯
-        </el-button>
-        <!--        鏋氫妇娉ㄥ叆-->
+        </el-button></span>
+        <span v-if="permissionList.enumStatus"> <!--        鏋氫妇娉ㄥ叆-->
         <el-button v-if="(!checkStatus || crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-c-scale-to-original"
-                   size="small" @click="enmuVisHandle">鏋氫妇娉ㄥ叆
-        </el-button>
-        <!--    绾ц仈灞炴��-->
+                   size="small" @click="enumVisHandle">鏋氫妇娉ㄥ叆
+        </el-button></span>
+
+        <span v-if="permissionList.cascadStatus">
+               <!--    绾ц仈灞炴��-->
         <el-button v-if="(!checkStatus|| crudLCStatus=='Editing') && editOpenFlag" icon="el-icon-coin" size="small"
                    @click="CascadeHandle">绾ц仈灞炴��
         </el-button>
+        </span>
       </el-button-group>
 
       <el-button-group>
         <!--    鍚屾鍒板叾浠栨ā鏉�-->
-        <el-button icon="el-icon-share" size="small" @click="syncHandle">鍚屾鍒板叾浠栨ā鏉�</el-button>
+        <el-button v-if="permissionList.syncStatus" icon="el-icon-share" size="small" @click="syncHandle">鍚屾鍒板叾浠栨ā鏉�
+        </el-button>
       </el-button-group>
 
       <el-button-group>
         <!--    缂栫爜鐢宠棰勮-->
-        <el-button icon="el-icon-view" size="small" style="" @click="applicationHandle">缂栫爜鐢宠棰勮</el-button>
+        <el-button v-if="permissionList.applicationStatus" icon="el-icon-view" size="small" style=""
+                   @click="applicationHandle">缂栫爜鐢宠棰勮
+        </el-button>
 
       </el-button-group>
       <!-- 鏄惁寮�鍚紪杈�     -->
@@ -256,8 +277,8 @@
       </el-dialog>
       <!--        鍏ㄥ睆缂栬緫-->
       <el-dialog :before-close="escEdit" :visible.sync="attrEditVisible" append-to-body fullscreen="true">
-        <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag" :crudArrayFlag="this.crudArrayFlag"
-                  :editOpenFlag="editOpenFlag" :editStyleFlag="editStyleFlag"
+        <attrCrud :ProData="this.ProData" :attrFlagChiledren="this.attrFlag" :btnAuthList="btnAuthList"
+                  :crudArrayFlag="this.crudArrayFlag" :editOpenFlag="editOpenFlag" :editStyleFlag="editStyleFlag"
                   @editCloseChildren="editClose"></attrCrud>
       </el-dialog>
       <!--      缁勫悎瑙勫垯-->
@@ -292,20 +313,36 @@
           <el-button size="small" type="primary" @click="addVisible=false">鍙栨秷</el-button>
         </div>
       </el-dialog>
-
       <!--      鍙傜収閰嶇疆-->
       <refer-config-dialog
         :display="referConfigVisble"
         :referConfigOption="referConfigOption"
         @setReferConfigValue="setReferConfigValue"
       ></refer-config-dialog>
+      <!--杩戜箟璇嶆煡璇㈣鍒�      -->
+      <el-dialog :visible.sync="synonymVisible" append-to-body title="杩戜箟璇嶆煡璇㈣鍒�">
+        <avue-crud v-loading="sysonymLoading" :data="synonymData" :option="synonymOption" @selection-change="sysChange">
+          <template slot="lcStatus" slot-scope="{row}">
+            <el-tag v-if="row.lcStatus === 'Released'" type="success">鍚敤</el-tag>
+            <el-tag v-else type="danger">鍋滅敤</el-tag>
+          </template>
+        </avue-crud>
+        <div slot="footer" class="dialog-footer">
+          <el-button type="info" @click="sysClear">娓呯┖</el-button>
+          <el-button type="primary" @click="sysnonymSubmit">纭畾</el-button>
+          <el-button @click="sysnonymCancel">鍙栨秷</el-button>
+        </div>
+      </el-dialog>
 
     </div>
+
     <el-table v-if="this.crudArrayFlag"
               ref="referAttrCrud"
               v-loading="loading"
               :data="ProData"
-              :height="this.editStyleFlag? 800 : 343"
+              :header-cell-style="{background:'#FAFAFA',color:'#505050'}"
+              :height="this.tableHeight"
+              border
               style="width: 100%"
               @select="selectHandle"
               @cell-click="handleCellClicks"
@@ -313,13 +350,13 @@
               @row-click="rowClick"
     >
       <el-table-column
-        fixed
+        :fixed="!editStyleFlag ? 'left' : undefined"
         type="selection" width="55">
       </el-table-column>
       <!--<el-table-column fixed label="搴忓彿" type="index" width="55"></el-table-column>-->
       <el-table-column v-for="(item,index) in this.option.column" v-if="item.edit !='referName'"
                        :key="item.id"
-                       :fixed="item.fixed"
+                       :fixed="!editStyleFlag ? item.fixed : undefined"
                        :formatter="formAttr"
                        :label="item.label"
                        :prop="item.prop"
@@ -337,13 +374,15 @@
             @blur="saveRows(row)"
           ></el-input>
           <el-input-number v-if="editingRows === row && editShows== item.prop && item.edit == 'number'"
+                           v-show="!AddCellFlag"
                            v-model="row[item.prop]"
                            :style="{width:(item.width-10)+'px'}"
                            controls-position="right"
                            size="small" @blur="saveRows"></el-input-number>
-          <el-select v-if="editingRows === row && editShows== item.prop && item.edit == 'select' " slot="prepend"
-                     v-model="row[item.prop]" allow-create default-first-option
-                     filterable
+          <el-select v-if="editingRows === row && editShows== item.prop && item.edit == 'select' " v-show="!AddCellFlag"
+                     slot="prepend"
+                     v-model="row[item.prop]" :clearable="true" allow-create
+                     default-first-option filterable
                      @blur="selectChangeHandler(item.editConfig,index)">
             <el-option
               v-for="optionItem in item.data"
@@ -377,10 +416,18 @@
 </template>
 
 <script>
-import {AttrByBtm, gridCodeClassifyTemplateAttr, batchAddSave, copyto, listByFlag} from '@/api/template/templateAttr'
+import {
+  AttrByBtm,
+  gridCodeClassifyTemplateAttr,
+  batchAddSave,
+  copyto,
+  listByFlag,
+  codeSynonym
+} from '@/api/template/templateAttr'
 import {getList} from "@/api/refer/table";
 import func from "@/util/func";
 import {getCurrentInstance} from "vue";
+import {mapGetters} from "vuex";
 
 export default {
   name: "attrCrud .vue",
@@ -427,6 +474,9 @@
       type: Boolean,
       default: false
     },
+    btnAuthList: {
+      type: Array
+    }
   },
   watch: {
     crudOid: {
@@ -491,6 +541,50 @@
   },
   data() {
     return {
+      sysSelectData: [],
+      sysonymLoading: false,
+      synonymOption: {
+        addBtn: false,
+        editBtn: false,
+        delBtn: false,
+        refreshBtn: false,
+        columnBtn: false,
+        menu: false,
+        selection: true,
+        column: [
+          {
+            label: '缂栫爜',
+            prop: 'id',
+            align: 'center'
+          },
+          {
+            label: '鍚嶇О',
+            prop: 'name',
+            align: 'center'
+          },
+          {
+            label: '婧愬��',
+            prop: 'sourceValue',
+            align: 'center'
+          },
+          {
+            label: '鍚屼箟璇�',
+            prop: 'synonymValue',
+            align: 'center'
+          },
+          {
+            label: '鍚仠鐘舵��',
+            prop: 'lcStatus',
+            align: 'center',
+            slot: true
+          },
+        ]
+      },
+      synonymData: [],
+      //杩戜箟璇嶆煡璇㈣鍒�
+      synonymVisible: false,
+      //琛ㄦ牸楂樺害
+      dynamicHeight: '',
       // 淇濆瓨鍗曞厓鏍肩姸鎬�
       AddCellFlag: false,
       //鍏ㄥ睆缂栬緫楂樺害鐘舵��
@@ -639,6 +733,7 @@
         addBtn: false,
         header: false,
         align: 'center',
+        columnBtn: false,
         menuAlign: 'center',
         column: [{
           label: '',
@@ -781,7 +876,7 @@
           },
           {
             label: "鍙",
-            prop: "readonlyFlag",
+            prop: "readOnlyFlag",
           },
           {
             label: "鍒楄〃鎺掑簭",
@@ -1080,6 +1175,10 @@
         indexClassName: "搴忓彿",
         indexLabelClassName: '搴忓彿',
         index: true,
+        indexFixed: false,
+        selectionFixed: false,
+        columnBtn: false,
+        refreshBtn: false,
         border: true,
         addBtn: false,
         menu: false,
@@ -1089,7 +1188,7 @@
           {
             label: "灞炴�ц嫳鏂囧悕绉�",
             prop: "id",
-            width: 100,
+            width: 130,
           },
           {
             label: "灞炴�т腑鏂囧悕绉�",
@@ -1175,6 +1274,7 @@
       List: [],
       option: {
         index: false,
+        columnBtn: false,
         border: true,
         editBtn: false,
         selection: true,
@@ -1254,6 +1354,12 @@
             edit: "switch"
           },
           {
+            label: '杩戜箟璇嶆煡璇㈣鍒�',
+            prop: 'sysonymRuleOidsText',
+            cell: false,
+            edit: 'refer'
+          },
+          {
             label: "鐩镐技鏌ラ噸灞炴��",
             prop: "sameRepeatAttrFlag",
             width: 110,
@@ -1280,7 +1386,7 @@
           },
           {
             label: "鍙",
-            prop: "readonlyFlag",
+            prop: "readOnlyFlag",
             cell: false,
             edit: "switch"
           },
@@ -1292,7 +1398,7 @@
           },
           {
             label: "澶氳鏂囨湰",
-            prop: "textareaFlag",
+            prop: "textAreaFlag",
             cell: false,
             edit: "switch"
           },
@@ -1507,13 +1613,13 @@
         value: 'tableDisplayFlag',
         label: '鍒楄〃鏄剧ず'
       }, {
-        value: 'readonlyFlag',
+        value: 'readOnlyFlag',
         label: '鍙'
       }, {
         value: 'sortAttrFlag',
         label: '鍒楄〃鎺掑簭'
       }, {
-        value: 'textareaFlag',
+        value: 'textAreaFlag',
         label: '澶氳鏂囨湰'
       }, {
         value: 'imageFlag',
@@ -1525,6 +1631,25 @@
     }
   },
   computed: {
+    ...mapGetters(["permission"]),
+    permissionList() {
+      return {
+        busineStatus: this.vaildData(this.btnAuthList.attr_add, false),
+        fullscreenStatus: this.vaildData(this.btnAuthList.attr_view_edit, false),
+        ruleStatus: this.vaildData(this.btnAuthList.attr_rule, false),
+        attrStatus: this.vaildData(this.btnAuthList.attr_group, false),
+        saveStatus: this.vaildData(this.btnAuthList.attr_save, false),
+        resetStatus: this.vaildData(this.btnAuthList.attr_reset, false),
+        injectStatus: this.vaildData(this.btnAuthList.attr_inject, false),
+        isShowStatus: this.vaildData(this.btnAuthList.attr_formrule, false),
+        enumStatus: this.vaildData(this.btnAuthList.attr_enum, false),
+        cascadStatus: this.vaildData(this.btnAuthList.attr_parentcode, false),
+        syncStatus: this.vaildData(this.btnAuthList.attr_sync, false),
+        applicationStatus: this.vaildData(this.btnAuthList.attr_application, false),
+        orderStatus: this.vaildData(this.btnAuthList.attr_sort, false),
+        removeStatus: this.vaildData(this.btnAuthList.attr_delete, false),
+      }
+    },
     attrOids() {
       let oids = [];
       this.attrSelectList.forEach(ele => {
@@ -1539,6 +1664,13 @@
       });
       return oids.join(",");
     },
+    tableHeight() {
+      if (this.editStyleFlag) {
+        return '800px'
+      } else {
+        return 'calc(100vh - 602px)'
+      }
+    }
   },
   mounted() {
   },
@@ -1550,6 +1682,35 @@
     })
   },
   methods: {
+    //杩戜箟璇嶆煡璇㈣鍒欏彇娑�
+    sysnonymCancel() {
+      this.synonymVisible = false;
+    },
+    //杩戜箟璇嶆煡璇㈣鍒欑‘瀹�
+    sysnonymSubmit() {
+      if (this.sysSelectData.length <= 0) {
+        this.$message.warning('璇疯嚦灏戦�夋嫨涓�鏉℃暟鎹紒')
+      } else {
+        const newArray = this.sysSelectData.map(obj => obj.oid);
+        const newString = newArray.join(',');
+        const newArrayName = this.sysSelectData.map(obj => obj.name);
+        const newStringName = newArrayName.join(',')
+        this.$set(this.CurrentCell, 'sysonymRuleOids', newString)
+        //text
+        this.$set(this.CurrentCell, 'sysonymRuleOidsText', newStringName)
+        this.$set(this.CurrentCell, 'sysonymRuleOidsData', this.sysSelectData)
+        this.AddCellFlag = true;
+        this.synonymVisible = false;
+      }
+    },
+    sysClear(){
+      this.CurrentCell.sysonymRuleOidsText = "";
+      this.CurrentCell.sysonymRuleOidsData = "";
+      this.AddCellFlag = true;
+    },
+    sysChange(row) {
+      this.sysSelectData = row;
+    },
     //鏂板鎼滅储
     AddFindHandler() {
       if (this.SelectValue == 'id') {
@@ -1662,7 +1823,10 @@
             attrTableWidth: 120,
             ts: ""
           })
-          this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)))
+          // 灏嗚嫳鏂囩紪鍙疯浆鎹负灏忓啓
+          let {id, ...res} = this.busineAddList;
+          this.busineAddList = {id: id.toLowerCase(), ...res};
+          this.ProData.push(JSON.parse(JSON.stringify(this.busineAddList)));
         }
       })
       this.addVisible = false;
@@ -1796,8 +1960,8 @@
       // 鏂板嚱鏁扮敤浜庢墽琛宐atchAddSave鏂规硶
       const executeBatchAddSave = () => {
         batchAddSave(JSON.parse(JSON.stringify(this.ProData))).then(res => {
-          this.$message.success('淇濆瓨鎴愬姛')
           this.editOpenFlag = false;
+          this.$message.success('淇濆瓨鎴愬姛')
           // 璋冪敤鐖剁粍浠朵慨鏀规寜閽姸鎬�
           this.$emit('editCloseChildren')
           this.AddCellFlag = true;
@@ -1811,6 +1975,7 @@
     //琛ㄦ牸琛岀紪杈�
     handleCellClicks(row, column) {
       if (this.editOpenFlag) {
+        this.AddCellFlag = false;
         this.editingRows = row;
         this.editShows = column.property;
         this.rowOid = row.oid;
@@ -1876,6 +2041,17 @@
             if (this.CurrentCell.attributeGroup !== '') {
               this.attrModel = this.CurrentCell.attributeGroup
             }
+          },
+          sysonymRuleOidsText: () => {
+            this.sysonymLoading = true
+            codeSynonym('1', '-1', 'Released').then(res => {
+              this.synonymData = res.data.data.records;
+              this.sysonymLoading = false;
+            }).catch(() => {
+              this.$message.error('璇锋鏌ユ帶鍒跺彴閿欒淇℃伅锛�')
+            })
+
+            this.synonymVisible = true;
           }
         };
 
@@ -1909,7 +2085,7 @@
       this.tableData.splice(row.$index, 1)
     },
     //鏋氫妇娉ㄥ叆鎸夐挳
-    enmuVisHandle() {
+    enumVisHandle() {
       if (this.attrSelectList.length > 1) {
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉垮睘鎬�')
       } else if (this.attrSelectList < 1) {
@@ -2008,16 +2184,24 @@
       const regex = new RegExp(this.rulesData.ruleRowBds);
       if (regex.test(this.RulesForm.TestContent)) {
         this.$message.success('鏍¢獙鎴愬姛')
+      } else {
+        this.$message.error('鏍¢獙澶辫触')
       }
     },
     //鐐瑰嚮鍒嗙被娉ㄥ叆鎸夐挳
     injectBtn() {
       if (this.attrSelectList.length > 1) {
         this.$message.warning('鍙兘閫夋嫨涓�鏉℃ā鏉挎暟鎹�')
-      } else if (this.attrSelectList.length < 1) {
+        return;
+      }
+      if (this.attrSelectList.length < 1) {
         this.$message.warning('璇烽�夋嫨涓�鏉℃ā鏉挎暟鎹�')
-      } else if (this.attrSelectList.length === 1) {
+        return;
+        ;
+      }
+      if (this.attrSelectList.length === 1) {
         this.injectVisible = true;
+        return;
       }
     },
     //鍒嗙被娉ㄥ叆淇濆瓨
@@ -2050,15 +2234,17 @@
       } else {
         this.injectOption.classifyNumber = 0;
       }
+      // console.log(this.ProData)
       this.injectVisible = false;
     },
     //鍒嗙被娉ㄥ叆娓呯┖
     injectHandleReset() {
-      this.$set(this.CurrentCell, 'classifyInvokeText', '')
-      this.$set(this.CurrentCell, 'classifyInvokeAttr:', '')
-      this.$set(this.CurrentCell, 'classitwInvokeAttrName', '')
-      this.$set(this.CurrentCell, 'classifyInvokeEditFlag', 'false')
-      this.$set(this.CurrentCell, 'classifyInvokeLevel', 'none')
+      this.CurrentCell.classifyInvokeText = null;
+      this.CurrentCell.classifyInvokeAttr = '';
+      this.CurrentCell.classifyInvokeAttrName = '';
+      this.CurrentCell.classifyInvokeEditFlag = '';
+      this.CurrentCell.classifyInvokeLevel = null;
+      // console.log(this.ProData)
       this.injectVisible = false;
     },
     // 鍒嗙被娉ㄥ叆鍙栨秷
@@ -2079,7 +2265,7 @@
       })
     },
     //琛ㄦ牸閲嶇疆
-    reset() {
+    resetHandler() {
       this.CrudRend()
     },
     //鍚屾鍒板叾浠栨ā鏉�
@@ -2169,6 +2355,38 @@
 </script>
 
 <style lang="scss" scoped>
+
+/deep/ .el-table__fixed-body-wrapper {
+  .el-table__body {
+    padding-bottom: 15px;
+  }
+}
+
+//鍥哄畾鍒楅珮搴�
+/deep/ .el-table__fixed {
+  height: calc(100vh - 618px) !important;
+}
+
+///deep/ .el-table__fixed[v-if='editStyleFlag'] {
+//  height: calc(100vh - 152px)!important; // 缂栬緫鐘舵�佷笅鐨勯珮搴�
+//}
+// 婊氬姩鏉℃牱寮忎慨鏀�
+// 婊氬姩鏉$殑瀹藉害
+/deep/ .el-table__body-wrapper::-webkit-scrollbar {
+  height: 15px; // 绾靛悜婊氬姩鏉� 蹇呭啓
+  background: white;
+  border: white;
+  width: 10px;
+
+}
+
+// 婊氬姩鏉$殑婊戝潡
+/deep/ .el-table__body-wrapper::-webkit-scrollbar-thumb {
+  background-color: #ececec;
+  border-radius: 20px;
+  border: #ececec;
+}
+
 .app {
   /deep/ .el-button {
     //margin: 0 10px 10px 0;

--
Gitblit v1.9.3