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

@ -92,12 +92,12 @@ const handleChangeState = async (row: ModelVO) => {
.catch(() => {})
}
// ========== 详情相关 ==========
const detailRef = ref() // 详情 Ref
const detailData = ref() // 详情 Ref
// 详情操作
const handleDetail = async (row: ModelVO) => {
// 设置数据
detailRef.value = row
detailData.value = row
setDialogTile('detail')
}
@ -198,7 +198,7 @@ getList()
<Descriptions
v-if="actionType === 'detail'"
:schema="allSchemas.detailSchema"
:data="detailRef"
:data="detailData"
/>
<!-- 操作按钮 -->
<template #footer>