This commit is contained in:
xingyu4j
2022-11-16 11:32:47 +08:00
parent d485b8289d
commit eed6a9a689
7 changed files with 81 additions and 18 deletions

View File

@ -110,18 +110,18 @@ const handleCreate = () => {
// 修改操作
const handleUpdate = async (rowId: number) => {
setDialogTile('update')
// 设置数据
const res = await ErrorCodeApi.getErrorCodeApi(rowId)
unref(formRef)?.setValues(res)
setDialogTile('update')
}
// 详情操作
const handleDetail = async (rowId: number) => {
setDialogTile('detail')
// 设置数据
const res = await ErrorCodeApi.getErrorCodeApi(rowId)
detailRef.value = res
setDialogTile('detail')
}
// 删除操作