Administrator
2021-07-09 f52c2aa50ff745edbddba5c4a1df0196433f848f
src/views/securityGuard/securityGuard.vue
@@ -21,6 +21,7 @@
                   @row-del="rowDel"
                   @row-update="rowUpdate"
                   @row-save="rowSave"
                   @row-click="rowClick"
                   :before-open="beforeOpen"
                   :page.sync="page"
                   @search-change="searchChange"
@@ -30,15 +31,11 @@
                   @size-change="sizeChange"
                   @refresh-change="refreshChange"
                   @on-load="onLoad">
          <!-- <template slot="menuLeft">
            <el-button type="danger"
                       size="small"
                       plain
                       icon="el-icon-delete"
                       v-if="permission.user_delete"
                       @click="handleDelete">删 除
          <template slot-scope="{ type, size, row }" slot="menu">
            <el-button icon="el-icon-edit" :size="size" :type="type" @click.stop="rowDel(row)">离职登记
            </el-button>
          </template> -->
          </template>
          <template slot-scope="{row}"
                    slot="tenantName">
            <el-tag>{{row.tenantName}}</el-tag>
@@ -257,7 +254,7 @@
              display: false
            },
            {
              label: "所属部门",
              label: "部门名称",
              prop: "deptName",
              slot: true,
              searchSpan:4,
@@ -292,15 +289,25 @@
                }
              ]
            },
             {
              label: "在职状态",
              prop: "status",
              slot: true,
              display: false,
              searchSpan:3,
              search:true
            }
            {
                  label: "在职状态",
                  prop: "status",
                  type: "select",
                  dicUrl: "/api/blade-system/dict-biz/dictionary?code=workerState",
                  props: {
                    label: "dictValue",
                    value: "dictKey"
                  },
                  dataType: "number",
                  display: false,
                  searchSpan:3,
                  search:true,
                  rules: [{
                    required: true,
                    message: "请选择在职状态",
                    trigger: "blur"
                  }]
                },
          ],
          group: [
            {
@@ -677,11 +684,10 @@
      ...mapGetters(["userInfo", "permission"]),
      permissionList() {
        return {
          addBtn: this.vaildData(null, false),
          // addBtn: this.vaildData(this.permission.user_add, false),
          addBtn: this.vaildData(this.permission.user_add, false),
          viewBtn: this.vaildData(null, false),
          delBtn: this.vaildData(this.permission.user_delete, false),
          editBtn: this.vaildData(null, false)
          delBtn: this.vaildData(null, false),
          editBtn: this.vaildData(this.permission.user_edit, false)
        };
      },
      platformPermissionList() {
@@ -708,6 +714,13 @@
    },
    methods: {
      //行点击事件
      rowClick(row) {
        this.$router.push({
          path: "/securityGuard/securityGuardDetail",
          query: { row: row },
        });
      },
      nodeClick(data) {
        this.treeDeptId = data.id;
        this.page.currentPage = 1;