|
|
@ -172,13 +172,8 @@ export default { |
|
|
|
const id = e.column[e.column.length - 1] |
|
|
|
const id = e.column[e.column.length - 1] |
|
|
|
e.id = id |
|
|
|
e.id = id |
|
|
|
if (e.columnTitle === 2) e.columnName = e.columnTitleCustom |
|
|
|
if (e.columnTitle === 2) e.columnName = e.columnTitleCustom |
|
|
|
this.$post(this.api.newlyPublishedArticles, { |
|
|
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${id}`).then(({ data }) => { |
|
|
|
siteId: e.site, |
|
|
|
this.$set(e, 'articles', Util.removeTag(data.slice(0, e.articleNum || 6))) |
|
|
|
columnIds: [id], |
|
|
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
|
|
pageSize: e.articleNum || 6 |
|
|
|
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
|
|
|
this.$set(e, 'articles', Util.removeTag(data.records)) |
|
|
|
|
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => {}) |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
this.$set(e, 'articles', []) |
|
|
|
this.$set(e, 'articles', []) |
|
|
@ -188,24 +183,14 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
if (json[3].form.column.length) { |
|
|
|
if (json[3].form.column.length) { |
|
|
|
const { column, site, articleNum } = json[3].form |
|
|
|
const { column, site, articleNum } = json[3].form |
|
|
|
this.$post(this.api.newlyPublishedArticles, { |
|
|
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { |
|
|
|
siteId: site, |
|
|
|
this.articles = Util.removeTag(data.slice(0, articleNum || 6)) |
|
|
|
columnIds: [column[column.length - 1]], |
|
|
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
|
|
pageSize: articleNum || 6 |
|
|
|
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
|
|
|
this.articles = Util.removeTag(data.records) |
|
|
|
|
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => {}) |
|
|
|
} |
|
|
|
} |
|
|
|
if (json[5].form.column.length) { |
|
|
|
if (json[5].form.column.length) { |
|
|
|
const { column, site, articleNum } = json[5].form |
|
|
|
const { column, site, articleNum } = json[5].form |
|
|
|
this.$post(this.api.newlyPublishedArticles, { |
|
|
|
this.$post(`${this.api.queryArticlesByColumnType}?columnId=${column[column.length - 1]}`).then(({ data }) => { |
|
|
|
siteId: site, |
|
|
|
this.articles1 = Util.removeTag(data.slice(0, articleNum || 5)) |
|
|
|
columnIds: [column[column.length - 1]], |
|
|
|
|
|
|
|
pageNum: 1, |
|
|
|
|
|
|
|
pageSize: articleNum || 5 |
|
|
|
|
|
|
|
}).then(({ data }) => { |
|
|
|
|
|
|
|
this.articles1 = Util.removeTag(data.records) |
|
|
|
|
|
|
|
}).catch(err => {}) |
|
|
|
}).catch(err => {}) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|