保安服务企业管理-验收版本
shuishen
2021-12-04 a71912cb7ecbe4e00a588c9d0e193e70c799d502
src/views/dispatch/dispatch.vue
@@ -236,7 +236,7 @@
          },
          {
            label: "保安公司",
            prop: "deptName",
            prop: "deptId",
            type: "tree",
            overHidden: true,
            dicUrl:
@@ -429,12 +429,24 @@
  },
  created() {
    if (this.userInfo.role_name == "保安公司管理员") {
      const deptColumn = this.findObject(this.option.column, "deptId");
      deptColumn.search = false;
      deptColumn.addDisplay = false;
      deptColumn.editDisplay = false;
      deptColumn.viewDisplay = false;
      deptColumn.hide = true;
      // const deptColumn = this.findObject(this.option.column, "deptId");
      // // deptColumn.search = false;
      // deptColumn.addDisplay = false;
      // deptColumn.editDisplay = false;
      // deptColumn.viewDisplay = false;
      // deptColumn.hide = true;
      // this.option.column[2];
      this.option.column[2].search = false;
      this.option.column[2].addDisplay = false;
      this.option.column[2].editDisplay = false;
      this.option.column[2].viewDisplay = false;
      this.option.column[2].hide = true;
    } else {
      this.option.column[2].search = true;
      this.option.column[2].addDisplay = true;
      this.option.column[2].editDisplay = true;
      this.option.column[2].viewDisplay = true;
      this.option.column[2].hide = false;
    }
  },
  computed: {
@@ -484,7 +496,7 @@
      //   this.$message.success("页码" + val);
    },
    rowSave(form, done, loading) {
      form["deptId"] = this.userInfo.dept_id;
      // form["deptId"] = this.userInfo.dept_id;
      adddata(form).then(
        (res) => {
          this.onLoad(this.page);