gjy 3 年之前
父节点
当前提交
57fa58dce1
共有 2 个文件被更改,包括 33 次插入3 次删除
  1. 16 3
      src/model/defalutConfig/indexRx.js
  2. 17 0
      src/views/houseSelfCollect/inspectionManagementNew.vue

+ 16 - 3
src/model/defalutConfig/indexRx.js

@@ -9,10 +9,23 @@ const instance = axios.create({
 
 instance.interceptors.request.use(
   (config) => {
-    // console.info(config.url, 'config.url')
-    if (ignoreUrl.indexOf(config.url) === -1) {
-      EventBus.$emit('showLoading')
+    if(config.params){
+      if(config.params.loadingstatus){
+        // EventBus.$emit('hideLoading')
+      }else{
+        if (ignoreUrl.indexOf(config.url) === -1) {
+          EventBus.$emit('showLoading')
+        }
+      }
+    }else{
+      if (ignoreUrl.indexOf(config.url) === -1) {
+        EventBus.$emit('showLoading')
+      }
     }
+    
+    // console.info(config.url, 'config.url')
+    console.log(config, 'config.url')
+    
     return config
   },
   (error) => {

+ 17 - 0
src/views/houseSelfCollect/inspectionManagementNew.vue

@@ -596,7 +596,24 @@
     },
     methods: {
       refreshClick(){
+         getinspectList({
+            compId: localStorage.getItem('ws-pf_compId'),
+            currentPage: this.currentPage,
+            pageSize: this.pageSize,
+            warehouseName: this.warehouseName,
+            managementType: 1,
+            statusType:this.statusType,
+            serviceManagementType:this.serviceManagementType,
+            loadingstatus:1,
+          })
+          .toPromise()
+          .then((response) => {
+            this.inspect = response.records
+            this.deptBudgetTotal = response.total
+            // this.$forceUpdate();
+          })
              this.timer = setInterval(function(){
+
             //         axios({
             //   method: 'post',
             //   url: 'https://www.zthymaoyi.com/upload/admin',