|
|
@@ -5,7 +5,7 @@
|
|
|
:data-source="noticeList">
|
|
|
<template #renderItem="{ item }">
|
|
|
<a-list-item @click="choose(item)">
|
|
|
- <a-list-item-meta :description="item.createtime">
|
|
|
+ <a-list-item-meta :description="formatTime(item.createtime)">
|
|
|
<template #title>
|
|
|
<a :style="{ color: item.readed ? '#88A0AE' : '#E5E5E5' }"
|
|
|
href="javascript:;">{{ item.title }}</a>
|
|
|
@@ -20,7 +20,7 @@
|
|
|
</aside>
|
|
|
<main>
|
|
|
<h4>{{ chooseItemNotice.title }}</h4>
|
|
|
- <p>{{ chooseItemNotice.createtime }}</p>
|
|
|
+ <p>{{ formatTime(chooseItemNotice.createtime) }}</p>
|
|
|
<div>
|
|
|
{{ chooseItemNotice.content }}
|
|
|
</div>
|
|
|
@@ -33,6 +33,7 @@ import { defineComponent, PropType, reactive, computed } from 'vue';
|
|
|
import { QueryNoticeRsp } from '@/services/go/commonService/interface';
|
|
|
import { mergeObj } from '@/utils/objHandle';
|
|
|
import { handleNotice } from '../setup';
|
|
|
+import { formatTime } from '@/common/methods/format';
|
|
|
|
|
|
function chooseNotice(fn: Function) {
|
|
|
interface ItemNotice {
|
|
|
@@ -69,6 +70,7 @@ export default defineComponent({
|
|
|
});
|
|
|
return {
|
|
|
choose,
|
|
|
+ formatTime,
|
|
|
chooseItemNotice,
|
|
|
};
|
|
|
},
|