From 90d413f41079604c434543b2f1104ce8d4bdd444 Mon Sep 17 00:00:00 2001 From: yujialong <479214531@qq.com> Date: Thu, 18 Jul 2024 14:37:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E6=9C=89=E9=95=BF=E9=A1=B5=E7=9A=84?= =?UTF-8?q?=E6=A0=87=E9=A2=98=E5=92=8C=E9=9D=A2=E5=8C=85=E5=B1=91=E6=94=B9?= =?UTF-8?q?=E6=88=90=E5=8F=96=E6=A0=8F=E7=9B=AE=E5=90=8D=E7=A7=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/mixins/page/index.js | 27 +- src/pages/column/page/about.vue | 580 ++++---- src/pages/column/page/aboutNew.vue | 553 ++++--- src/pages/column/page/application.vue | 405 +++-- src/pages/column/page/careers.vue | 59 +- src/pages/column/page/contactUs.vue | 166 +-- src/pages/column/page/devHistory.vue | 20 +- src/pages/column/page/deviceIntroBeam.vue | 256 ++-- src/pages/column/page/deviceIntroLayout.vue | 248 ++-- src/pages/column/page/deviceIntroLinear.vue | 278 ++-- src/pages/column/page/edu.vue | 41 +- src/pages/column/page/estate/event/index.vue | 299 ++-- src/pages/column/page/estate/index/index.vue | 812 +++++----- .../column/page/estate/location/index.vue | 267 ++-- .../column/page/estate/orgSetup/index.vue | 203 ++- src/pages/column/page/estate/survey/index.vue | 192 ++- src/pages/column/page/exp.vue | 248 ++-- src/pages/column/page/governance.vue | 287 ++-- src/pages/column/page/home.vue | 482 +++--- src/pages/column/page/iasf.vue | 983 ++++++------ src/pages/column/page/industrial.vue | 484 +++--- src/pages/column/page/lightSources.vue | 190 +-- src/pages/column/page/mission.vue | 303 ++-- src/pages/column/page/news.vue | 691 ++++----- src/pages/column/page/newsPress.vue | 37 +- src/pages/column/page/newsProcurement.vue | 37 +- src/pages/column/page/org.vue | 127 +- src/pages/column/page/overview.vue | 516 +++---- src/pages/column/page/overviewDevHistory.vue | 307 ++-- src/pages/column/page/overviewIntro.vue | 255 ++-- src/pages/column/page/overviewLocation.vue | 43 +- src/pages/column/page/overviewSetup.vue | 164 +- src/pages/column/page/overviewTrailer.vue | 41 +- src/pages/column/page/research.vue | 61 +- src/pages/column/page/researchNew.vue | 312 ++-- src/pages/column/page/researchTeam.vue | 847 ++++++----- src/pages/column/page/science.vue | 35 +- src/pages/column/page/scientific.vue | 415 +++--- src/pages/column/page/sfel.vue | 1322 +++++++++-------- src/pages/column/page/sfelNew.vue | 1250 ++++++++-------- src/pages/column/page/speech.vue | 146 +- src/pages/column/page/talent.vue | 299 ++-- src/pages/column/page/talentCenter.vue | 375 +++-- src/pages/column/page/talentCentre.vue | 336 ++--- src/pages/column/page/team.vue | 138 +- src/pages/column/page/userSharing.vue | 257 ++-- src/setting.js | 4 +- 47 files changed, 7338 insertions(+), 8060 deletions(-) diff --git a/src/mixins/page/index.js b/src/mixins/page/index.js index d5b035e..1b0e34f 100644 --- a/src/mixins/page/index.js +++ b/src/mixins/page/index.js @@ -17,6 +17,7 @@ export default { curListIndex: 0, curData: {}, pass: false, + columnName: '', } }, components: { @@ -40,6 +41,7 @@ export default { }, mounted () { this.getInfo() + this.getColumnInfo() }, methods: { // 获取详情 @@ -71,7 +73,6 @@ export default { this.id = json.id const str = json[json.state ? 'theEditedJson' : 'jsonBeforeEditing'] const list = JSON.parse(str) - console.log("🚀 ~ this.$post ~ list:", list, json.theEditedJson) this.modules.map((e, i) => { e.form = list[i].form @@ -81,10 +82,32 @@ export default { } }) this.originModules = JSON.stringify(this.modules) // 原始json,用以页面离开的时候判断是否需要提示保存 - console.log("🚀 ~ file: index.js:85 ~ this.$post ~ list:", this.modules[0]) + console.log("🚀 ~ file: index.js:85 ~ this.$post ~ list:", this.modules) } }).catch(err => { }) }, + // 获取栏目信息 + async getColumnInfo () { + const { data } = await this.$post(this.api.findColumn, Util.rsa(this.columnId)) + this.columnName = data.columnName + this.$store.commit('user/setCrumbs', [ + { + name: '站点管理', + route: '/site' + }, + { + name: '内容管理', + route: '/column' + }, + { + name: '栏目管理', + route: '/column' + }, + { + name: data.columnName + } + ]) + }, // 展开模块设置 toSet (i, listIndex) { this.curModule = i diff --git a/src/pages/column/page/about.vue b/src/pages/column/page/about.vue index bc19dc4..c2885e5 100644 --- a/src/pages/column/page/about.vue +++ b/src/pages/column/page/about.vue @@ -1,13 +1,11 @@ @@ -269,23 +212,7 @@ export default { } }, mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: 'ABOUT' - } - ]) + }, methods: { @@ -295,209 +222,254 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/aboutNew.vue b/src/pages/column/page/aboutNew.vue index 7ea1ae1..0e4659a 100644 --- a/src/pages/column/page/aboutNew.vue +++ b/src/pages/column/page/aboutNew.vue @@ -1,13 +1,11 @@ @@ -228,23 +180,7 @@ export default { } }, mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: 'ABOUT' - } - ]) + }, methods: { @@ -254,209 +190,254 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/application.vue b/src/pages/column/page/application.vue index 8e65e9c..0c4bd8c 100644 --- a/src/pages/column/page/application.vue +++ b/src/pages/column/page/application.vue @@ -1,13 +1,11 @@ @@ -184,25 +161,7 @@ export default { modules: Modules.application } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: 'APPLICATION' - } - ]) - }, + mounted () { }, methods: { } @@ -211,142 +170,170 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/careers.vue b/src/pages/column/page/careers.vue index 7e20f63..45930d2 100644 --- a/src/pages/column/page/careers.vue +++ b/src/pages/column/page/careers.vue @@ -1,7 +1,7 @@ @@ -351,23 +267,7 @@ export default { } }, mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: 'iasf中文首页' - } - ]) + }, methods: { @@ -377,380 +277,459 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/industrial.vue b/src/pages/column/page/industrial.vue index b0023ca..38b6081 100644 --- a/src/pages/column/page/industrial.vue +++ b/src/pages/column/page/industrial.vue @@ -1,13 +1,11 @@ @@ -218,25 +165,7 @@ export default { modules: Modules.industrial } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: '产业应用' - } - ]) - }, + mounted () { }, methods: { } @@ -245,174 +174,207 @@ export default { diff --git a/src/pages/column/page/lightSources.vue b/src/pages/column/page/lightSources.vue index 7ff9620..f7368b3 100644 --- a/src/pages/column/page/lightSources.vue +++ b/src/pages/column/page/lightSources.vue @@ -2,13 +2,11 @@
-

页面设置/全球先进光源

+

页面设置/{{ columnName }}

- 预览 + 预览 保存为草稿 - 发布 + 发布 放弃编辑
@@ -16,43 +14,31 @@
- +
-
点击更换banner与链接
+
点击更换banner与链接

{{ modules[1].form.title }}

-

{{ modules[1].form.des }}

- -
点击更换标题、描述、图片与链接
+

{{ modules[1].form.des }}

+ +
点击更换标题、描述、图片与链接
    -
  • {{ item.name }}
  • +
  • {{ + item.name }}
-
+
@@ -69,8 +55,7 @@ @@ -170,25 +145,7 @@ export default { ] } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: '全球先进光源' - } - ]) - }, + mounted () { }, methods: { // tab回调 tabChange (i) { @@ -200,61 +157,74 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/mission.vue b/src/pages/column/page/mission.vue index a276cbe..d58dba8 100644 --- a/src/pages/column/page/mission.vue +++ b/src/pages/column/page/mission.vue @@ -1,13 +1,11 @@ @@ -101,25 +78,7 @@ export default { modules: Modules.mission } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: '关于IASF-使命愿景价值观' - } - ]) - }, + mounted () { }, methods: { } @@ -128,126 +87,150 @@ export default { diff --git a/src/pages/column/page/news.vue b/src/pages/column/page/news.vue index cf4aa49..dd73e68 100644 --- a/src/pages/column/page/news.vue +++ b/src/pages/column/page/news.vue @@ -1,13 +1,11 @@ @@ -347,25 +279,7 @@ export default { active: '' } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: 'NEWS&EVENTS' - } - ]) - }, + mounted () { }, methods: { } @@ -374,248 +288,299 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/newsPress.vue b/src/pages/column/page/newsPress.vue index b508385..58e89be 100644 --- a/src/pages/column/page/newsPress.vue +++ b/src/pages/column/page/newsPress.vue @@ -1,7 +1,7 @@ @@ -119,25 +92,7 @@ export default { }, } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: '人才中心' - } - ]) - }, + mounted () { }, methods: { } @@ -146,131 +101,156 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/team.vue b/src/pages/column/page/team.vue index 33d09d7..1adf89b 100644 --- a/src/pages/column/page/team.vue +++ b/src/pages/column/page/team.vue @@ -2,13 +2,11 @@
-

页面设置/关于IASF-核心团队

+

页面设置/{{ columnName }}

- 预览 + 预览 保存为草稿 - 发布 + 发布 放弃编辑
@@ -16,43 +14,32 @@
- +
-
点击更换banner与链接
+
点击更换banner与链接
    -
  • - +
  • +
    {{ item.title }}

    {{ item.subTitle }}

    -
    +
-
点击更换图片、标题、描述
+
点击更换图片、标题、描述
- +
@@ -66,25 +53,7 @@ export default { modules: Modules.team } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: '关于IASF-核心团队' - } - ]) - }, + mounted () { }, methods: { } @@ -93,47 +62,56 @@ export default { \ No newline at end of file diff --git a/src/pages/column/page/userSharing.vue b/src/pages/column/page/userSharing.vue index 3b9a015..e3bcea6 100644 --- a/src/pages/column/page/userSharing.vue +++ b/src/pages/column/page/userSharing.vue @@ -1,13 +1,11 @@ @@ -94,25 +76,7 @@ export default { modules: Modules.userSharing } }, - mounted () { - this.$store.commit('user/setCrumbs', [ - { - name: '站点管理', - route: '/site' - }, - { - name: '内容管理', - route: '/column' - }, - { - name: '栏目管理', - route: '/column' - }, - { - name: '用户共享' - } - ]) - }, + mounted () { }, methods: { } @@ -121,96 +85,111 @@ export default { \ No newline at end of file diff --git a/src/setting.js b/src/setting.js index 317ebcb..8a84f59 100644 --- a/src/setting.js +++ b/src/setting.js @@ -3,9 +3,7 @@ * */ const isDev = process.env.NODE_ENV === 'development' // 开发环境 let host = `${location.origin}/` -if (isDev) { - host = 'http://192.168.31.51:10000/' -} + const Setting = { /** * 基础配置