style: detailRef => detailData

This commit is contained in:
xingyu
2022-12-06 23:46:13 +08:00
parent 731e49d7b6
commit 860049d238
17 changed files with 48 additions and 49 deletions

View File

@@ -64,7 +64,7 @@
<Descriptions
v-if="actionType === 'detail'"
:schema="allSchemas.detailSchema"
:data="detailRef"
:data="detailData"
/>
<!-- 操作按钮 -->
<template #footer>
@@ -189,7 +189,7 @@ const actionType = ref('') // 操作按钮的类型
const dialogVisible = ref(false) // 是否显示弹出层
const dialogTitle = ref('edit') // 弹出层标题
const formRef = ref<FormExpose>() // 表单 Ref
const detailRef = ref() // 详情 Ref
const detailData = ref() // 详情 Ref
// 设置标题
const setDialogTile = (type: string) => {
@@ -216,7 +216,7 @@ const handleDetail = async (rowId: number) => {
setDialogTile('detail')
// 设置数据
const res = await RoleApi.getRoleApi(rowId)
detailRef.value = res
detailData.value = res
}
// 删除操作