+
-
+
@@ -52,14 +53,30 @@ export default {
chat_link1: "/api/files/chat-icon.png",
chat_link2: "/api/files/chat-icon.png",
chat_link3: "/api/files/chat-icon.png",
-
+ urlOne:"",
+ urlTwo:"",
+ urlThree:"",
contentLoading: true,
loadingBg: "#FFF",
+ content: '',
+ contentMd:''
}
},
methods:{
-
+ goToForum(linkNum){
+ switch (linkNum){
+ case 1:
+ window.location.href= this.urlOne
+ break;
+ case 2:
+ window.location.href= this.urlTwo
+ break;
+ case 3:
+ window.location.href= this.urlThree
+ break;
+ }
+ },
initPage(){
pageUtils.checkComp(this.$router,this.$route.params.compId,this.$api);
this.$api.getPageData(this.$route.params.compId,'chat').then((res) => {
@@ -70,6 +87,11 @@ export default {
this.chat_link2 = res.data.logoTwo;
this.chat_link3 = res.data.logoThree;
this.chat = res.data.imgUrl;
+ this.content = res.data.content;
+ this.contentMd = res.data.contentMd;
+ this.urlOne = res.data.urlOne;
+ this.urlTwo = res.data.urlTwo;
+ this.urlThree = res.data.urlThree;
this.contentLoading = false;
}else {
Message.warning("该页面不存在");
@@ -129,3 +151,16 @@ export default {
+
\ No newline at end of file
diff --git a/src/pages/Chat/ChatEdit.vue b/src/pages/Chat/ChatEdit.vue
index 0613810..2f13492 100644
--- a/src/pages/Chat/ChatEdit.vue
+++ b/src/pages/Chat/ChatEdit.vue
@@ -8,13 +8,17 @@
提交
- 取消
+ 取消
+
\ No newline at end of file
diff --git a/src/router/index.js b/src/router/index.js
index 8156b5f..89b90cd 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -152,6 +152,14 @@ let routes = [
meta: {
title: '红山开源社区'
},
+ },
+ {
+ // 用户管理
+ path: "userManage",
+ component: () => import("@/pages/Admin/UserManage"),
+ meta: {
+ title: '红山开源社区'
+ },
}
]
},
diff --git a/src/utils/http/interface.js b/src/utils/http/interface.js
index 92d3bc9..bf14e9b 100644
--- a/src/utils/http/interface.js
+++ b/src/utils/http/interface.js
@@ -54,6 +54,30 @@ export const register = data => {
data
})
};
+
+
+export const chatContentUpdate = data => {
+ return axios({
+ headers:{
+ "Authorization": localStorage.getItem("systemToken")
+ },
+ url: '/chat/updateContentByCompId',
+ method: 'post',
+ data
+ })
+};
+
+
+export const homeContentUpdate = data => {
+ return axios({
+ headers:{
+ "Authorization": localStorage.getItem("systemToken")
+ },
+ url: '/home/updateContentByCompId',
+ method: 'post',
+ data
+ })
+};
// 默认全部倒出
// 根据需要进行
export default {
@@ -62,5 +86,7 @@ export default {
getComp,
getPageData,
login,
- register
+ register,
+ chatContentUpdate,
+ homeContentUpdate
}
\ No newline at end of file
diff --git a/yarn.lock b/yarn.lock
index 83636dc..55e8c40 100644
--- a/yarn.lock
+++ b/yarn.lock
@@ -3426,6 +3426,14 @@ ecc-jsbn@~0.1.1:
jsbn "~0.1.0"
safer-buffer "^2.1.0"
+echarts@^5.3.2:
+ version "5.3.2"
+ resolved "https://registry.yarnpkg.com/echarts/-/echarts-5.3.2.tgz#0a7b3be8c48a48b2e7cb1b82121df0c208d42d2c"
+ integrity sha512-LWCt7ohOKdJqyiBJ0OGBmE9szLdfA9sGcsMEi+GGoc6+Xo75C+BkcT/6NNGRHAWtnQl2fNow05AQjznpap28TQ==
+ dependencies:
+ tslib "2.3.0"
+ zrender "5.3.1"
+
ee-first@1.1.1:
version "1.1.1"
resolved "https://registry.npmmirror.com/ee-first/-/ee-first-1.1.1.tgz"
@@ -5863,6 +5871,11 @@ mixin-deep@^1.2.0:
dependencies:
minimist "^1.2.6"
+moment@^2.29.1:
+ version "2.29.3"
+ resolved "https://registry.yarnpkg.com/moment/-/moment-2.29.3.tgz#edd47411c322413999f7a5940d526de183c031f3"
+ integrity sha512-c6YRvhEo//6T2Jz/vVtYzqBzwvPT95JBQ+smCytzf7c50oMZRsR/a4w88aD34I+/QVSfnoAnSBFPJHItlOMJVw==
+
move-concurrently@^1.0.1:
version "1.0.1"
resolved "https://registry.npmmirror.com/move-concurrently/-/move-concurrently-1.0.1.tgz"
@@ -8466,6 +8479,11 @@ ts-pnp@^1.1.6:
resolved "https://registry.npmmirror.com/ts-pnp/-/ts-pnp-1.2.0.tgz"
integrity sha512-csd+vJOb/gkzvcCHgTGSChYpy5f1/XKNsmvBGO4JXS+z1v2HobugDz4s1IeFXM3wZB44uczs+eazB5Q/ccdhQw==
+tslib@2.3.0:
+ version "2.3.0"
+ resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e"
+ integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg==
+
tslib@^1.9.0:
version "1.14.1"
resolved "https://registry.npmmirror.com/tslib/-/tslib-1.14.1.tgz"
@@ -9186,3 +9204,10 @@ yorkie@^2.0.0:
is-ci "^1.0.10"
normalize-path "^1.0.0"
strip-indent "^2.0.0"
+
+zrender@5.3.1:
+ version "5.3.1"
+ resolved "https://registry.yarnpkg.com/zrender/-/zrender-5.3.1.tgz#fa8e63ac7e719cfd563831fe8c42a9756c5af384"
+ integrity sha512-7olqIjy0gWfznKr6vgfnGBk7y4UtdMvdwFmK92vVQsQeDPyzkHW1OlrLEKg6GHz1W5ePf0FeN1q2vkl/HFqhXw==
+ dependencies:
+ tslib "2.3.0"