上饶市警务平台后台管理前端
zengh
2022-11-25 345ab523c6cc87014e910bc8aa6cc0a1d39c7f5b
src/views/system/user.vue
@@ -288,7 +288,8 @@
              label: "所属租户",
              prop: "tenantName",
              slot: true,
              display: false
              display: false,
              hide: true
            },
            {
              label: "用户姓名",
@@ -303,7 +304,7 @@
              display: false
            },
            {
              label: "所属部门",
              label: "所属单位",
              prop: "deptName",
              slot: true,
              display: false
@@ -506,7 +507,7 @@
                  }]
                },
                {
                  label: "所属部门",
                  label: "所属单位",
                  prop: "deptId",
                  type: "tree",
                  multiple: true,
@@ -518,11 +519,11 @@
                  slot: true,
                  rules: [{
                    required: true,
                    message: "请选择所属部门",
                    message: "请选择所属单位",
                    trigger: "click"
                  }]
                },
                {
/*                {
                  label: "所属岗位",
                  prop: "postId",
                  type: "tree",
@@ -537,7 +538,7 @@
                    message: "请选择所属岗位",
                    trigger: "click"
                  }],
                },
                },*/
              ]
            },
          ]
@@ -747,7 +748,8 @@
      rowSave(row, done, loading) {
        row.deptId = row.deptId.join(",");
        row.roleId = row.roleId.join(",");
        row.postId = row.postId.join(",");
        // row.postId = row.postId.join(",");
        row.postId = '';
        add(row).then(() => {
          this.initFlag = false;
          this.onLoad(this.page);
@@ -764,7 +766,8 @@
      rowUpdate(row, index, done, loading) {
        row.deptId = row.deptId.join(",");
        row.roleId = row.roleId.join(",");
        row.postId = row.postId.join(",");
        // row.postId = row.postId.join(",");
        row.postId = '';
        update(row).then(() => {
          this.initFlag = false;
          this.onLoad(this.page);