保安服务单位许可和备案申请系统
liuyg
2021-08-26 9cf6960c4fe099f0e0f2388d3fca775e176d830a
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);
                }
              }
            });
          });
        });
      });
    },