chore: update deps

This commit is contained in:
xingyu
2022-10-26 09:44:07 +08:00
parent 97cab05df2
commit 3b3404747e
9 changed files with 259 additions and 484 deletions

View File

@ -121,9 +121,10 @@ const handleAdd = () => {
// 修改操作
const handleUpdate = async (row: UserVO) => {
await setDialogTile('update')
unref(formRef)?.delSchema('username')
unref(formRef)?.delSchema('password')
// 设置数据
const res = await UserApi.getUserApi(row.id)
console.info(res)
deptId.value = res.deptId
postIds.value = res.postIds
unref(formRef)?.setValues(res)
@ -358,9 +359,6 @@ onMounted(async () => {
v-model:currentPage="tableObject.currentPage"
@register="register"
>
<template #sex="{ row }">
<DictTag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="row.sex" />
</template>
<template #status="{ row }">
<el-switch
v-model="row.status"
@ -461,9 +459,6 @@ onMounted(async () => {
</template>
</el-tag>
</template>
<template #sex="{ row }">
<DictTag :type="DICT_TYPE.SYSTEM_USER_SEX" :value="row.sex" />
</template>
<template #status="{ row }">
<DictTag :type="DICT_TYPE.COMMON_STATUS" :value="row.status" />
</template>

View File

@ -36,13 +36,20 @@ const crudSchemas = reactive<CrudSchema[]>([
{
label: '用户账号',
field: 'username',
form: {
show: false
},
search: {
show: true
}
},
{
label: '用户密码',
field: 'password',
form: {
component: 'InputPassword'
},
detail: {
show: false
}
},
{
label: '用户昵称',
field: 'nickname'
@ -58,11 +65,6 @@ const crudSchemas = reactive<CrudSchema[]>([
show: true
}
},
{
label: '用户性别',
field: 'sex',
dictType: DICT_TYPE.SYSTEM_USER_SEX
},
{
label: '部门',
field: 'deptId',