From d0de60a0a53e1f044948147b29fdf7f65b00d498 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Fri, 23 Feb 2024 16:05:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=A8=E9=83=A8=E6=8E=A5=E5=8F=A3=E5=8A=A0?= =?UTF-8?q?=E5=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package-lock.json | 5 + package.json | 1 + src/components/breadcrumb/index.vue | 2 +- src/components/rightColumns/index.vue | 14 +- src/layouts/footer/index.vue | 13 +- src/layouts/navbar/index.vue | 5 +- src/libs/util.js | 7 + src/mixins/estate/index.js | 7 +- src/mixins/overview/index.js | 7 +- src/mixins/page/index.js | 8 +- src/pages/about/index.vue | 2 +- src/pages/aboutNew/index.vue | 2 +- src/pages/application/index.vue | 4 +- src/pages/article/activity.vue | 8 +- src/pages/article/index.vue | 10 +- src/pages/careers/index.vue | 2 +- src/pages/column/index.vue | 42 +++--- src/pages/column/result.vue | 4 +- src/pages/contactUs/index.vue | 31 ++--- src/pages/devHistory/index.vue | 31 ++--- src/pages/deviceIntroBeam/index.vue | 2 +- src/pages/deviceIntroLayout/index.vue | 2 +- src/pages/deviceIntroLinear/index.vue | 2 +- src/pages/edu/index.vue | 2 +- src/pages/estate/index/index.vue | 8 +- src/pages/estate/location/index.vue | 1 + src/pages/estate/orgSetup/index.vue | 1 + src/pages/estate/survey/index.vue | 1 + src/pages/exp/index.vue | 2 +- src/pages/governance/index.vue | 31 ++--- src/pages/home/index.vue | 5 +- src/pages/iasf/index.vue | 12 +- src/pages/industrial/index.vue | 43 +++---- src/pages/lightSources/index.vue | 2 +- src/pages/mission/index.vue | 32 ++--- src/pages/news/index.vue | 10 +- src/pages/newsPress/index.vue | 2 +- src/pages/newsProcurement/index.vue | 8 +- src/pages/org/index.vue | 31 ++--- src/pages/overview/index.vue | 31 ++--- src/pages/publication/index.vue | 8 +- src/pages/publication/monograph.vue | 4 +- src/pages/publication/patent.vue | 4 +- src/pages/publication/single.vue | 7 +- src/pages/publication/thesis.vue | 4 +- src/pages/publish/index.vue | 176 ++++++++++++++------------ src/pages/publish/show.vue | 10 +- src/pages/research/index.vue | 2 +- src/pages/researchNew/index.vue | 2 +- src/pages/researchTeam/index.vue | 4 +- src/pages/science/index.vue | 31 ++--- src/pages/scientific/index.vue | 31 ++--- src/pages/sfel/index.vue | 12 +- src/pages/sfelNew/index.vue | 12 +- src/pages/speech/index.vue | 31 ++--- src/pages/talent/index.vue | 2 +- src/pages/talentCenter/index.vue | 12 +- src/pages/talentCentre/index.vue | 10 +- src/pages/team/index.vue | 31 ++--- src/pages/userSharing/index.vue | 2 +- src/setting.js | 5 +- vue.config.js | 3 +- 62 files changed, 425 insertions(+), 411 deletions(-) diff --git a/package-lock.json b/package-lock.json index 0b55790..9920a70 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8365,6 +8365,11 @@ "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=" }, + "jsencrypt": { + "version": "3.3.2", + "resolved": "https://registry.npmjs.org/jsencrypt/-/jsencrypt-3.3.2.tgz", + "integrity": "sha512-arQR1R1ESGdAxY7ZheWr12wCaF2yF47v5qpB76TtV64H1pyGudk9Hvw8Y9tb/FiTIaaTRUyaSnm5T/Y53Ghm/A==" + }, "jsesc": { "version": "2.5.2", "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-2.5.2.tgz", diff --git a/package.json b/package.json index 93a255d..5f59fc2 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "html2canvas": "^1.3.2", "jquery": "^3.7.1", "js-cookie": "^2.2.1", + "jsencrypt": "^3.3.2", "jspdf": "^2.4.0", "lru-cache": "^7.14.1", "mavon-editor": "^2.9.1", diff --git a/src/components/breadcrumb/index.vue b/src/components/breadcrumb/index.vue index d03e350..5f80a4b 100644 --- a/src/components/breadcrumb/index.vue +++ b/src/components/breadcrumb/index.vue @@ -49,7 +49,7 @@ export default { methods: { // 获取文章详情 getInfo () { - this.$route.query.articleId && this.$post(`${this.api.queryArticleColumnParent}?articleId=${this.$route.query.articleId}`).then(({ data }) => { + this.$route.query.articleId && this.$post(this.api.queryArticleColumnParent, Util.rsa(this.$route.query.articleId)).then(({ data }) => { this.columns = data }).catch(err => { }) }, diff --git a/src/components/rightColumns/index.vue b/src/components/rightColumns/index.vue index 88e44cb..08e12ac 100644 --- a/src/components/rightColumns/index.vue +++ b/src/components/rightColumns/index.vue @@ -71,36 +71,36 @@ export default { methods: { // 资讯 getColumn () { - this.$post(this.api.listWithTreeMenuVisible, { + this.$post(this.api.listWithTreeMenuVisible, Util.rsa({ siteId: this.site, columnName: '', templateId: '', typeId: '', isSort: 1 - }).then(({ data }) => { + })).then(({ data }) => { this.columns = data this.$parent.getInfo && this.$parent.getInfo() }).catch(err => { }) - this.$post(`${this.api.hotContent}?siteId=${this.site}`).then(({ data }) => { + this.$post(this.api.hotContent, Util.rsa(this.site)).then(({ data }) => { this.hots = Util.removeTag(data) }).catch(err => { }) if (this.site == 2) { - this.$post(this.api.newlyPublishedArticles, { + this.$post(this.api.newlyPublishedArticles, Util.rsa({ siteId: this.site, columnIds: [411, 412, 413], pageNum: 1, pageSize: 8, - }).then(({ data }) => { + })).then(({ data }) => { this.site2News = Util.removeTag(data.records); }).catch((res) => { }); } else { - this.$post(this.api.newlyPublishedArticles, { + this.$post(this.api.newlyPublishedArticles, Util.rsa({ pageNum: 1, pageSize: 5, siteId: this.site - }).then(({ data }) => { + })).then(({ data }) => { this.news = Util.removeTag(data.records) }).catch(res => { }) } diff --git a/src/layouts/footer/index.vue b/src/layouts/footer/index.vue index 9212c70..5308ea7 100644 --- a/src/layouts/footer/index.vue +++ b/src/layouts/footer/index.vue @@ -59,6 +59,7 @@