|
@@ -40,19 +40,16 @@
|
|
|
{{ noticeTypeFilter(row[col.colKey]) }}
|
|
|
</template>
|
|
|
<template #name="{ col, row }">
|
|
|
- <t-link
|
|
|
- hover="color"
|
|
|
- @click="open(row)"
|
|
|
- >
|
|
|
- <span>{{ row.title }}</span>
|
|
|
- <span>
|
|
|
- 【 {{ row.createName + ':'
|
|
|
- }}{{
|
|
|
- row.status === 'PUBLISH'
|
|
|
- ? timestampFilter(row.publishTime)
|
|
|
- : '暂未发布'
|
|
|
- }}】
|
|
|
- </span>
|
|
|
+ <t-link hover="color" @click="open(row)">
|
|
|
+ <span>{{ row.title }}</span>
|
|
|
+ <span>
|
|
|
+ 【 {{ row.createName + ':'
|
|
|
+ }}{{
|
|
|
+ row.status === 'PUBLISH'
|
|
|
+ ? timestampFilter(row.publishTime)
|
|
|
+ : '暂未发布'
|
|
|
+ }}】
|
|
|
+ </span>
|
|
|
</t-link>
|
|
|
</template>
|
|
|
<template #status="{ col, row }">
|
|
@@ -118,13 +115,15 @@
|
|
|
:curRow="curRow"
|
|
|
></notice-message-dialog>
|
|
|
<t-drawer
|
|
|
- v-model:visible="visible"
|
|
|
- header="通知公告"
|
|
|
- size="80%"
|
|
|
- :close-btn="true"
|
|
|
+ v-model:visible="visible"
|
|
|
+ header="通知公告"
|
|
|
+ size="80%"
|
|
|
+ :close-btn="true"
|
|
|
>
|
|
|
<h2 class="text-center notice-title">{{ curRow?.title }}</h2>
|
|
|
- <div class="text-center notice-subtitle">创建时间:{{ timestampFilter(curRow?.createTime) }}</div>
|
|
|
+ <div class="text-center notice-subtitle"
|
|
|
+ >创建时间:{{ timestampFilter(curRow?.createTime) }}</div
|
|
|
+ >
|
|
|
<div class="notice-content" v-html="curRow?.content"></div>
|
|
|
|
|
|
<template #footer>
|
|
@@ -147,7 +146,7 @@ import {
|
|
|
noticePublishApi,
|
|
|
noticeCancelPublishApi,
|
|
|
} from '@/api/system';
|
|
|
-import {dateFormat, dictToOptionList} from '@/utils/tool';
|
|
|
+import { dateFormat, dictToOptionList } from '@/utils/tool';
|
|
|
import { NOTICE_TYPE, PUBLISH_STATUS } from '@/config/constants';
|
|
|
import { noticeTypeFilter, timestampFilter } from '@/utils/filter';
|
|
|
import usePermission from '@/hooks/usePermission';
|
|
@@ -163,8 +162,8 @@ const fields = ref([
|
|
|
prop: 'status',
|
|
|
label: '发布状态',
|
|
|
type: 'select',
|
|
|
- labelWidth: 100,
|
|
|
- colSpan: 5,
|
|
|
+ labelWidth: 70,
|
|
|
+ colSpan: 6,
|
|
|
options: dictToOptionList(PUBLISH_STATUS),
|
|
|
},
|
|
|
{
|
|
@@ -172,7 +171,7 @@ const fields = ref([
|
|
|
label: '类型',
|
|
|
type: 'select',
|
|
|
labelWidth: 60,
|
|
|
- colSpan: 5,
|
|
|
+ colSpan: 6,
|
|
|
options: dictToOptionList(NOTICE_TYPE),
|
|
|
},
|
|
|
{
|
|
@@ -180,7 +179,7 @@ const fields = ref([
|
|
|
label: '发布时间',
|
|
|
type: 'daterange',
|
|
|
labelWidth: 100,
|
|
|
- colSpan: 7,
|
|
|
+ colSpan: 12,
|
|
|
attrs: {
|
|
|
clearable: true,
|
|
|
valueType: 'time-stamp',
|
|
@@ -189,8 +188,8 @@ const fields = ref([
|
|
|
{
|
|
|
prop: 'query',
|
|
|
label: '消息名称',
|
|
|
- labelWidth: 100,
|
|
|
- colSpan: 5,
|
|
|
+ labelWidth: 70,
|
|
|
+ colSpan: 6,
|
|
|
attrs: {
|
|
|
placeholder: '消息名称模糊查询',
|
|
|
clearable: true,
|
|
@@ -334,10 +333,10 @@ const handlePublish = (row) => {
|
|
|
font-size: 13px;
|
|
|
margin-top: 6px;
|
|
|
}
|
|
|
-//.notice-content {
|
|
|
-// font-size: 14px;
|
|
|
-// margin-top: 10px;
|
|
|
-// text-indent: 2em;
|
|
|
-//}
|
|
|
+ //.notice-content {
|
|
|
+ // font-size: 14px;
|
|
|
+ // margin-top: 10px;
|
|
|
+ // text-indent: 2em;
|
|
|
+ //}
|
|
|
}
|
|
|
-</style>
|
|
|
+</style>
|