2022-03-10 09:47:29 +08:00
|
|
|
<template>
|
|
|
|
<BasicModal v-bind="$attrs" @register="registerModal" title="查看详情" :minHeight="600" :showCancelBtn="false" :showOkBtn="false" :height="88">
|
2022-06-10 10:44:44 +08:00
|
|
|
<a-card class="daily-article">
|
|
|
|
<a-card-meta :title="content.titile" :description="'发布人:' + content.sender + ' 发布时间: ' + content.sendTime"> </a-card-meta>
|
2022-03-10 09:47:29 +08:00
|
|
|
<a-divider />
|
|
|
|
<span v-html="content.msgContent" class="article-content"></span>
|
|
|
|
</a-card>
|
|
|
|
</BasicModal>
|
|
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
2022-06-10 10:44:44 +08:00
|
|
|
import { BasicModal, useModalInner } from '/@/components/Modal';
|
|
|
|
import { propTypes } from '/@/utils/propTypes';
|
2022-03-10 09:47:29 +08:00
|
|
|
import { ref, unref } from 'vue';
|
|
|
|
const isUpdate = ref(true);
|
|
|
|
const content = ref({});
|
|
|
|
//表单赋值
|
2022-06-10 10:44:44 +08:00
|
|
|
const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data) => {
|
2022-03-10 09:47:29 +08:00
|
|
|
isUpdate.value = !!data?.isUpdate;
|
|
|
|
if (unref(isUpdate)) {
|
2022-06-10 10:44:44 +08:00
|
|
|
content.value = data.record;
|
2022-03-10 09:47:29 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
|
.detail-iframe {
|
|
|
|
border: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
|
|
|
min-height: 600px;
|
|
|
|
}
|
|
|
|
</style>
|