This commit is contained in:
cxc
2022-04-11 21:20:23 +08:00
parent 9b4271cd3e
commit d3c6372089
6 changed files with 120 additions and 49 deletions

View File

@ -67,7 +67,7 @@
id: item.id
}
}"
>{{ item.title }}</router-link>
>{{ removeBr(item.title) }}</router-link>
<span class="info">
<span v-if="type != 'information'">{{ item.listDate }}</span>
<span v-else>{{ item.createTime }}</span>
@ -176,6 +176,9 @@ export default {
...mapGetters(['token'])
},
methods: {
removeBr(str) {
return str && str.replaceAll('<br>', '')
},
// 获取企业画像数据列表
getPortraitList() {
if (this.type == 'policy') {
@ -240,8 +243,11 @@ export default {
} else if (key == 'information') {
this.getPortraitList();
} else if (key == 'policyNotice') {
// this.queryParams.labelId = this.policyNoticeOptions[0].value;
this.queryParams.labelId = this.$route.query.labelId
if (this.$route.query.labelId) {
this.queryParams.labelId = this.$route.query.labelId
} else {
this.queryParams.labelId = this.policyNoticeOptions[0].value;
}
this.getPortraitList();
} else {
this.msgError('非法进入');