From 4ad44c9d5ca299909a44a4cdabcba604b655d777 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 13 Apr 2023 16:22:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=87=BA=E7=89=88=E7=89=A9=E6=B7=BB=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/const/column.js | 37 +++++++ src/pages/column/index.vue | 9 +- src/pages/publication/index.vue | 82 ++++++++++----- src/pages/publication/monograph.vue | 157 ++++++++++++++++++++++++++++ src/pages/publication/patent.vue | 88 +++++++++++----- src/pages/publication/thesis.vue | 58 +++++++--- 6 files changed, 365 insertions(+), 66 deletions(-) create mode 100644 src/pages/publication/monograph.vue diff --git a/src/const/column.js b/src/const/column.js index e5bc11e..f38a5b6 100644 --- a/src/const/column.js +++ b/src/const/column.js @@ -22,6 +22,32 @@ name: '子级优先栏目' } ], + long: [ + { + name: 'SFEL', + path: 'sfel' + }, + { + name: 'SFEL-科普之窗', + path: 'science' + }, + { + name: 'SFEL-装置介绍-实验站', + path: 'exp' + }, + { + name: 'SFEL-人才队伍', + path: 'talent' + }, + { + name: 'SFEL-用户共享', + path: 'userSharing' + }, + { + name: 'SFEL-概况', + path: 'survey' + }, + ], // 出版物类型 publicationTypes: [ { @@ -61,4 +87,15 @@ name: '产品资料和其它' } ], + // 专利类别 + patentClasses: [ + { + id: 1, + name: '发明专利' + }, + { + id: 2, + name: '实用外观' + } + ] } \ No newline at end of file diff --git a/src/pages/column/index.vue b/src/pages/column/index.vue index 4b91410..964c7ea 100644 --- a/src/pages/column/index.vue +++ b/src/pages/column/index.vue @@ -217,11 +217,18 @@ export default { if (data.typeId !== 3) this.loaded = true; // 非长页,才展示页面 this.info = data; this.showNav = this.showNavIds.includes(data.listStyleId); + this.handlePublication(); this.getLeftColumn(); this.getClassification(); }) .catch((res) => { }); }, + // 判断是否是出版物模板,如果是则跳转 + handlePublication() { + this.$post(`${this.api.getsSublevelColumnsUnderALevel}?id=${this.id}&siteId=${this.site}`).then(({ data }) => { + data.length && data.every(e => e.templateId == 11) && this.$router.push(`/publication?siteId=${this.site}&id=${this.id}`) // 如果子级每个栏目都是出版物类型 + }).catch(err => {}) + }, // 获取banner 规则:当前栏目有上传的,用当前的,没有上传的话,读取上级的(上级没有读上上级,以此类推)都没有的读取默认的 getBanner(data) { for (const e of data) { @@ -298,7 +305,7 @@ export default { }, // 左边栏目 getLeftColumn() { - this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}&isSort=1`) + this.$post(`${this.api.oneLevelChecksThemAll}?id=${this.id}&isSort=1&siteId=${this.site}`) .then(({ data }) => { const fromColumn = this.$route.query.column; // 有column标识的,说明是通过点击左侧导航跳转过来的,这种情况只查询该栏目下的文章 const { typeId } = this.info; diff --git a/src/pages/publication/index.vue b/src/pages/publication/index.vue index e5d5bd8..a468429 100644 --- a/src/pages/publication/index.vue +++ b/src/pages/publication/index.vue @@ -1,74 +1,108 @@ \ No newline at end of file diff --git a/src/pages/publication/patent.vue b/src/pages/publication/patent.vue index 407beb5..4bd0fdd 100644 --- a/src/pages/publication/patent.vue +++ b/src/pages/publication/patent.vue @@ -3,25 +3,26 @@
专利类别: - +
申请日期: - - - - + +
- - - - - - + + + + + + + +