保安服务单位许可和备案申请系统
liuyg
2021-08-27 2eee4a28e92748c181c92c21f3dbf64f10c8df61
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 + "",
@@ -160,6 +160,9 @@
    };
  },
  methods: {
    refreshChange() {
      this.onLoad(this.page);
    },
    beforeOpen(done, type) {
      if (["edit", "view"].includes(type)) {
        getDetail(this.form.id).then((res) => {
@@ -199,16 +202,6 @@
              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);
                }
              }
            });
          });
        });