This commit is contained in:
宋伟佳
2021-06-15 18:00:38 +08:00
parent 0201ecde23
commit b09acf446a
5 changed files with 143 additions and 146 deletions
@@ -3,8 +3,8 @@
<div class="solicitopinions">
<ul>
<li v-for="item in domesticDynamics" :key="item.id" class="time-title">
<a class="title" :title="item.title">{{ item.title }}</a>
<span class="time">{{ getDate(item.pubTime) }}</span>
<a class="title" :title="item.title" @click="standForComments(item)">{{ item.cname }}</a>
<span class="time">{{item.endTime}}</span>
</li>
</ul>
</div>
@@ -34,16 +34,23 @@ export default {
},
//获取数据
getAdvice() {
let obj = {}
obj.msgType = 'RESOURCE'
obj.rowLimit = 8
this.$http.get('lawss/msgDynamicInfo/page', obj, {
_this: this
}, res => {
this.domesticDynamics = res.data.list
}, e => {
})
}
this.$http.get('slrs/sar-public-idea/SelectAllPage', {}, {
_this: this
}, res => {
console.log('41',res)
this.domesticDynamics = res.data.records
}, e => {
} )
},
standForComments (item) {
this.$router.push({
name:'standardForComments',
params: {
id: item.id
}
},)
},
},
}
</script>