Bladeren bron

去掉轮询报表数据时,遮盖罩

zhoupeng 1 jaar geleden
bovenliggende
commit
a4b46a9674

+ 1 - 1
chuanyi_client/src/background.js

@@ -85,7 +85,7 @@ async function createWindow() {
     win.webContents.openDevTools()
   } else {
     // 去掉顶部菜单
-    // win.setMenu(null)
+    win.setMenu(null)
   }
   // 菜单模板设置
   let templateMenu = [

+ 10 - 1
chuanyi_client/src/views/my_report/index.vue

@@ -1765,7 +1765,16 @@ export default {
         }
         return
       }
-      const loading = showLoading(this, '加载中,请稍候···')
+      // const loading = showLoading(this, '加载中,请稍候···')
+      const loading = this.$loading({
+        lock: true,
+        text: '加载中,请稍候···',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0)'
+      });
+      setTimeout(() => {
+          if (loading) loading.close()
+      }, 30 * 1000)
       getReportTableById(this.chooseMyReport.id).then(res => {
         let _data = res.data
         if (!_data) {

+ 10 - 1
chuanyi_client/src/views/run_config/index.vue

@@ -2522,7 +2522,16 @@ export default {
         }
         return;
       }
-      const loading = showLoading(this, "加载中,请稍候···");
+      // const loading = showLoading(this, "加载中,请稍候···");
+      const loading = this.$loading({
+        lock: true,
+        text: '加载中,请稍候···',
+        spinner: 'el-icon-loading',
+        background: 'rgba(0, 0, 0, 0)'
+      });
+      setTimeout(() => {
+          if (loading) loading.close()
+      }, 30 * 1000)
       getReportTableById(this.chooseMyReport.id)
         .then((res) => {
           let _data = res.data;