@@ -301,7 +300,7 @@ export default {
// 文件上传等待
onUpload(){
- this.loading_text = "拼命导入中...请稍等"
+ this.loading_text = "拼命导入中...请稍等";
this.loading = true;
},
diff --git a/src/pages/Chat/Chat.vue b/src/pages/Chat/Chat.vue
index 36d25cf..c4a3bb9 100644
--- a/src/pages/Chat/Chat.vue
+++ b/src/pages/Chat/Chat.vue
@@ -53,30 +53,32 @@ 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:"",
+ urlOne: "",
+ urlTwo: "",
+ urlThree: "",
contentLoading: true,
loadingBg: "#FFF",
- content: '',
- contentMd:''
+ content: "",
+ contentMd: "",
}
},
methods:{
+
goToForum(linkNum){
switch (linkNum){
case 1:
- window.location.href= this.urlOne
+ window.location.href= this.urlOne;
break;
case 2:
- window.location.href= this.urlTwo
+ window.location.href= this.urlTwo;
break;
case 3:
- window.location.href= this.urlThree
+ 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) => {
@@ -111,7 +113,7 @@ export default {
},
mounted() {
- this.initPage()
+ this.initPage();
},
@@ -150,7 +152,6 @@ export default {
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/src/pages/Chat/ChatEdit.vue b/src/pages/Chat/ChatEdit.vue
index 2f13492..e9dffb0 100644
--- a/src/pages/Chat/ChatEdit.vue
+++ b/src/pages/Chat/ChatEdit.vue
@@ -1,5 +1,4 @@
-
交流互动
@@ -15,9 +14,8 @@
diff --git a/src/pages/Data/Chart.vue b/src/pages/Data/Chart.vue
index 8e56719..0464118 100644
--- a/src/pages/Data/Chart.vue
+++ b/src/pages/Data/Chart.vue
@@ -127,25 +127,29 @@ export default {
}, 1000);
this.loading = true;
},
+
initPage(){
- var compId = this.$route.params.compId
+ var compId = this.$route.params.compId;
var compInfo ={
- compId
+ compId,
}
this.$api.getChartCount(compInfo).then((res)=>{
if (res.status == 0) {
- this.apply_total_num = res.data.applyCount
- this.submit_total_num = res.data.submitCount
+ this.apply_total_num = res.data.applyCount;
+ this.submit_total_num = res.data.submitCount;
}
})
}
+
},
mounted(){
- this.initPage()
- this.chart_title = "地方分赛区";
+ this.initPage();
+ this.chart_title = "地方分赛区";
+
this.makeEcharts();
+
},
}
diff --git a/src/pages/Data/Rank.vue b/src/pages/Data/Rank.vue
index e6d75ef..296877e 100644
--- a/src/pages/Data/Rank.vue
+++ b/src/pages/Data/Rank.vue
@@ -1,16 +1,287 @@
- 排行榜
+
+
+
{{ comp_name }}排行榜单
+
+
+
+
+
+
+
+
+
+
+ {{ scope.$index+1 }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/Guide/GuideEdit.vue b/src/pages/Guide/GuideEdit.vue
index 87ef758..2c57686 100644
--- a/src/pages/Guide/GuideEdit.vue
+++ b/src/pages/Guide/GuideEdit.vue
@@ -24,12 +24,12 @@ export default {
data(){
return{
data: "",
- html:"",
+ html: "",
xssOptions:{
whiteList: {
div: ['style'],
- img:['src','width','height','style'],
- a: ['href', 'title', 'target','style']
+ img: ['src','width','height','style'],
+ a: ['href', 'title', 'target','style'],
}
}
}
@@ -43,62 +43,61 @@ export default {
console.log(value);
console.log(render);
},
- cancel(){
- pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/guide")
+ cancel(){
+ pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/guide");
},
+
change(value,render){
this.html = render;
},
+
initPage(){
pageUtils.checkComp(this.$router,this.$route.params.compId,this.$api);
this.$api.getPageData(this.$route.params.compId,'guide').then((res) => {
console.log(res);
//先判断 该页面是否展示
if (res.data.show) {
-
this.data = res.data.contentMd;
-
}else {
Message.warning("该页面不存在");
this.$router.push({
- path: '/404'
+ path: '/404',
});
}
-
})
},
+
submit(){
console.log(this.data);
console.log(this.html);
let guideInfo = {
content : this.html,
contentMd : this.data,
- compId : this.$route.params.compId
+ compId : this.$route.params.compId,
}
this.$api.guideContentUpdate(guideInfo)
.then((res) =>{
if (res.status === 0) {
- Message.success("保存成功")
+ Message.success("保存成功");
//跳转
- pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/guide")
+ pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/guide");
}else if (res.status === 20){
- Message.error("文件上传失败")
+ Message.error("文件上传失败");
}else if (res.status === 10){
- Message.error("系统错误")
+ Message.error("系统错误");
}else {
- Message.error("权限不足或其他错误")
+ Message.error("权限不足或其他错误");
}
})
.catch(function (res) {
alert(res);
-
});
}
},
mounted() {
- this.initPage()
+ this.initPage();
}
}
@@ -108,6 +107,7 @@ export default {
margin-top: 50px;
}
+
\ No newline at end of file
diff --git a/src/pages/Home/Home.vue b/src/pages/Home/Home.vue
index c5e8653..9e17429 100644
--- a/src/pages/Home/Home.vue
+++ b/src/pages/Home/Home.vue
@@ -29,7 +29,7 @@
// import 'mavon-editor/dist/css/index.css'
import Video from "@/components/Video";
import pageUtils from "@/utils/pageUtils";
-import {Message} from "element-ui";
+import { Message } from "element-ui";
export default {
name: "Home",
@@ -45,8 +45,8 @@ export default {
videoSrc: "",
videoWidth: "100%",
contentLoading: true,
- content: '',
- contentMd:''
+ content: "",
+ contentMd: ""
}
},
@@ -55,13 +55,13 @@ export default {
goToEdit(){
pageUtils.openPage(this.$router,"/" + this.$route.params.compId + "/homeEdit");
},
+
checkComp(){
pageUtils.checkComp( this.$router,this.$route.params.compId,this.$api );
this.$api.getPageData(this.$route.params.compId,'home').then((res) => {
console.log(res);
//先判断 该页面是否展示
if (res.data.show) {
-
this.content = res.data.content;
this.contentMd = res.data.contentMd;
this.videoSrc = res.data.video;
@@ -69,7 +69,7 @@ export default {
}else {
Message.warning("该页面不存在");
this.$router.push({
- path: '/404'
+ path: '/404',
});
}
@@ -79,7 +79,7 @@ export default {
},
mounted() {
- this.checkComp()
+ this.checkComp();
}
}
@@ -87,11 +87,9 @@ export default {
diff --git a/src/pages/Home/HomeEdit.vue b/src/pages/Home/HomeEdit.vue
index f60ce75..2c60225 100644
--- a/src/pages/Home/HomeEdit.vue
+++ b/src/pages/Home/HomeEdit.vue
@@ -24,11 +24,11 @@ export default {
data(){
return{
data: "",
- html:"",
+ html: "",
xssOptions:{
whiteList: {
div: ['style'],
- img:['src','width','height','style'],
+ img: ['src','width','height','style'],
a: ['href', 'title', 'target','style']
}
}
@@ -43,62 +43,62 @@ export default {
console.log(value);
console.log(render);
},
- cancel(){
- pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/home")
+ cancel(){
+ pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/home");
},
+
change(value,render){
this.html = render;
},
+
initPage(){
pageUtils.checkComp(this.$router,this.$route.params.compId,this.$api);
this.$api.getPageData(this.$route.params.compId,'home').then((res) => {
console.log(res);
//先判断 该页面是否展示
if (res.data.show) {
-
this.data = res.data.contentMd;
-
}else {
Message.warning("该页面不存在");
this.$router.push({
- path: '/404'
+ path: '/404',
});
}
})
},
+
submit(){
console.log(this.data);
console.log(this.html);
let homeInfo = {
content : this.html,
contentMd : this.data,
- compId : this.$route.params.compId
+ compId : this.$route.params.compId,
}
this.$api.homeContentUpdate(homeInfo)
.then((res) =>{
if (res.status === 0) {
- Message.success("保存成功")
+ Message.success("保存成功");
//跳转
- pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/home")
+ pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/home");
}else if (res.status === 20){
- Message.error("文件上传失败")
+ Message.error("文件上传失败");
}else if (res.status === 10){
- Message.error("系统错误")
+ Message.error("系统错误");
}else {
- Message.error("权限不足或其他错误")
+ Message.error("权限不足或其他错误");
}
})
.catch(function (res) {
alert(res);
-
});
}
},
mounted() {
- this.initPage()
+ this.initPage();
}
}
diff --git a/src/pages/Manage/ApplyList.vue b/src/pages/Manage/ApplyList.vue
index fdfc557..db4a602 100644
--- a/src/pages/Manage/ApplyList.vue
+++ b/src/pages/Manage/ApplyList.vue
@@ -137,9 +137,9 @@ export default {
// 搜索数据
searchInfo:{
- keyWords:"",
- division:"",
- kind:"",
+ keyWords: "",
+ division: "",
+ kind: "",
},
// 返回res 可以用[]和""
diff --git a/src/pages/Manage/SubmitList.vue b/src/pages/Manage/SubmitList.vue
index 0547690..5c54830 100644
--- a/src/pages/Manage/SubmitList.vue
+++ b/src/pages/Manage/SubmitList.vue
@@ -105,9 +105,9 @@ export default {
//搜索数据
searchInfo:{
- keyWords:"",
- division:"",
- kind:"",
+ keyWords: "",
+ division: "",
+ kind: "",
},
//返回res 可以用[]和""
diff --git a/src/pages/Notice/Notice.vue b/src/pages/Notice/Notice.vue
index a931710..40a5a89 100644
--- a/src/pages/Notice/Notice.vue
+++ b/src/pages/Notice/Notice.vue
@@ -103,6 +103,7 @@ export default {
},
mounted() {},
+
};
diff --git a/src/pages/Submit/Submit.vue b/src/pages/Submit/Submit.vue
index 1415aff..98fc60f 100644
--- a/src/pages/Submit/Submit.vue
+++ b/src/pages/Submit/Submit.vue
@@ -73,7 +73,7 @@ export default {
// 文件上传等待
onUpload(){
- this.loading_text = "拼命导入中...请稍等"
+ this.loading_text = "拼命导入中...请稍等";
this.loading = true;
},
@@ -114,8 +114,6 @@ export default {
float: left;
padding: 3vw 6vw;
}
-
-