Ver código fonte

加个loading吧

cxmo 1 ano atrás
pai
commit
86d72c064d
1 arquivos alterados com 10 adições e 0 exclusões
  1. 10 0
      src/views/system_manage/etaBaseConfig.vue

+ 10 - 0
src/views/system_manage/etaBaseConfig.vue

@@ -258,6 +258,8 @@ export default {
                 'pptBgPic':[require('@/assets/img/eta_base_config/ppt_bgpic.jpg')],
                 'pptBackPic':[require('@/assets/img/eta_base_config/ppt_back.jpg')]
             },
+            /* loading */
+            configLoading:null,
 
         };
     },
@@ -315,6 +317,13 @@ export default {
             this.picShowList.length&&(this.showViewer = true)
         },
         getBaseConfig(){
+            this.configLoading = this.$loading({
+                lock: true,
+                target: '.eta-base-config',
+                text: '正在获取基本配置...',
+                spinner: 'el-icon-loading',
+                background: 'rgba(255, 255, 255, 0.8)',
+            });
             //获取WatermarkChart的值,赋值checkList
             //获取UseXf的值,赋值Iflytek
             etaBaseConfigInterence.getBaseConfig().then(res=>{
@@ -325,6 +334,7 @@ export default {
                 this.formData = res.Data
                 this.formData.CnPptCoverImgs = CnPptCoverImgs.length?CnPptCoverImgs.split(','):[]
                 this.formData.EnPptCoverImgs = EnPptCoverImgs.length?EnPptCoverImgs.split(','):[]
+                this.configLoading&&this.configLoading.close()
             })
         },
         saveBaseConfig(){