|
|
|
@ -260,7 +260,7 @@ export default { |
|
|
|
|
}, |
|
|
|
|
// 获取标签 |
|
|
|
|
getLabel() { |
|
|
|
|
this.$post(`${this.api.queryLabel}?siteId=${this.$route.query.siteId || this.site}`) |
|
|
|
|
this.$post(`${this.api.queryLabel}?siteId=${this.site}`) |
|
|
|
|
.then(({ data }) => { |
|
|
|
|
this.labels = data; |
|
|
|
|
// 修改placeholder |
|
|
|
@ -334,7 +334,7 @@ export default { |
|
|
|
|
// 右边资讯 |
|
|
|
|
getColumn() { |
|
|
|
|
this.$post(this.api.listWithTreeMenuVisible, { |
|
|
|
|
siteId: this.$route.query.siteId || this.$store.state.content.site, |
|
|
|
|
siteId: this.site, |
|
|
|
|
columnName: '', |
|
|
|
|
templateId: '', |
|
|
|
|
typeId: '', |
|
|
|
@ -345,7 +345,7 @@ export default { |
|
|
|
|
}) |
|
|
|
|
.catch((err) => { }); |
|
|
|
|
|
|
|
|
|
this.$post(`${this.api.hotContent}?siteId=${this.$route.query.siteId || this.$store.state.content.site}`) |
|
|
|
|
this.$post(`${this.api.hotContent}?siteId=${this.site}`) |
|
|
|
|
.then(({ data }) => { |
|
|
|
|
this.hots = Util.removeTag(data); |
|
|
|
|
}) |
|
|
|
@ -356,7 +356,7 @@ export default { |
|
|
|
|
this.$post(this.api.newlyPublishedArticles, { |
|
|
|
|
pageNum: 1, |
|
|
|
|
pageSize: 5, |
|
|
|
|
siteId: this.$route.query.siteId || this.$store.state.content.site |
|
|
|
|
siteId: this.site |
|
|
|
|
}) |
|
|
|
|
.then(({ data }) => { |
|
|
|
|
this.news = Util.removeTag(data.records); |
|
|
|
@ -375,7 +375,7 @@ export default { |
|
|
|
|
if (left && to.level === 1 && (typeId === 2 || typeId === 3)) return false; |
|
|
|
|
// 出版物则跳转到出版物列表 |
|
|
|
|
if (to.templateId === 8) { |
|
|
|
|
this.$router.replace(`/publish?id=${this.id}&siteId=${this.$route.query.siteId || this.site}`); |
|
|
|
|
this.$router.replace(`/publish?id=${this.id}&siteId=${this.site}`); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
// 跳转链接 |
|
|
|
@ -427,7 +427,7 @@ export default { |
|
|
|
|
if (this.lableId.includes(e.id)) labelName.push(e.labelName); |
|
|
|
|
}); |
|
|
|
|
this.$post(this.api.newlyPublishedArticles, { |
|
|
|
|
siteId: this.$route.query.siteId || this.site, |
|
|
|
|
siteId: this.site, |
|
|
|
|
columnIds, |
|
|
|
|
pageNum: this.page, |
|
|
|
|
pageSize: this.info.pageSize, |
|
|
|
|