| | |
| | | @row-del="rowDel" |
| | | @row-update="rowUpdate" |
| | | @row-save="rowSave" |
| | | @row-click="rowClick" |
| | | :before-open="beforeOpen" |
| | | :page.sync="page" |
| | | @search-change="searchChange" |
| | |
| | | @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> |
| | |
| | | display: false |
| | | }, |
| | | { |
| | | label: "所属部门", |
| | | label: "部门名称", |
| | | prop: "deptName", |
| | | slot: true, |
| | | searchSpan:4, |
| | |
| | | } |
| | | ] |
| | | }, |
| | | |
| | | { |
| | | 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: [ |
| | | { |
| | |
| | | ...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() { |
| | |
| | | |
| | | }, |
| | | methods: { |
| | | //行点击事件 |
| | | rowClick(row) { |
| | | this.$router.push({ |
| | | path: "/securityGuard/securityGuardDetail", |
| | | query: { row: row }, |
| | | }); |
| | | }, |
| | | nodeClick(data) { |
| | | this.treeDeptId = data.id; |
| | | this.page.currentPage = 1; |