|
@@ -64,7 +64,7 @@ const UserCRUD: ICRUD = {
|
|
|
},
|
|
|
getList(data: any) {
|
|
|
return getRoleUserList({ id: curRole.value.id, ...data }).then((res: any) => {
|
|
|
- slectedUser.value = res.rows.map((item: any) => item.id)
|
|
|
+ selectedUser.value = res.rows.map((item: any) => item.id)
|
|
|
return res
|
|
|
})
|
|
|
},
|
|
@@ -78,7 +78,7 @@ const userFormConfig = reactive<BasicForm>({
|
|
|
})
|
|
|
|
|
|
const dialogVisible = ref(false)
|
|
|
-const slectedUser = ref<any>([])
|
|
|
+const selectedUser = ref<any>([])
|
|
|
const userList = ref<any>([])
|
|
|
const userRef = ref<any>(null)
|
|
|
|
|
@@ -96,7 +96,7 @@ const closeDialog = () => {
|
|
|
const handleSubmit = () => {
|
|
|
createRoleUser({
|
|
|
role: { id: curRole.value.id },
|
|
|
- ids: slectedUser.value
|
|
|
+ ids: selectedUser.value
|
|
|
}).then(() => {
|
|
|
userRef.value.refresh()
|
|
|
dialogVisible.value = false
|
|
@@ -147,7 +147,7 @@ const handleSubmit = () => {
|
|
|
</el-row>
|
|
|
<el-dialog v-model="dialogVisible" title="添加用户" @close="closeDialog">
|
|
|
<el-transfer
|
|
|
- v-model="slectedUser"
|
|
|
+ v-model="selectedUser"
|
|
|
:data="userList"
|
|
|
:titles="['用户列表', '已选用户']"
|
|
|
:props="{ key: 'id', label: 'name' }"
|