Browse Source

处理重新质控的加载问题

liyanyan 1 day ago
parent
commit
e3cb2dfc55
2 changed files with 1 additions and 11 deletions
  1. 1 1
      src/axios/index2.js
  2. 0 10
      src/views/allcase/caseViews.vue

+ 1 - 1
src/axios/index2.js

@@ -43,7 +43,7 @@ service2.interceptors.request.use(
   config => {
     const { isNeedLoading = false } = config.data || {};
     const { NODE_ENV } = process.env
-    if (!isNeedLoading && loadingCount == 0 && NODE_ENV == 'development') {
+    if (!isNeedLoading && loadingCount == 0) {
       loadingInstance = Loading.service({
         lock: false,
         customClass: 'z-index999',

+ 0 - 10
src/views/allcase/caseViews.vue

@@ -459,17 +459,7 @@ export default {
 
 
     onControll() {
-      let loadingInstance = Loading.service({
-        lock: true,
-        spinner: 'el-icon-loading',
-        background: 'rgba(0, 0, 0, 0.7)',
-        text: '执行中,请稍后...'
-      });
       this.$axios2.get(`/quality_handle?zyh=${this.valData}`).then(res => {
-        // this.$message.success('执行中...');
-        this.$nextTick(() => { // 以服务的方式调用的 Loading 需要异步关闭
-          loadingInstance.close();
-        });
         if (res.data === true) {
           this.valData = this.storageGet('getData');
           if (this.valData) {