mirror of
https://gitee.com/lab1024/smart-admin.git
synced 2025-09-18 11:26:39 +08:00
代码格式化与部分细节优化
This commit is contained in:
parent
9100dc1225
commit
a90b8d114a
@ -24,7 +24,7 @@
|
|||||||
<a-descriptions-item label="创建时间">{{ detail.createTime }}</a-descriptions-item>
|
<a-descriptions-item label="创建时间">{{ detail.createTime }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="创建人">{{ detail.createUserName }}</a-descriptions-item>
|
<a-descriptions-item label="创建人">{{ detail.createUserName }}</a-descriptions-item>
|
||||||
<a-descriptions-item label="营业执照">
|
<a-descriptions-item label="营业执照">
|
||||||
<FilePreview :default-file-list="detail.businessLicense" />
|
<FilePreview :file-list="detail.businessLicense" />
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
</a-descriptions>
|
</a-descriptions>
|
||||||
</div>
|
</div>
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
-->
|
-->
|
||||||
<template>
|
<template>
|
||||||
<a-card style="margin-bottom: 15px" size="small">
|
<a-card style="margin-bottom: 15px" size="small">
|
||||||
<a-descriptions :title="noticeDetail.title" :columns="4" size="small">
|
<a-descriptions :title="noticeDetail.title" :column="4" size="small">
|
||||||
<template #extra>
|
<template #extra>
|
||||||
<a-button v-if="!noticeDetail.publishFlag" type="primary" size="small" @click="onEdit">编辑</a-button>
|
<a-button v-if="!noticeDetail.publishFlag" type="primary" size="small" @click="onEdit">编辑</a-button>
|
||||||
</template>
|
</template>
|
||||||
@ -28,7 +28,7 @@
|
|||||||
<a class="file-item" v-for="item in noticeDetail.attachment" :key="item.fileId" @click="onPrevFile(item)">{{ item.fileName }}</a>
|
<a class="file-item" v-for="item in noticeDetail.attachment" :key="item.fileId" @click="onPrevFile(item)">{{ item.fileName }}</a>
|
||||||
</div>
|
</div>
|
||||||
</a-descriptions-item>
|
</a-descriptions-item>
|
||||||
<a-descriptions-item label="可见范围" :span="2">
|
<a-descriptions-item label="可见范围">
|
||||||
<template v-if="noticeDetail.allVisibleFlag">全部可见</template>
|
<template v-if="noticeDetail.allVisibleFlag">全部可见</template>
|
||||||
<div class="visible-list">
|
<div class="visible-list">
|
||||||
<div class="visible-item" v-for="item in noticeDetail.visibleRangeList" :key="item.dataId">
|
<div class="visible-item" v-for="item in noticeDetail.visibleRangeList" :key="item.dataId">
|
||||||
|
@ -27,15 +27,16 @@
|
|||||||
<!--endprint-->
|
<!--endprint-->
|
||||||
</div>
|
</div>
|
||||||
<a-divider />
|
<a-divider />
|
||||||
<div>附件:<file-preview :fileList="noticeDetail.attachment" /></div>
|
<div>
|
||||||
|
附件:
|
||||||
|
<file-preview v-if="!$lodash.isEmpty(noticeDetail.attachment)" :fileList="noticeDetail.attachment" />
|
||||||
|
<span v-else>无</span>
|
||||||
|
</div>
|
||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
<a-card title="记录" size="small" class="smart-margin-top10">
|
<a-card title="记录" size="small" class="smart-margin-top10">
|
||||||
<NoticeViewRecordList ref="noticeViewRecordList" :noticeId="route.query.noticeId" />
|
<NoticeViewRecordList ref="noticeViewRecordList" :noticeId="route.query.noticeId" />
|
||||||
</a-card>
|
</a-card>
|
||||||
|
|
||||||
<!-- 预览附件 -->
|
|
||||||
<FilePreviewModal ref="filePreviewRef" />
|
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
@ -44,14 +45,11 @@ import { useRoute } from 'vue-router';
|
|||||||
import NoticeViewRecordList from './components/notice-view-record-list.vue';
|
import NoticeViewRecordList from './components/notice-view-record-list.vue';
|
||||||
import { noticeApi } from '/@/api/business/oa/notice-api';
|
import { noticeApi } from '/@/api/business/oa/notice-api';
|
||||||
import { SmartLoading } from '/@/components/framework/smart-loading';
|
import { SmartLoading } from '/@/components/framework/smart-loading';
|
||||||
import FilePreviewModal from '/@/components/support/file-preview-modal/index.vue';
|
|
||||||
import FilePreview from '/@/components/support/file-preview/index.vue';
|
import FilePreview from '/@/components/support/file-preview/index.vue';
|
||||||
import { smartSentry } from '/@/lib/smart-sentry';
|
import { smartSentry } from '/@/lib/smart-sentry';
|
||||||
|
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
|
|
||||||
const activeKey = ref(1);
|
|
||||||
|
|
||||||
const noticeDetail = ref({});
|
const noticeDetail = ref({});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@ -83,12 +81,6 @@ function onEdit() {
|
|||||||
noticeFormDrawerRef.value.showModal(noticeDetail.value.noticeId);
|
noticeFormDrawerRef.value.showModal(noticeDetail.value.noticeId);
|
||||||
}
|
}
|
||||||
|
|
||||||
// 预览附件
|
|
||||||
const filePreviewRef = ref();
|
|
||||||
function onPrevFile(fileItem) {
|
|
||||||
filePreviewRef.value.showPreview(fileItem);
|
|
||||||
}
|
|
||||||
|
|
||||||
// 打印
|
// 打印
|
||||||
function print() {
|
function print() {
|
||||||
let bdhtml = window.document.body.innerHTML;
|
let bdhtml = window.document.body.innerHTML;
|
||||||
|
Loading…
Reference in New Issue
Block a user