From b158e02f918b2dc3618165a52a587b9e89177e69 Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 18 十月 2023 18:28:43 +0800
Subject: [PATCH] 整合代码

---
 Source/UBCS-WEB/src/views/wel/Statistic.vue |   35 +++++++++++++++++++++++++++++------
 1 files changed, 29 insertions(+), 6 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/wel/Statistic.vue b/Source/UBCS-WEB/src/views/wel/Statistic.vue
index 33a7d3a..ff0e95c 100644
--- a/Source/UBCS-WEB/src/views/wel/Statistic.vue
+++ b/Source/UBCS-WEB/src/views/wel/Statistic.vue
@@ -1,9 +1,9 @@
 <template>
-  <div>
+  <div class="App" v-loading="this.loading">
     <div style="display: flex; justify-content: flex-end;margin-bottom: 10px">
       <el-button icon="el-icon-more" plain size="small" type="primary" @click="MoreHandler">鏇村</el-button>
     </div>
-    <avue-data-box :animation="true" :option="option"></avue-data-box>
+    <avue-data-box ref="dataBox" :animation="true" :option="option"  ></avue-data-box>
 <!--      <avue-data-panel :animation="true":option="option"></avue-data-panel>-->
     <el-dialog :visible.sync="dialogTableVisible" append-to-body class="avue-dialog avue-dialog--top" title="涓绘暟鎹厤缃�"
                top="0">
@@ -21,14 +21,12 @@
 </template>
 
 <script>
-import {validatenull} from "@/util/validate";
 import {getList, save} from "@/api/system/statistic";
-import {flowRoute} from "@/util/flow";
-
 export default {
   name: "Statistic",
   data() {
     return {
+      loading:true,
       Crud: {
         form: '',
         data: [],
@@ -84,12 +82,31 @@
     }
   },
   created() {
-    this.MasterGetList()
+    this.MasterGetList();
+  },
+  mounted() {
+   this.FontInfo()
   },
   computed() {
 
   },
   methods: {
+    FontInfo(){
+      this.$nextTick(() => {
+        const dataFatherBox = this.$refs.dataBox.$el;
+        console.log(dataFatherBox);
+        this.$nextTick(() => {
+          setTimeout(() => {
+            const info = dataFatherBox.querySelectorAll('.item-info .info');
+            console.log('info', info);
+            info.forEach((info) => {
+              info.style.fontSize = '17px';
+            });
+            this.loading=false;
+          }, 1000); // 寤惰繜1绉掓煡鎵緄nfo鍏冪礌
+        });
+      });
+    },
     selectionChange(row) {
       // console.log(row)
       this.SelectRow = row;
@@ -108,10 +125,15 @@
         console.log(res)
         if (res.data.code === 200) {
           this.$message.success('淇濆瓨鎴愬姛锛�')
+          //娓呴櫎宸叉湁鏁扮粍涓璸ush鏁版嵁
           this.option.data = [];
           this.newData=[];
+
           this.MasterGetList()
           this.dialogTableVisible = false;
+          //瀛椾綋閲嶆柊鍔犺浇鍙樺ぇ
+          this.loading=true;
+          this.FontInfo()
         }
       })
     },
@@ -145,6 +167,7 @@
               isDefault: item.isDefault,
               color: this.hexColor,
               uiUrl: item.menuRoute,
+              id: 'custom-title'
             });
           } else if (item.isDefault === 0) {
             this.newData.push(item);

--
Gitblit v1.9.3