diff --git a/src/pages/column/index.vue b/src/pages/column/index.vue index c9298d0..397ddb2 100644 --- a/src/pages/column/index.vue +++ b/src/pages/column/index.vue @@ -831,16 +831,18 @@ export default { getArticle (columnIds) { const labelName = []; // 获取标签名称 - this.labels.map((e) => { - if (this.lableId.includes(e.id)) labelName.push(e.labelName); - }); + // this.labels.map((e) => { + // if (this.lableId.includes(e.id)) labelName.push(encodeURI(e.labelName)); + // }); + const form = JSON.parse(JSON.stringify(this.form)) + form.title = encodeURI(form.title) this.$post(this.api.newlyPublishedArticles, Util.rsa({ siteId: this.site, columnIds, pageNum: this.page, pageSize: this.pageSize, - labelName, - ...this.form + labelName: this.lableId, + ...form })) .then(({ data }) => { const articles = Util.removeTag(data.records); diff --git a/src/pages/publication/monograph.vue b/src/pages/publication/monograph.vue index 88005bb..154d495 100644 --- a/src/pages/publication/monograph.vue +++ b/src/pages/publication/monograph.vue @@ -90,12 +90,14 @@ export default { methods: { // 查询文章列表 getArticle () { + const form = JSON.parse(JSON.stringify(this.form)) + form.monographQueryKeyWord = encodeURI(form.monographQueryKeyWord) this.id && this.$post(this.api.newlyPublishedArticles, Util.rsa({ siteId: this.$route.query.siteId || this.$store.state.content.site, columnIds: this.id, pageNum: this.page, pageSize: this.pageSize, - ...this.form + ...form })) .then(({ data }) => { this.list = Util.removeTag(data.records); diff --git a/src/pages/publication/patent.vue b/src/pages/publication/patent.vue index 0114008..9c59dda 100644 --- a/src/pages/publication/patent.vue +++ b/src/pages/publication/patent.vue @@ -114,12 +114,14 @@ export default { methods: { // 查询文章列表 getArticle () { + const form = JSON.parse(JSON.stringify(this.form)) + form.patentQueryKeyWord = encodeURI(form.patentQueryKeyWord) this.id && this.$post(this.api.newlyPublishedArticles, Util.rsa({ siteId: this.$route.query.siteId || this.$store.state.content.site, columnIds: this.id, pageNum: this.page, pageSize: this.pageSize, - ...this.form + ...form })) .then(({ data }) => { this.list = Util.removeTag(data.records); diff --git a/src/pages/publication/thesis.vue b/src/pages/publication/thesis.vue index 9845866..8adf8d9 100644 --- a/src/pages/publication/thesis.vue +++ b/src/pages/publication/thesis.vue @@ -68,12 +68,14 @@ export default { methods: { // 查询文章列表 getArticle () { + const form = JSON.parse(JSON.stringify(this.form)) + form.paperQueryKeyWord = encodeURI(form.paperQueryKeyWord) this.id && this.$post(this.api.newlyPublishedArticles, Util.rsa({ siteId: this.$route.query.siteId || this.$store.state.content.site, columnIds: this.id, pageNum: this.page, pageSize: this.pageSize, - ...this.form + ...form })) .then(({ data }) => { this.articles = Util.removeTag(data.records);