保安服务单位许可和备案申请系统
liuyg
2021-08-26 aa2e71d1bbbd05a6eff9f2b1be724291ad4f3bf6
src/components/Approval/Approval.vue
@@ -53,9 +53,28 @@
      type: Boolean,
      default: false,
    },
    data: {
      type: Array,
      default: [],
    },
  },
  computed: {
    ...mapGetters(["ApprovalShow", "userInfo"]),
  },
  created() {
    var d = this.data,
      b = [];
    for (var k in d) {
      // console.log({
      //   label: d[k].menuName,
      //   value: d[k].type + "",
      // });
      b.push({
        label: d[k].menuName,
        value: d[k].type + "",
      });
    }
    this.option1.column[1].dicData = b;
  },
  data() {
    return {
@@ -102,28 +121,7 @@
            label: "许可类型",
            prop: "ptype",
            type: "select",
            dicData: [
              {
                label: "保安服务公司许可申请",
                value: "0",
              },
              {
                label: "自招保安单位备案",
                value: "1",
              },
              {
                label: "保安培训公司备案",
                value: "2",
              },
              {
                label: "跨区域经营备案",
                value: "3",
              },
              {
                label: "自招保安单位备案撤销",
                value: "6",
              },
            ],
            dicData: [],
          },
          {
            label: "审批意见",
@@ -189,20 +187,20 @@
          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);
            });
          });
        });
      });
    },