保安服务单位许可和备案申请系统
liuyg
2021-09-26 6162d1cfeac4c4dc3b022eecfa67b6fa7e58495d
src/components/Approval/Approval.vue
@@ -65,10 +65,10 @@
    var d = this.data,
      b = [];
    for (var k in d) {
      console.log({
        label: d[k].menuName,
        value: d[k].type + "",
      });
      // console.log({
      //   label: d[k].menuName,
      //   value: d[k].type + "",
      // });
      b.push({
        label: d[k].menuName,
        value: d[k].type + "",
@@ -136,6 +136,14 @@
            valueFormat: "yyyy-MM-dd HH:mm:ss",
          },
          {
            label: "预计审核时间",
            prop: "overtime",
            addDisplay: false,
            type: "date",
            format: "yyyy-MM-dd",
            valueFormat: "yyyy-MM-dd",
          },
          {
            label: "审核状态",
            prop: "type",
            addDisplay: false,
@@ -160,6 +168,9 @@
    };
  },
  methods: {
    refreshChange() {
      this.onLoad(this.page);
    },
    beforeOpen(done, type) {
      if (["edit", "view"].includes(type)) {
        getDetail(this.form.id).then((res) => {
@@ -172,43 +183,37 @@
      this.loading = true;
      //   console.log(this.userInfo);
      params["cardid"] = this.userInfo.Id;
      var num = 0;
      getList(
        page.currentPage,
        page.pageSize,
        Object.assign(params, this.query)
      ).then((res) => {
        const data = res.data.data;
        this.page.total = data.total;
        this.data = data.records;
        num += res.data.data.total;
        this.data = res.data.data.records;
        this.loading = false;
        getListre(
          page.currentPage,
          page.pageSize,
          Object.assign(params, this.query)
        ).then((ress) => {
          num += ress.data.data.total;
          this.data = this.data.concat(ress.data.data.records);
          getListrek(
            page.currentPage,
            page.pageSize,
            Object.assign(params, this.query)
          ).then((resk) => {
            num += resk.data.data.total;
            this.data = this.data.concat(resk.data.data.records);
            getListrev(
              page.currentPage,
              page.pageSize,
              Object.assign(params, this.query)
            ).then((resv) => {
              num += resv.data.data.total;
              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);
                }
              }
              this.page.total = num;
            });
          });
        });