| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="overSpread" v-show="isopen"></div> |
| | | <!-- 添加/编辑 --> |
| | | <AddUserLevel :isopen="isopen" @shutdown="shutdown" :editRow="editRow" /> |
| | | <AddUserLevel v-if="editConfig.visible" :edit-common-config="editConfig" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | import { getListRole, getUserList, roleChange, deleteRole } from "@/api/unifiedManage/userLevel" |
| | | export default { |
| | | name: "UserLevel", |
| | | props: {}, |
| | | props: { |
| | | isDetail: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | addConfig: { |
| | | type: Object, |
| | | default: () => { |
| | | return {} |
| | | } |
| | | } |
| | | }, |
| | | mixins: [pageMixin], |
| | | components: { AddUserLevel }, |
| | | computed: {}, |
| | |
| | | ], |
| | | showBottomCol: ["用户名", "姓名", "手机号", "岗位职务", "状态"], |
| | | isopen: false, |
| | | editRow: {}, |
| | | editConfig: { |
| | | visible: false, |
| | | title: "新建", |
| | |
| | | }, |
| | | // 新建 |
| | | addBtnClick() { |
| | | // this.editConfig.title = "新建" |
| | | // this.editConfig.visible = true |
| | | // this.editConfig.infomation = {} |
| | | this.isopen = true |
| | | this.editRow = {} |
| | | this.editConfig.title = "新建" |
| | | this.editConfig.visible = true |
| | | this.editConfig.infomation = {} |
| | | }, |
| | | // 搜索 |
| | | searchClick(val) { |
| | |
| | | // 编辑 |
| | | handleClick(val) { |
| | | console.log(val) |
| | | // this.editConfig.title = "编辑" |
| | | // this.editConfig.infomation = { ...val } |
| | | // this.editConfig.visible = true |
| | | this.editRow = val |
| | | this.isopen = true |
| | | this.editConfig.title = "编辑" |
| | | this.editConfig.infomation = { ...val } |
| | | this.editConfig.visible = true |
| | | }, |
| | | // 删除等级 |
| | | delClick(row) { |
| | |
| | | }) |
| | | }) |
| | | .catch(() => {}) |
| | | }, |
| | | shutdown() { |
| | | this.isopen = false |
| | | setTimeout(() => { |
| | | this.getData() |
| | | }, 200) |
| | | }, |
| | | // 行点击 |
| | | tableRowClick(row) { |