From 67a59a24e5487fe981aee6a92283d03373367ba9 Mon Sep 17 00:00:00 2001
From: yujialong <479214531@qq.com>
Date: Thu, 23 Mar 2023 10:21:42 +0800
Subject: [PATCH] =?UTF-8?q?sfel-=E6=A6=82=E5=86=B5=E9=95=BF=E9=A1=B5?=
=?UTF-8?q?=EF=BC=88=E6=9C=AA=E5=AE=8C=E6=88=90=EF=BC=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/index.js | 1 +
src/components/modules/history.vue | 269 +++++++++++++++++++
src/components/modules/link.vue | 8 +-
src/components/modules/module.vue | 38 ++-
src/const/modules.js | 69 +++++
src/mixins/page/index.js | 2 +-
src/pages/article/add/editor.js | 11 +-
src/pages/article/add/index.vue | 16 +-
src/pages/article/list/index.vue | 14 +-
src/pages/column/add/index.vue | 8 +-
src/pages/column/list/index.vue | 8 +-
src/pages/column/page/overviewDevHistory.vue | 228 ++++++++++++++++
src/pages/column/page/overviewLocation.vue | 4 +-
src/pages/column/page/overviewSetup.vue | 8 +-
src/pages/column/page/overviewTrailer.vue | 4 +-
src/plugins/requests/index.js | 7 +
src/router/modules/column.js | 6 +
src/setting.js | 1 +
src/styles/page/page.scss | 3 +-
19 files changed, 661 insertions(+), 44 deletions(-)
create mode 100644 src/components/modules/history.vue
create mode 100644 src/pages/column/page/overviewDevHistory.vue
diff --git a/src/api/index.js b/src/api/index.js
index 6fecad1..9278fbe 100644
--- a/src/api/index.js
+++ b/src/api/index.js
@@ -75,4 +75,5 @@ export default {
theAttachmentUnderTheQueryColumn: `iasf/content/file/theAttachmentUnderTheQueryColumn`,
individualTemplateDetailsStyle: `iasf/template/individualTemplateDetailsStyle`,
longPageListStyle: `iasf/template/longPageListStyle`,
+ resort: `iasf/sysContent/sort`,
}
\ No newline at end of file
diff --git a/src/components/modules/history.vue b/src/components/modules/history.vue
new file mode 100644
index 0000000..8ee8192
--- /dev/null
+++ b/src/components/modules/history.vue
@@ -0,0 +1,269 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ scope.row.link.linkName }}
+ 设置链接
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/modules/link.vue b/src/components/modules/link.vue
index a365c09..dcad03c 100644
--- a/src/components/modules/link.vue
+++ b/src/components/modules/link.vue
@@ -126,8 +126,8 @@ export default {
// 栏目列表
getList() {
this.$post(this.api.listWithTree, {
- role: 1,
- isadmin: false,
+
+
siteId: this.site.id,
columnName: '',
templateId: '',
@@ -178,8 +178,8 @@ export default {
// 获取指定站点的栏目列表
getOtherColumn() {
this.data.site && this.$post(this.api.listWithTree, {
- role: 1,
- isadmin: false,
+
+
siteId: this.data.site,
columnName: '',
templateId: '',
diff --git a/src/components/modules/module.vue b/src/components/modules/module.vue
index 977d7d8..c6eb44d 100644
--- a/src/components/modules/module.vue
+++ b/src/components/modules/module.vue
@@ -1,5 +1,4 @@
-
@@ -134,6 +133,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/pages/column/page/overviewLocation.vue b/src/pages/column/page/overviewLocation.vue
index dd0f9c0..82e411d 100644
--- a/src/pages/column/page/overviewLocation.vue
+++ b/src/pages/column/page/overviewLocation.vue
@@ -47,8 +47,8 @@ export default {
data() {
return {
modules: Modules.overviewLocation,
- active: 2,
- tabs: ['S³FEL介绍', '发展历程', 'S³FEL宣传片', '地理位置', '机构设置']
+ active: 0,
+ tabs: ['地理位置']
}
},
mounted() {
diff --git a/src/pages/column/page/overviewSetup.vue b/src/pages/column/page/overviewSetup.vue
index 54a2bc4..ba3ecc4 100644
--- a/src/pages/column/page/overviewSetup.vue
+++ b/src/pages/column/page/overviewSetup.vue
@@ -30,10 +30,10 @@
{{ modules[1].form.title }}
{{ modules[1].form.des }}
-
+
-
+
@@ -50,8 +50,8 @@ export default {
data() {
return {
modules: Modules.overviewSetup,
- active: 4,
- tabs: ['S³FEL介绍', '发展历程', 'S³FEL宣传片', '地理位置', '机构设置']
+ active: 0,
+ tabs: ['机构设置']
}
},
mounted() {
diff --git a/src/pages/column/page/overviewTrailer.vue b/src/pages/column/page/overviewTrailer.vue
index f2d1ac3..c41ec28 100644
--- a/src/pages/column/page/overviewTrailer.vue
+++ b/src/pages/column/page/overviewTrailer.vue
@@ -51,8 +51,8 @@ export default {
data() {
return {
modules: Modules.overviewTrailer,
- active: 2,
- tabs: ['S³FEL介绍', '发展历程', 'S³FEL宣传片', '地理位置', '机构设置']
+ active: 0,
+ tabs: ['S³FEL宣传片']
}
},
mounted() {
diff --git a/src/plugins/requests/index.js b/src/plugins/requests/index.js
index 35061a4..24aa7ac 100644
--- a/src/plugins/requests/index.js
+++ b/src/plugins/requests/index.js
@@ -51,6 +51,13 @@ service.interceptors.response.use(
case 500:
Util.errorMsg("网络错误");
break;
+ // 401token过期
+ case 401:
+ Util.errorMsg(error.response.data.msg)
+ setTimeout(() => {
+ store.dispatch('user/logout')
+ }, 1000)
+ break;
// 404请求不存在
case 404:
Util.errorMsg("网络请求不存在!");
diff --git a/src/router/modules/column.js b/src/router/modules/column.js
index 3926b6f..5533a41 100644
--- a/src/router/modules/column.js
+++ b/src/router/modules/column.js
@@ -139,6 +139,12 @@ export default {
component: () => import('@/pages/column/page/overviewSetup'),
meta: { title: '概况-机构设置' }
},
+ {
+ name: `${pre}overviewDevHistory`,
+ path: `overviewDevHistory`,
+ component: () => import('@/pages/column/page/overviewDevHistory'),
+ meta: { title: '概况-发展历程' }
+ },
{
name: `${pre}sfel`,
path: `sfel`,
diff --git a/src/setting.js b/src/setting.js
index 7a815a6..f2e3bc9 100644
--- a/src/setting.js
+++ b/src/setting.js
@@ -6,6 +6,7 @@ const isDev = process.env.NODE_ENV === 'development' // 开发环境
let host = `${location.origin}/`
if (isDev) {
host = 'http://192.168.31.151:10000/'
+ // host = 'http://10.10.11.7/'
}
const Setting = {
diff --git a/src/styles/page/page.scss b/src/styles/page/page.scss
index 4cdc682..bc888f3 100644
--- a/src/styles/page/page.scss
+++ b/src/styles/page/page.scss
@@ -107,7 +107,7 @@
/deep/.module {
.el-table.module-table td {
.cell {
- padding-top: 10px;
+ padding: 10px;
}
.link-wrap {
display: flex;
@@ -138,7 +138,6 @@ $avatar-height: 80px;
/deep/.upload-pic, /deep/.upload-none {
width: $avatar-width;
height: $avatar-height;
- margin-bottom: 10px;
}
/deep/.upload-none {
display: flex;