|
@@ -56,6 +56,7 @@
|
|
|
<script>
|
|
|
import { parkNotice, propertyNotice, listNoticeToTop } from '@/service/api_service'
|
|
|
import Base from '@/views/base/base.vue'
|
|
|
+import dayjs from 'dayjs'
|
|
|
/**
|
|
|
* 分页是用的vant框架
|
|
|
* */
|
|
@@ -99,10 +100,12 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ created() {
|
|
|
this.initDict(this.dc_key).then(() => {
|
|
|
- console.log('this.dc_map.notice_type', this.dc_map.notice_type)
|
|
|
+ // console.log('this.dc_map.notice_type', this.dc_map.notice_type)
|
|
|
})
|
|
|
+ },
|
|
|
+ mounted() {
|
|
|
this.getListInfo()
|
|
|
if (this.$route.query.active) {
|
|
|
this.active = Number(this.$route.query.active)
|
|
@@ -151,19 +154,21 @@ export default {
|
|
|
this.noticeList = []
|
|
|
const dayjs = require('dayjs')
|
|
|
if (res.total != 0) {
|
|
|
- res.rows.forEach((item, index) => {
|
|
|
- this.noticeList.push(
|
|
|
- {
|
|
|
- img: 'zs3.png',
|
|
|
- name: item.noticeTitle,
|
|
|
- eventIndex: index,
|
|
|
- detail: item.noticeContent,
|
|
|
- createTime: dayjs(item.createTime).format('YYYY-MM-DD'),
|
|
|
- noticeFileId: item.noticeFileId,
|
|
|
- noticeType: this.dc_map.notice_type[item.type]
|
|
|
- }
|
|
|
- )
|
|
|
- })
|
|
|
+ setTimeout(() => {
|
|
|
+ res.rows.forEach((item, index) => {
|
|
|
+ this.noticeList.push(
|
|
|
+ {
|
|
|
+ img: 'zs3.png',
|
|
|
+ name: item.noticeTitle,
|
|
|
+ eventIndex: index,
|
|
|
+ detail: item.noticeContent,
|
|
|
+ createTime: dayjs(item.createTime).format('YYYY-MM-DD'),
|
|
|
+ noticeFileId: item.noticeFileId,
|
|
|
+ noticeType: this.dc_map.notice_type ? this.dc_map.notice_type[item.type] : ''
|
|
|
+ }
|
|
|
+ )
|
|
|
+ })
|
|
|
+ }, 300)
|
|
|
// this.noticeList = res.rows
|
|
|
}
|
|
|
})
|