|
@@ -3,7 +3,7 @@
|
|
* @Author: 空白格
|
|
* @Author: 空白格
|
|
* @Date: 2022-08-22 10:20:21
|
|
* @Date: 2022-08-22 10:20:21
|
|
* @LastEditors: gcz
|
|
* @LastEditors: gcz
|
|
- * @LastEditTime: 2022-08-22 16:33:25
|
|
|
|
|
|
+ * @LastEditTime: 2022-08-22 17:38:18
|
|
* @FilePath: \veterans_client_web\src\views\NewsCenter\NewsCenterIndex.vue
|
|
* @FilePath: \veterans_client_web\src\views\NewsCenter\NewsCenterIndex.vue
|
|
* @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
|
|
* @Copyright: Copyright (c) 2016~2022 by 空白格, All Rights Reserved.
|
|
-->
|
|
-->
|
|
@@ -35,7 +35,7 @@
|
|
v-for="(item, index) in dataList"
|
|
v-for="(item, index) in dataList"
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
- <div class="u-flex u-row-between" v-if="tabsActive==0">
|
|
|
|
|
|
+ <div @click="goNewsDetails(item.artId)" class="u-flex u-row-between" v-if="tabsActive==0">
|
|
<div class="artTitle u-line-1" >{{item.artTitle}}</div>
|
|
<div class="artTitle u-line-1" >{{item.artTitle}}</div>
|
|
<div class="time">{{parseTime(item.updateTime, "{y}-{m}-{d}")}}</div>
|
|
<div class="time">{{parseTime(item.updateTime, "{y}-{m}-{d}")}}</div>
|
|
</div>
|
|
</div>
|
|
@@ -59,7 +59,7 @@
|
|
v-for="(item, index) in dataList"
|
|
v-for="(item, index) in dataList"
|
|
:key="index"
|
|
:key="index"
|
|
>
|
|
>
|
|
- <div class="u-flex u-row-between" v-if="tabsActive==1">
|
|
|
|
|
|
+ <div @click="goNoticeDetails(item.id)" class="u-flex u-row-between" v-if="tabsActive==1">
|
|
<div class="artTitle u-line-1" >{{item.name}}</div>
|
|
<div class="artTitle u-line-1" >{{item.name}}</div>
|
|
<div class="time">{{parseTime(item.releasTime, "{y}-{m}-{d}")}}</div>
|
|
<div class="time">{{parseTime(item.releasTime, "{y}-{m}-{d}")}}</div>
|
|
</div>
|
|
</div>
|
|
@@ -174,6 +174,12 @@ export default {
|
|
},
|
|
},
|
|
noticeClick(tab, event) {
|
|
noticeClick(tab, event) {
|
|
this.getNotice()
|
|
this.getNotice()
|
|
|
|
+ },
|
|
|
|
+ goNewsDetails(id){
|
|
|
|
+ this.$router.push({ path: 'newsdetails', query:{ id: id }});
|
|
|
|
+ },
|
|
|
|
+ goNoticeDetails(id){
|
|
|
|
+ this.$router.push({ path: 'noticedetails', query:{ id: id }});
|
|
}
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|