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 |   36 ++++++++++++++++++++++--------------
 1 files changed, 22 insertions(+), 14 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/wel/Statistic.vue b/Source/UBCS-WEB/src/views/wel/Statistic.vue
index dac25a2..ff0e95c 100644
--- a/Source/UBCS-WEB/src/views/wel/Statistic.vue
+++ b/Source/UBCS-WEB/src/views/wel/Statistic.vue
@@ -85,25 +85,28 @@
     this.MasterGetList();
   },
   mounted() {
-    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鍏冪礌
-      });
-    });
+   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;
@@ -122,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()
         }
       })
     },

--
Gitblit v1.9.3