mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2025-02-17 09:40:34 +08:00
fix: error
This commit is contained in:
parent
6360d43274
commit
9dcf0218cd
@ -35,10 +35,7 @@ const crudSchemas = reactive<VxeCrudSchema>({
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '显示顺序',
|
title: '显示顺序',
|
||||||
field: 'sort',
|
field: 'sort'
|
||||||
form: {
|
|
||||||
component: 'InputNumber'
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('common.status'),
|
title: t('common.status'),
|
||||||
|
@ -351,16 +351,17 @@ const setDialogTile = async (type: string) => {
|
|||||||
|
|
||||||
// 新增操作
|
// 新增操作
|
||||||
const handleCreate = async () => {
|
const handleCreate = async () => {
|
||||||
|
actionType.value = 'create'
|
||||||
// 重置表单
|
// 重置表单
|
||||||
deptId.value = null
|
deptId.value = null
|
||||||
postIds.value = []
|
postIds.value = []
|
||||||
dialogVisible.value = true
|
dialogVisible.value = true
|
||||||
dialogTitle.value = t('action.create')
|
dialogTitle.value = t('action.create')
|
||||||
actionType.value = 'create'
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 修改操作
|
// 修改操作
|
||||||
const handleUpdate = async (rowId: number) => {
|
const handleUpdate = async (rowId: number) => {
|
||||||
|
setDialogTile('update')
|
||||||
unref(formRef)?.delSchema('username')
|
unref(formRef)?.delSchema('username')
|
||||||
unref(formRef)?.delSchema('password')
|
unref(formRef)?.delSchema('password')
|
||||||
// 设置数据
|
// 设置数据
|
||||||
@ -368,7 +369,6 @@ const handleUpdate = async (rowId: number) => {
|
|||||||
deptId.value = res.deptId
|
deptId.value = res.deptId
|
||||||
postIds.value = res.postIds
|
postIds.value = res.postIds
|
||||||
unref(formRef)?.setValues(res)
|
unref(formRef)?.setValues(res)
|
||||||
setDialogTile('update')
|
|
||||||
}
|
}
|
||||||
const detailData = ref()
|
const detailData = ref()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user