feat: 新增 ele 站内信管理模块
This commit is contained in:
49
apps/web-ele/src/views/system/notify/my/modules/detail.vue
Normal file
49
apps/web-ele/src/views/system/notify/my/modules/detail.vue
Normal file
@@ -0,0 +1,49 @@
|
||||
<script lang="ts" setup>
|
||||
import type { SystemNotifyMessageApi } from '#/api/system/notify/message';
|
||||
|
||||
import { useVbenModal } from '@vben/common-ui';
|
||||
|
||||
// TODO puhui999: 下次提交
|
||||
// import { useDescription } from '#/components/description';
|
||||
|
||||
// import { useDetailSchema } from '../data';
|
||||
//
|
||||
// const [Description, descApi] = useDescription({
|
||||
// componentProps: {
|
||||
// bordered: true,
|
||||
// column: 1,
|
||||
// size: 'middle',
|
||||
// class: 'mx-4',
|
||||
// },
|
||||
// schema: useDetailSchema(),
|
||||
// });
|
||||
|
||||
const [Modal, modalApi] = useVbenModal({
|
||||
async onOpenChange(isOpen: boolean) {
|
||||
if (!isOpen) {
|
||||
return;
|
||||
}
|
||||
// 加载数据
|
||||
const data = modalApi.getData<SystemNotifyMessageApi.NotifyMessage>();
|
||||
if (!data || !data.id) {
|
||||
return;
|
||||
}
|
||||
modalApi.lock();
|
||||
try {
|
||||
// descApi.setState({ data });
|
||||
} finally {
|
||||
modalApi.unlock();
|
||||
}
|
||||
},
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<Modal
|
||||
title="消息详情"
|
||||
:show-cancel-button="false"
|
||||
:show-confirm-button="false"
|
||||
>
|
||||
<!-- <Description />-->
|
||||
</Modal>
|
||||
</template>
|
||||
Reference in New Issue
Block a user