From 9cf6960c4fe099f0e0f2388d3fca775e176d830a Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Thu, 26 Aug 2021 10:20:53 +0800
Subject: [PATCH] 跨区域

---
 src/components/Approval/Approval.vue |   38 ++++++++++++++++++++++++--------------
 1 files changed, 24 insertions(+), 14 deletions(-)

diff --git a/src/components/Approval/Approval.vue b/src/components/Approval/Approval.vue
index 159a348..12e78fd 100644
--- a/src/components/Approval/Approval.vue
+++ b/src/components/Approval/Approval.vue
@@ -187,20 +187,30 @@
           Object.assign(params, this.query)
         ).then((ress) => {
           this.data = this.data.concat(ress.data.data.records);
-        });
-        getListrek(
-          page.currentPage,
-          page.pageSize,
-          Object.assign(params, this.query)
-        ).then((resk) => {
-          this.data = this.data.concat(resk.data.data.records);
-        });
-        getListrev(
-          page.currentPage,
-          page.pageSize,
-          Object.assign(params, this.query)
-        ).then((resv) => {
-          this.data = this.data.concat(resv.data.data.records);
+          getListrek(
+            page.currentPage,
+            page.pageSize,
+            Object.assign(params, this.query)
+          ).then((resk) => {
+            this.data = this.data.concat(resk.data.data.records);
+            getListrev(
+              page.currentPage,
+              page.pageSize,
+              Object.assign(params, this.query)
+            ).then((resv) => {
+              this.data = this.data.concat(resv.data.data.records);
+              // console.log(this.data);
+              if (this.data.length == 0) {
+                this.$store.commit("changecanDoIt", true);
+              } else {
+                if (this.data[0].type == 0 || this.data[0].type == 2) {
+                  this.$store.commit("changecanDoIt", false);
+                } else {
+                  this.$store.commit("changecanDoIt", true);
+                }
+              }
+            });
+          });
         });
       });
     },

--
Gitblit v1.9.3