Skip to content

Commit

Permalink
rbac
Browse files Browse the repository at this point in the history
  • Loading branch information
limingjiu committed May 29, 2024
1 parent e0b76a3 commit e336af0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/type/entity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export interface UserSys {
created: string
updated: string
lastLogin: string
role: string
role: string[]
}

export interface MenuSys {
Expand Down
2 changes: 1 addition & 1 deletion src/views/sys/RolesView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ const handleDelete = async (row: RoleSys) => {
</template>
</el-table-column>

<el-table-column :fixed="fix" label="操作" min-width="300" align="center">
<el-table-column :fixed="fix" label="操作" min-width="350" align="center">
<template #default="scope">
<template v-if="checkButtonAuth(ButtonAuth.SYS_ROLE_EDIT)">
<el-button size="small" :type="getButtonType(ButtonAuth.SYS_ROLE_EDIT)" @click="handleEdit(scope.row)">{{ getButtonTitle(ButtonAuth.SYS_ROLE_EDIT) }}</el-button>
Expand Down
8 changes: 4 additions & 4 deletions src/views/sys/UsersView.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ type Form = {
email: string
phone: string
status: number
role: string
role: string[]
}
const form: Form = reactive({
id: undefined,
Expand All @@ -68,7 +68,7 @@ const form: Form = reactive({
email: '',
phone: '',
status: 0,
role: ''
role: []
})
const delBatch = async () => {
Expand Down Expand Up @@ -154,7 +154,7 @@ const clearForm = () => {
form.avatar = ''
form.email = ''
form.phone = ''
form.role = ''
form.role = []
form.status = 0
}
Expand Down Expand Up @@ -314,7 +314,7 @@ const getRegisterLink = async (username: string) => {
</el-form-item>

<el-form-item label="角色" label-width="100px" prop="role" class="role">
<el-select class="role-option" v-model="form.role" placeholder="请选择">
<el-select multiple class="role-option" v-model="form.role" placeholder="请选择">
<el-option v-for="item in roleList" :key="item.code" :label="item.name" :value="item.code">
</el-option>
</el-select>
Expand Down

0 comments on commit e336af0

Please sign in to comment.