Commit 860049d23806c344cdb3adb6a57ad190e2825737

Authored by xingyu
1 parent 731e49d7

style: detailRef => detailData

yudao-ui-admin-vue3/src/views/bpm/form/index.vue
@@ -73,12 +73,12 @@ const submitForm = async () => { @@ -73,12 +73,12 @@ const submitForm = async () => {
73 } 73 }
74 74
75 // ========== 详情相关 ========== 75 // ========== 详情相关 ==========
76 -const detailRef = ref() // 详情 Ref 76 +const detailData = ref() // 详情 Ref
77 77
78 // 详情操作 78 // 详情操作
79 const handleDetail = async (row: FormVO) => { 79 const handleDetail = async (row: FormVO) => {
80 // 设置数据 80 // 设置数据
81 - detailRef.value = row 81 + detailData.value = row
82 setDialogTile('detail') 82 setDialogTile('detail')
83 } 83 }
84 84
@@ -148,7 +148,7 @@ getList() @@ -148,7 +148,7 @@ getList()
148 <Descriptions 148 <Descriptions
149 v-if="actionType === 'detail'" 149 v-if="actionType === 'detail'"
150 :schema="allSchemas.detailSchema" 150 :schema="allSchemas.detailSchema"
151 - :data="detailRef" 151 + :data="detailData"
152 /> 152 />
153 <!-- 操作按钮 --> 153 <!-- 操作按钮 -->
154 <template #footer> 154 <template #footer>
yudao-ui-admin-vue3/src/views/bpm/group/index.vue
@@ -90,12 +90,12 @@ const getUserNickName = (userId: number) =&gt; { @@ -90,12 +90,12 @@ const getUserNickName = (userId: number) =&gt; {
90 return '未知(' + userId + ')' 90 return '未知(' + userId + ')'
91 } 91 }
92 // ========== 详情相关 ========== 92 // ========== 详情相关 ==========
93 -const detailRef = ref() // 详情 Ref 93 +const detailData = ref() // 详情 Ref
94 94
95 // 详情操作 95 // 详情操作
96 const handleDetail = async (row: UserGroupVO) => { 96 const handleDetail = async (row: UserGroupVO) => {
97 // 设置数据 97 // 设置数据
98 - detailRef.value = row 98 + detailData.value = row
99 setDialogTile('detail') 99 setDialogTile('detail')
100 } 100 }
101 101
@@ -194,7 +194,7 @@ onMounted(async () =&gt; { @@ -194,7 +194,7 @@ onMounted(async () =&gt; {
194 <Descriptions 194 <Descriptions
195 v-if="actionType === 'detail'" 195 v-if="actionType === 'detail'"
196 :schema="allSchemas.detailSchema" 196 :schema="allSchemas.detailSchema"
197 - :data="detailRef" 197 + :data="detailData"
198 > 198 >
199 <template #memberUserIds="{ row }"> 199 <template #memberUserIds="{ row }">
200 <span v-for="userId in row.memberUserIds" :key="userId"> 200 <span v-for="userId in row.memberUserIds" :key="userId">
yudao-ui-admin-vue3/src/views/bpm/model/index.vue
@@ -92,12 +92,12 @@ const handleChangeState = async (row: ModelVO) =&gt; { @@ -92,12 +92,12 @@ const handleChangeState = async (row: ModelVO) =&gt; {
92 .catch(() => {}) 92 .catch(() => {})
93 } 93 }
94 // ========== 详情相关 ========== 94 // ========== 详情相关 ==========
95 -const detailRef = ref() // 详情 Ref 95 +const detailData = ref() // 详情 Ref
96 96
97 // 详情操作 97 // 详情操作
98 const handleDetail = async (row: ModelVO) => { 98 const handleDetail = async (row: ModelVO) => {
99 // 设置数据 99 // 设置数据
100 - detailRef.value = row 100 + detailData.value = row
101 setDialogTile('detail') 101 setDialogTile('detail')
102 } 102 }
103 103
@@ -198,7 +198,7 @@ getList() @@ -198,7 +198,7 @@ getList()
198 <Descriptions 198 <Descriptions
199 v-if="actionType === 'detail'" 199 v-if="actionType === 'detail'"
200 :schema="allSchemas.detailSchema" 200 :schema="allSchemas.detailSchema"
201 - :data="detailRef" 201 + :data="detailData"
202 /> 202 />
203 <!-- 操作按钮 --> 203 <!-- 操作按钮 -->
204 <template #footer> 204 <template #footer>
yudao-ui-admin-vue3/src/views/bpm/processInstance/index.vue
@@ -38,12 +38,12 @@ const handleCancel = (row: ProcessInstanceVO) =&gt; { @@ -38,12 +38,12 @@ const handleCancel = (row: ProcessInstanceVO) =&gt; {
38 } 38 }
39 39
40 // ========== 详情相关 ========== 40 // ========== 详情相关 ==========
41 -const detailRef = ref() // 详情 Ref 41 +const detailData = ref() // 详情 Ref
42 42
43 // 详情操作 43 // 详情操作
44 const handleDetail = async (row: ProcessInstanceVO) => { 44 const handleDetail = async (row: ProcessInstanceVO) => {
45 // 设置数据 45 // 设置数据
46 - detailRef.value = row 46 + detailData.value = row
47 dialogVisible.value = true 47 dialogVisible.value = true
48 } 48 }
49 49
@@ -105,7 +105,7 @@ getList() @@ -105,7 +105,7 @@ getList()
105 105
106 <XModal v-model="dialogVisible" :title="t('action.detail')"> 106 <XModal v-model="dialogVisible" :title="t('action.detail')">
107 <!-- 对话框(详情) --> 107 <!-- 对话框(详情) -->
108 - <Descriptions :schema="allSchemas.detailSchema" :data="detailRef" /> 108 + <Descriptions :schema="allSchemas.detailSchema" :data="detailData" />
109 <!-- 操作按钮 --> 109 <!-- 操作按钮 -->
110 <template #footer> 110 <template #footer>
111 <el-button @click="dialogVisible = false">{{ t('dialog.close') }}</el-button> 111 <el-button @click="dialogVisible = false">{{ t('dialog.close') }}</el-button>
yudao-ui-admin-vue3/src/views/infra/apiAccessLog/index.vue
@@ -21,7 +21,7 @@ @@ -21,7 +21,7 @@
21 </ContentWrap> 21 </ContentWrap>
22 <XModal v-model="dialogVisible" :title="dialogTitle"> 22 <XModal v-model="dialogVisible" :title="dialogTitle">
23 <!-- 对话框(详情) --> 23 <!-- 对话框(详情) -->
24 - <Descriptions :schema="allSchemas.detailSchema" :data="detailRef"> 24 + <Descriptions :schema="allSchemas.detailSchema" :data="detailData">
25 <template #duration="{ row }"> 25 <template #duration="{ row }">
26 <span>{{ row.duration + 'ms' }}</span> 26 <span>{{ row.duration + 'ms' }}</span>
27 </template> 27 </template>
@@ -52,14 +52,14 @@ const { gridOptions } = useVxeGrid&lt;ApiAccessLogApi.ApiAccessLogVO&gt;({ @@ -52,14 +52,14 @@ const { gridOptions } = useVxeGrid&lt;ApiAccessLogApi.ApiAccessLogVO&gt;({
52 getListApi: ApiAccessLogApi.getApiAccessLogPageApi 52 getListApi: ApiAccessLogApi.getApiAccessLogPageApi
53 }) 53 })
54 // ========== 详情相关 ========== 54 // ========== 详情相关 ==========
55 -const detailRef = ref() // 详情 Ref 55 +const detailData = ref() // 详情 Ref
56 const dialogVisible = ref(false) // 是否显示弹出层 56 const dialogVisible = ref(false) // 是否显示弹出层
57 const dialogTitle = ref('') // 弹出层标题 57 const dialogTitle = ref('') // 弹出层标题
58 58
59 // 详情操作 59 // 详情操作
60 const handleDetail = (row: ApiAccessLogApi.ApiAccessLogVO) => { 60 const handleDetail = (row: ApiAccessLogApi.ApiAccessLogVO) => {
61 // 设置数据 61 // 设置数据
62 - detailRef.value = row 62 + detailData.value = row
63 dialogTitle.value = t('action.detail') 63 dialogTitle.value = t('action.detail')
64 dialogVisible.value = true 64 dialogVisible.value = true
65 } 65 }
yudao-ui-admin-vue3/src/views/infra/apiErrorLog/index.vue
@@ -44,7 +44,7 @@ @@ -44,7 +44,7 @@
44 </ContentWrap> 44 </ContentWrap>
45 <XModal v-model="dialogVisible" :title="dialogTitle"> 45 <XModal v-model="dialogVisible" :title="dialogTitle">
46 <!-- 对话框(详情) --> 46 <!-- 对话框(详情) -->
47 - <Descriptions :schema="allSchemas.detailSchema" :data="detailRef" /> 47 + <Descriptions :schema="allSchemas.detailSchema" :data="detailData" />
48 <!-- 操作按钮 --> 48 <!-- 操作按钮 -->
49 <template #footer> 49 <template #footer>
50 <XButton :title="t('dialog.close')" @click="dialogVisible = false" /> 50 <XButton :title="t('dialog.close')" @click="dialogVisible = false" />
@@ -71,14 +71,14 @@ const { gridOptions, getList, exportList } = useVxeGrid&lt;ApiErrorLogApi.ApiErrorL @@ -71,14 +71,14 @@ const { gridOptions, getList, exportList } = useVxeGrid&lt;ApiErrorLogApi.ApiErrorL
71 exportListApi: ApiErrorLogApi.exportApiErrorLogApi 71 exportListApi: ApiErrorLogApi.exportApiErrorLogApi
72 }) 72 })
73 // ========== 详情相关 ========== 73 // ========== 详情相关 ==========
74 -const detailRef = ref() // 详情 Ref 74 +const detailData = ref() // 详情 Ref
75 const dialogVisible = ref(false) // 是否显示弹出层 75 const dialogVisible = ref(false) // 是否显示弹出层
76 const dialogTitle = ref('') // 弹出层标题 76 const dialogTitle = ref('') // 弹出层标题
77 77
78 // 详情操作 78 // 详情操作
79 const handleDetail = (row: ApiErrorLogApi.ApiErrorLogVO) => { 79 const handleDetail = (row: ApiErrorLogApi.ApiErrorLogVO) => {
80 // 设置数据 80 // 设置数据
81 - detailRef.value = row 81 + detailData.value = row
82 dialogTitle.value = t('action.detail') 82 dialogTitle.value = t('action.detail')
83 dialogVisible.value = true 83 dialogVisible.value = true
84 } 84 }
yudao-ui-admin-vue3/src/views/infra/codegen/components/Preview.vue
@@ -8,7 +8,6 @@ @@ -8,7 +8,6 @@
8 node-key="id" 8 node-key="id"
9 :data="preview.fileTree" 9 :data="preview.fileTree"
10 :expand-on-click-node="false" 10 :expand-on-click-node="false"
11 - default-expanded-keys="[0]"  
12 highlight-current 11 highlight-current
13 @node-click="handleNodeClick" 12 @node-click="handleNodeClick"
14 /> 13 />
yudao-ui-admin-vue3/src/views/infra/job/JobLog.vue
@@ -33,7 +33,7 @@ @@ -33,7 +33,7 @@
33 </ContentWrap> 33 </ContentWrap>
34 <XModal v-model="dialogVisible" :title="dialogTitle"> 34 <XModal v-model="dialogVisible" :title="dialogTitle">
35 <!-- 对话框(详情) --> 35 <!-- 对话框(详情) -->
36 - <Descriptions :schema="allSchemas.detailSchema" :data="detailRef"> 36 + <Descriptions :schema="allSchemas.detailSchema" :data="detailData">
37 <template #retryInterval="{ row }"> 37 <template #retryInterval="{ row }">
38 <span>{{ row.retryInterval + '毫秒' }} </span> 38 <span>{{ row.retryInterval + '毫秒' }} </span>
39 </template> 39 </template>
@@ -69,13 +69,13 @@ const dialogVisible = ref(false) // 是否显示弹出层 @@ -69,13 +69,13 @@ const dialogVisible = ref(false) // 是否显示弹出层
69 const dialogTitle = ref('') // 弹出层标题 69 const dialogTitle = ref('') // 弹出层标题
70 70
71 // ========== 详情相关 ========== 71 // ========== 详情相关 ==========
72 -const detailRef = ref() // 详情 Ref 72 +const detailData = ref() // 详情 Ref
73 73
74 // 详情操作 74 // 详情操作
75 const handleDetail = async (row: JobLogApi.JobLogVO) => { 75 const handleDetail = async (row: JobLogApi.JobLogVO) => {
76 // 设置数据 76 // 设置数据
77 const res = JobLogApi.getJobLogApi(row.id) 77 const res = JobLogApi.getJobLogApi(row.id)
78 - detailRef.value = res 78 + detailData.value = res
79 dialogTitle.value = t('action.detail') 79 dialogTitle.value = t('action.detail')
80 dialogVisible.value = true 80 dialogVisible.value = true
81 } 81 }
yudao-ui-admin-vue3/src/views/infra/job/index.vue
@@ -101,7 +101,7 @@ @@ -101,7 +101,7 @@
101 <Descriptions 101 <Descriptions
102 v-if="actionType === 'detail'" 102 v-if="actionType === 'detail'"
103 :schema="allSchemas.detailSchema" 103 :schema="allSchemas.detailSchema"
104 - :data="detailRef" 104 + :data="detailData"
105 > 105 >
106 <template #retryInterval="{ row }"> 106 <template #retryInterval="{ row }">
107 <span>{{ row.retryInterval + '毫秒' }} </span> 107 <span>{{ row.retryInterval + '毫秒' }} </span>
@@ -161,7 +161,7 @@ const actionType = ref(&#39;&#39;) // 操作按钮的类型 @@ -161,7 +161,7 @@ const actionType = ref(&#39;&#39;) // 操作按钮的类型
161 const dialogVisible = ref(false) // 是否显示弹出层 161 const dialogVisible = ref(false) // 是否显示弹出层
162 const dialogTitle = ref('edit') // 弹出层标题 162 const dialogTitle = ref('edit') // 弹出层标题
163 const formRef = ref<FormExpose>() // 表单 Ref 163 const formRef = ref<FormExpose>() // 表单 Ref
164 -const detailRef = ref() // 详情 Ref 164 +const detailData = ref() // 详情 Ref
165 const nextTimes = ref([]) 165 const nextTimes = ref([])
166 const shortcuts = ref([ 166 const shortcuts = ref([
167 { 167 {
@@ -198,7 +198,7 @@ const handleUpdate = async (rowId: number) =&gt; { @@ -198,7 +198,7 @@ const handleUpdate = async (rowId: number) =&gt; {
198 const handleDetail = async (rowId: number) => { 198 const handleDetail = async (rowId: number) => {
199 // 设置数据 199 // 设置数据
200 const res = await JobApi.getJobApi(rowId) 200 const res = await JobApi.getJobApi(rowId)
201 - detailRef.value = res 201 + detailData.value = res
202 // 后续执行时长 202 // 后续执行时长
203 const jobNextTime = await JobApi.getJobNextTimesApi(rowId) 203 const jobNextTime = await JobApi.getJobNextTimesApi(rowId)
204 nextTimes.value = jobNextTime 204 nextTimes.value = jobNextTime
yudao-ui-admin-vue3/src/views/system/errorCode/index.vue
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 <Descriptions 50 <Descriptions
51 v-if="actionType === 'detail'" 51 v-if="actionType === 'detail'"
52 :schema="allSchemas.detailSchema" 52 :schema="allSchemas.detailSchema"
53 - :data="detailRef" 53 + :data="detailData"
54 /> 54 />
55 <template #footer> 55 <template #footer>
56 <!-- 按钮:保存 --> 56 <!-- 按钮:保存 -->
@@ -93,7 +93,7 @@ const dialogTitle = ref(&#39;edit&#39;) // 弹出层标题 @@ -93,7 +93,7 @@ const dialogTitle = ref(&#39;edit&#39;) // 弹出层标题
93 const actionType = ref('') // 操作按钮的类型 93 const actionType = ref('') // 操作按钮的类型
94 const actionLoading = ref(false) // 按钮 Loading 94 const actionLoading = ref(false) // 按钮 Loading
95 const formRef = ref<FormExpose>() // 表单 Ref 95 const formRef = ref<FormExpose>() // 表单 Ref
96 -const detailRef = ref() // 详情 Ref 96 +const detailData = ref() // 详情 Ref
97 97
98 // 设置标题 98 // 设置标题
99 const setDialogTile = (type: string) => { 99 const setDialogTile = (type: string) => {
@@ -120,7 +120,7 @@ const handleDetail = async (rowId: number) =&gt; { @@ -120,7 +120,7 @@ const handleDetail = async (rowId: number) =&gt; {
120 setDialogTile('detail') 120 setDialogTile('detail')
121 // 设置数据 121 // 设置数据
122 const res = await ErrorCodeApi.getErrorCodeApi(rowId) 122 const res = await ErrorCodeApi.getErrorCodeApi(rowId)
123 - detailRef.value = res 123 + detailData.value = res
124 } 124 }
125 125
126 // 删除操作 126 // 删除操作
yudao-ui-admin-vue3/src/views/system/loginlog/index.vue
@@ -20,7 +20,7 @@ @@ -20,7 +20,7 @@
20 <!-- 弹窗 --> 20 <!-- 弹窗 -->
21 <XModal id="postModel" v-model="dialogVisible" :title="dialogTitle"> 21 <XModal id="postModel" v-model="dialogVisible" :title="dialogTitle">
22 <!-- 表单:详情 --> 22 <!-- 表单:详情 -->
23 - <Descriptions :schema="allSchemas.detailSchema" :data="detailRef" /> 23 + <Descriptions :schema="allSchemas.detailSchema" :data="detailData" />
24 <template #footer> 24 <template #footer>
25 <!-- 按钮:关闭 --> 25 <!-- 按钮:关闭 -->
26 <XButton :title="t('dialog.close')" @click="dialogVisible = false" /> 26 <XButton :title="t('dialog.close')" @click="dialogVisible = false" />
@@ -47,13 +47,13 @@ const { gridOptions, exportList } = useVxeGrid&lt;LoginLogVO&gt;({ @@ -47,13 +47,13 @@ const { gridOptions, exportList } = useVxeGrid&lt;LoginLogVO&gt;({
47 }) 47 })
48 48
49 // 详情操作 49 // 详情操作
50 -const detailRef = ref() // 详情 Ref 50 +const detailData = ref() // 详情 Ref
51 const dialogVisible = ref(false) // 是否显示弹出层 51 const dialogVisible = ref(false) // 是否显示弹出层
52 const dialogTitle = ref(t('action.detail')) // 弹出层标题 52 const dialogTitle = ref(t('action.detail')) // 弹出层标题
53 // 详情 53 // 详情
54 const handleDetail = async (row: LoginLogVO) => { 54 const handleDetail = async (row: LoginLogVO) => {
55 // 设置数据 55 // 设置数据
56 - detailRef.value = row 56 + detailData.value = row
57 dialogVisible.value = true 57 dialogVisible.value = true
58 } 58 }
59 59
yudao-ui-admin-vue3/src/views/system/notice/index.vue
@@ -50,7 +50,7 @@ @@ -50,7 +50,7 @@
50 <Descriptions 50 <Descriptions
51 v-if="actionType === 'detail'" 51 v-if="actionType === 'detail'"
52 :schema="allSchemas.detailSchema" 52 :schema="allSchemas.detailSchema"
53 - :data="detailRef" 53 + :data="detailData"
54 > 54 >
55 <template #content="{ row }"> 55 <template #content="{ row }">
56 <Editor :model-value="row.content" read-only="true" /> 56 <Editor :model-value="row.content" read-only="true" />
@@ -98,7 +98,7 @@ const dialogTitle = ref(&#39;edit&#39;) // 弹出层标题 @@ -98,7 +98,7 @@ const dialogTitle = ref(&#39;edit&#39;) // 弹出层标题
98 const actionType = ref('') // 操作按钮的类型 98 const actionType = ref('') // 操作按钮的类型
99 const actionLoading = ref(false) // 按钮 Loading 99 const actionLoading = ref(false) // 按钮 Loading
100 const formRef = ref<FormExpose>() // 表单 Ref 100 const formRef = ref<FormExpose>() // 表单 Ref
101 -const detailRef = ref() // 详情 Ref 101 +const detailData = ref() // 详情 Ref
102 102
103 // 设置标题 103 // 设置标题
104 const setDialogTile = (type: string) => { 104 const setDialogTile = (type: string) => {
@@ -125,7 +125,7 @@ const handleDetail = async (rowId: number) =&gt; { @@ -125,7 +125,7 @@ const handleDetail = async (rowId: number) =&gt; {
125 setDialogTile('detail') 125 setDialogTile('detail')
126 // 设置数据 126 // 设置数据
127 const res = await NoticeApi.getNoticeApi(rowId) 127 const res = await NoticeApi.getNoticeApi(rowId)
128 - detailRef.value = res 128 + detailData.value = res
129 } 129 }
130 130
131 // 删除操作 131 // 删除操作
yudao-ui-admin-vue3/src/views/system/oauth2/token/index.vue
@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 </ContentWrap> 17 </ContentWrap>
18 <XModal v-model="dialogVisible" :title="dialogTitle"> 18 <XModal v-model="dialogVisible" :title="dialogTitle">
19 <!-- 对话框(详情) --> 19 <!-- 对话框(详情) -->
20 - <Descriptions :schema="allSchemas.detailSchema" :data="detailRef" /> 20 + <Descriptions :schema="allSchemas.detailSchema" :data="detailData" />
21 <!-- 操作按钮 --> 21 <!-- 操作按钮 -->
22 <template #footer> 22 <template #footer>
23 <XButton :title="t('dialog.close')" @click="dialogVisible = false" /> 23 <XButton :title="t('dialog.close')" @click="dialogVisible = false" />
@@ -45,13 +45,13 @@ const { gridOptions, getList } = useVxeGrid&lt;TokenApi.OAuth2TokenVO&gt;({ @@ -45,13 +45,13 @@ const { gridOptions, getList } = useVxeGrid&lt;TokenApi.OAuth2TokenVO&gt;({
45 }) 45 })
46 46
47 // ========== 详情相关 ========== 47 // ========== 详情相关 ==========
48 -const detailRef = ref() // 详情 Ref 48 +const detailData = ref() // 详情 Ref
49 const dialogVisible = ref(false) // 是否显示弹出层 49 const dialogVisible = ref(false) // 是否显示弹出层
50 const dialogTitle = ref(t('action.detail')) // 弹出层标题 50 const dialogTitle = ref(t('action.detail')) // 弹出层标题
51 // 详情 51 // 详情
52 const handleDetail = async (row: TokenApi.OAuth2TokenVO) => { 52 const handleDetail = async (row: TokenApi.OAuth2TokenVO) => {
53 // 设置数据 53 // 设置数据
54 - detailRef.value = row 54 + detailData.value = row
55 dialogVisible.value = true 55 dialogVisible.value = true
56 } 56 }
57 57
yudao-ui-admin-vue3/src/views/system/operatelog/index.vue
@@ -27,7 +27,7 @@ @@ -27,7 +27,7 @@
27 <!-- 弹窗 --> 27 <!-- 弹窗 -->
28 <XModal id="postModel" v-model="dialogVisible" :title="t('action.detail')"> 28 <XModal id="postModel" v-model="dialogVisible" :title="t('action.detail')">
29 <!-- 对话框(详情) --> 29 <!-- 对话框(详情) -->
30 - <Descriptions :schema="allSchemas.detailSchema" :data="detailRef"> 30 + <Descriptions :schema="allSchemas.detailSchema" :data="detailData">
31 <template #resultCode="{ row }"> 31 <template #resultCode="{ row }">
32 <span>{{ row.resultCode === 0 ? '成功' : '失败' }}</span> 32 <span>{{ row.resultCode === 0 ? '成功' : '失败' }}</span>
33 </template> 33 </template>
@@ -63,11 +63,11 @@ const { gridOptions, exportList } = useVxeGrid&lt;OperateLogApi.OperateLogVO&gt;({ @@ -63,11 +63,11 @@ const { gridOptions, exportList } = useVxeGrid&lt;OperateLogApi.OperateLogVO&gt;({
63 // 弹窗相关的变量 63 // 弹窗相关的变量
64 const dialogVisible = ref(false) // 是否显示弹出层 64 const dialogVisible = ref(false) // 是否显示弹出层
65 const actionLoading = ref(false) // 按钮 Loading 65 const actionLoading = ref(false) // 按钮 Loading
66 -const detailRef = ref() // 详情 Ref 66 +const detailData = ref() // 详情 Ref
67 // 详情 67 // 详情
68 const handleDetail = (row: OperateLogApi.OperateLogVO) => { 68 const handleDetail = (row: OperateLogApi.OperateLogVO) => {
69 // 设置数据 69 // 设置数据
70 - detailRef.value = row 70 + detailData.value = row
71 dialogVisible.value = true 71 dialogVisible.value = true
72 } 72 }
73 73
yudao-ui-admin-vue3/src/views/system/role/index.vue
@@ -64,7 +64,7 @@ @@ -64,7 +64,7 @@
64 <Descriptions 64 <Descriptions
65 v-if="actionType === 'detail'" 65 v-if="actionType === 'detail'"
66 :schema="allSchemas.detailSchema" 66 :schema="allSchemas.detailSchema"
67 - :data="detailRef" 67 + :data="detailData"
68 /> 68 />
69 <!-- 操作按钮 --> 69 <!-- 操作按钮 -->
70 <template #footer> 70 <template #footer>
@@ -189,7 +189,7 @@ const actionType = ref(&#39;&#39;) // 操作按钮的类型 @@ -189,7 +189,7 @@ const actionType = ref(&#39;&#39;) // 操作按钮的类型
189 const dialogVisible = ref(false) // 是否显示弹出层 189 const dialogVisible = ref(false) // 是否显示弹出层
190 const dialogTitle = ref('edit') // 弹出层标题 190 const dialogTitle = ref('edit') // 弹出层标题
191 const formRef = ref<FormExpose>() // 表单 Ref 191 const formRef = ref<FormExpose>() // 表单 Ref
192 -const detailRef = ref() // 详情 Ref 192 +const detailData = ref() // 详情 Ref
193 193
194 // 设置标题 194 // 设置标题
195 const setDialogTile = (type: string) => { 195 const setDialogTile = (type: string) => {
@@ -216,7 +216,7 @@ const handleDetail = async (rowId: number) =&gt; { @@ -216,7 +216,7 @@ const handleDetail = async (rowId: number) =&gt; {
216 setDialogTile('detail') 216 setDialogTile('detail')
217 // 设置数据 217 // 设置数据
218 const res = await RoleApi.getRoleApi(rowId) 218 const res = await RoleApi.getRoleApi(rowId)
219 - detailRef.value = res 219 + detailData.value = res
220 } 220 }
221 221
222 // 删除操作 222 // 删除操作
yudao-ui-admin-vue3/src/views/system/sms/smsLog/index.vue
@@ -22,7 +22,7 @@ @@ -22,7 +22,7 @@
22 <Descriptions 22 <Descriptions
23 v-if="actionType === 'detail'" 23 v-if="actionType === 'detail'"
24 :schema="allSchemas.detailSchema" 24 :schema="allSchemas.detailSchema"
25 - :data="detailRef" 25 + :data="detailData"
26 /> 26 />
27 <!-- 操作按钮 --> 27 <!-- 操作按钮 -->
28 <template #footer> 28 <template #footer>
@@ -53,10 +53,10 @@ const dialogVisible = ref(false) // 是否显示弹出层 @@ -53,10 +53,10 @@ const dialogVisible = ref(false) // 是否显示弹出层
53 const dialogTitle = ref('edit') // 弹出层标题 53 const dialogTitle = ref('edit') // 弹出层标题
54 const actionType = ref('') // 操作按钮的类型 54 const actionType = ref('') // 操作按钮的类型
55 // ========== 详情相关 ========== 55 // ========== 详情相关 ==========
56 -const detailRef = ref() // 详情 Ref 56 +const detailData = ref() // 详情 Ref
57 const handleDetail = (row: SmsLoglApi.SmsLogVO) => { 57 const handleDetail = (row: SmsLoglApi.SmsLogVO) => {
58 // 设置数据 58 // 设置数据
59 - detailRef.value = row 59 + detailData.value = row
60 dialogVisible.value = true 60 dialogVisible.value = true
61 } 61 }
62 62
yudao-ui-admin-vue3/src/views/system/tenant/index.vue
@@ -63,7 +63,7 @@ @@ -63,7 +63,7 @@
63 <Descriptions 63 <Descriptions
64 v-if="actionType === 'detail'" 64 v-if="actionType === 'detail'"
65 :schema="allSchemas.detailSchema" 65 :schema="allSchemas.detailSchema"
66 - :data="detailRef" 66 + :data="detailData"
67 > 67 >
68 <template #packageId="{ row }"> 68 <template #packageId="{ row }">
69 <el-tag v-if="row.packageId === 0" type="danger">系统租户</el-tag> 69 <el-tag v-if="row.packageId === 0" type="danger">系统租户</el-tag>
@@ -112,7 +112,7 @@ const actionType = ref(&#39;&#39;) // 操作按钮的类型 @@ -112,7 +112,7 @@ const actionType = ref(&#39;&#39;) // 操作按钮的类型
112 const dialogVisible = ref(false) // 是否显示弹出层 112 const dialogVisible = ref(false) // 是否显示弹出层
113 const dialogTitle = ref('edit') // 弹出层标题 113 const dialogTitle = ref('edit') // 弹出层标题
114 const formRef = ref<FormExpose>() // 表单 Ref 114 const formRef = ref<FormExpose>() // 表单 Ref
115 -const detailRef = ref() // 详情 Ref 115 +const detailData = ref() // 详情 Ref
116 const getPackageName = (packageId: number) => { 116 const getPackageName = (packageId: number) => {
117 for (let item of tenantPackageOption) { 117 for (let item of tenantPackageOption) {
118 if (item.value === packageId) { 118 if (item.value === packageId) {
@@ -147,7 +147,7 @@ const handleUpdate = async (rowId: number) =&gt; { @@ -147,7 +147,7 @@ const handleUpdate = async (rowId: number) =&gt; {
147 const handleDetail = async (rowId: number) => { 147 const handleDetail = async (rowId: number) => {
148 // 设置数据 148 // 设置数据
149 const res = await TenantApi.getTenantApi(rowId) 149 const res = await TenantApi.getTenantApi(rowId)
150 - detailRef.value = res 150 + detailData.value = res
151 setDialogTile('detail') 151 setDialogTile('detail')
152 } 152 }
153 153