fix: error

This commit is contained in:
xingyu 2022-11-16 19:56:58 +08:00
parent 6360d43274
commit 9dcf0218cd
2 changed files with 3 additions and 6 deletions

View File

@ -35,10 +35,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
},
{
title: '显示顺序',
field: 'sort',
form: {
component: 'InputNumber'
}
field: 'sort'
},
{
title: t('common.status'),

View File

@ -351,16 +351,17 @@ const setDialogTile = async (type: string) => {
//
const handleCreate = async () => {
actionType.value = 'create'
//
deptId.value = null
postIds.value = []
dialogVisible.value = true
dialogTitle.value = t('action.create')
actionType.value = 'create'
}
//
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
unref(formRef)?.delSchema('username')
unref(formRef)?.delSchema('password')
//
@ -368,7 +369,6 @@ const handleUpdate = async (rowId: number) => {
deptId.value = res.deptId
postIds.value = res.postIds
unref(formRef)?.setValues(res)
setDialogTile('update')
}
const detailData = ref()