Merge pull request !9 from Sky_ID/zql
This commit is contained in:
Sky_ID 2022-06-08 09:45:01 +00:00 committed by Gitee
commit b124716722
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
20 changed files with 427 additions and 148 deletions

View File

@ -17,7 +17,9 @@
"sass-loader": "^7.3.1", "sass-loader": "^7.3.1",
"vue": "^2.6.11", "vue": "^2.6.11",
"vue-router": "3.5.2", "vue-router": "3.5.2",
"node-sass": "^4.14.1" "node-sass": "^4.14.1",
"echarts": "^5.3.2",
"moment": "^2.29.1"
}, },
"devDependencies": { "devDependencies": {
"@vue/cli-plugin-babel": "~4.4.5", "@vue/cli-plugin-babel": "~4.4.5",

View File

@ -1,4 +1,4 @@
.footer{ .footer {
position: absolute; position: absolute;
bottom: 0; bottom: 0;
height: 11.3vw; height: 11.3vw;
@ -7,18 +7,18 @@
background-color: #0a1d30; background-color: #0a1d30;
} }
.footer-content{ .footer-content {
display: flex; display: flex;
justify-content: center; justify-content: center;
align-items: center; align-items: center;
margin: 3.2vw; margin: 3.2vw;
} }
.osredm-logo{ .osredm-logo {
width: 200px; width: 200px;
} }
.text{ .text {
text-align: center; text-align: center;
align-items: center; align-items: center;
margin-left: 50px; margin-left: 50px;
@ -27,13 +27,13 @@
vertical-align: middle; vertical-align: middle;
} }
a:hover{ a:hover {
color: rgb(250, 202, 46); color: rgb(250, 202, 46);
} }
a:active{ a:active {
color: rgb(250, 202, 46); color: rgb(250, 202, 46);
} }
a{ a {
text-decoration: none; text-decoration: none;
color: white; color: white;
} }

View File

@ -19,14 +19,14 @@ img {
float: right; float: right;
} }
.nav{ .nav {
display: flex; display: flex;
justify-content: center; justify-content: center;
} }
.el-menu-item{ .el-menu-item {
font-size: 1.1rem; font-size: 1.1rem;
} }
::v-deep .el-submenu__title{ ::v-deep .el-submenu__title {
font-size: 1.1rem !important; font-size: 1.1rem !important;
} }

View File

@ -7,22 +7,23 @@
.breadcrumb { .breadcrumb {
margin: 2vw 0; margin: 2vw 0;
font-size: 1.1rem; font-size: 1.1rem;
} }
.edit-content{
.edit-content {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: center; justify-content: center;
margin: 0 17vw 3vw;
text-align: center; text-align: center;
margin: 0vw 17vw 3vw;
} }
/* 面板 */ /* 面板 */
.content { .content {
display: flex; display: flex;
flex-direction: column; flex-direction: column; /* 纵向排列 */
justify-content: center; justify-content: center; /* 垂直居中 */
align-items: center; align-items: center; /* 水平居中 */
margin: 0 6vw 3vw; margin: 0vw 6vw 3vw;
} }
.content ul { .content ul {
list-style-type: none; list-style-type: none;
@ -30,9 +31,9 @@
/* 卡片内容 */ /* 卡片内容 */
.card { .card {
background-color: white;
width: 66vw; width: 66vw;
box-shadow: 0 4px 10px 0 rgba(0,0,0,0.15); background-color: white;
box-shadow: 0px 4px 10px 0 rgba(0,0,0,0.15);
margin-bottom: 3vw; margin-bottom: 3vw;
} }
.card-content { .card-content {
@ -42,10 +43,10 @@
margin: 2vw; margin: 2vw;
} }
.card-content-left { .card-content-left {
text-align: left;
display: block; display: block;
position: relative; position: relative;
float: left; float: left;
text-align: left;
margin: 1vw 1.5vw; margin: 1vw 1.5vw;
} }
.card-img { .card-img {
@ -55,9 +56,3 @@
height: auto; height: auto;
} }
/* 分割线 */
.el-divider {
width: 95%;
height: 2px;
margin: 1vw auto;
}

View File

@ -72,9 +72,6 @@ export default {
color: #ee8145; color: #ee8145;
} }
} }
.not-found-btn-gohome {
}
} }
.el-button--primary { .el-button--primary {

View File

@ -14,21 +14,27 @@
<script> <script>
export default { export default {
name: "AdminHeader", name: "AdminHeader",
data() {
data(){
return { return {
osredmLogo: require("@/assets/logo/osredmLogo.svg"), osredmLogo: require("@/assets/logo/osredmLogo.svg"),
activeIndex: '1', activeIndex: '1',
activeIndex2: '1' activeIndex2: '1'
}; };
}, },
methods: {
methods:{
handleSelect(key, keyPath) { handleSelect(key, keyPath) {
console.log(key, keyPath); console.log(key, keyPath);
}, },
backOsredm(){ backOsredm(){
window.location.href='https://www.osredm.com' window.location.href='https://www.osredm.com'
} }
}
},
} }
</script> </script>

View File

@ -28,11 +28,13 @@
<script> <script>
export default { export default {
name: "Footer", name: "Footer",
data(){ data(){
return{ return{
osredmLogo: require("@/assets/logo/osredmLogo-white.svg") osredmLogo: require("@/assets/logo/osredmLogo-white.svg")
} }
} },
} }
</script> </script>

View File

@ -46,7 +46,7 @@ import pageUtils from "../utils/pageUtils";
export default { export default {
name: "Header", name: "Header",
data() { data(){
return { return {
banner: require("@/assets/logo/banner.jpg"), banner: require("@/assets/logo/banner.jpg"),
osredmLogo: require("@/assets/logo/osredmLogo.svg"), osredmLogo: require("@/assets/logo/osredmLogo.svg"),
@ -59,7 +59,7 @@ export default {
}; };
}, },
methods: { methods:{
// //
handleSelect(key, keyPath) { handleSelect(key, keyPath) {
@ -68,34 +68,34 @@ export default {
pageUtils.openPage(this.$router,"/" + this.$route.params.compId + "/home") pageUtils.openPage(this.$router,"/" + this.$route.params.compId + "/home")
break; break;
case "chat": case "chat":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/chat") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/chat")
break; break;
case "guide": case "guide":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/guide") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/guide")
break; break;
case "apply": case "apply":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/apply") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/apply")
break; break;
case "submit": case "submit":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/submit") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/submit")
break; break;
case "chart": case "chart":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/chart") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/chart")
break; break;
case "contactUs": case "contactUs":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/contactUs") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/contactUs")
break; break;
case "applyList": case "applyList":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/applyList") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/applyList")
break; break;
case "submitList": case "submitList":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/submitList") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/submitList")
break; break;
case "notice": case "notice":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/notice") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/notice")
break; break;
case "rank": case "rank":
pageUtils.openPage(this.$router,"/" +this.$route.params.compId +"/rank") pageUtils.openPage(this.$router,"/" + this.$route.params.compId +"/rank")
break; break;
} }
// console.log(key) // console.log(key)
@ -123,18 +123,16 @@ export default {
// path // path
getPath(){ getPath(){
var path = this.$route.path var path = this.$route.path
this.activeIndex = path.split("/")[2] this.activeIndex = path.split("/")[2]
} }
}, },
mounted() { mounted(){
this.userName = sessionStorage.getItem("name"); this.userName = sessionStorage.getItem("name");
this.userPass = sessionStorage.getItem("pass"); this.userPass = sessionStorage.getItem("pass");
this.userAvatar = require("@/assets/logo/user.jpg"); this.userAvatar = require("@/assets/logo/user.jpg");
this.getPath()
/* var userRank = sessionStorage.getItem("rank"); /* var userRank = sessionStorage.getItem("rank");
if (userRank == 1) { if (userRank == 1) {
this.rankIf = true; this.rankIf = true;
@ -142,8 +140,9 @@ export default {
this.rankIf = false; this.rankIf = false;
} */ } */
}, this.getPath();
},
} }

View File

@ -1,4 +1,5 @@
<template> <template>
<div class="loginWraper"> <div class="loginWraper">
<!-- v-bind:model的缩写 绑定登录表格 <!-- v-bind:model的缩写 绑定登录表格
表单验证规则 自己设定 表单验证规则 自己设定
@ -11,7 +12,7 @@
label-width="0px" label-width="0px"
class="login-container" class="login-container"
> >
<h3 class="title"></h3> <h3 class="title">登录</h3>
<el-form-item prop="adminName" class="a"> <el-form-item prop="adminName" class="a">
<el-input <el-input
type="text" type="text"
@ -72,29 +73,31 @@
> >
</el-form-item> </el-form-item>
</el-form> </el-form>
<div class="footer"><p>@ 1703050328 张启磊</p></div>
</div> </div>
</template> </template>
<script> <script>
import Cookies from "js-cookie"; import Cookies from "js-cookie";
export default { export default {
name: "Login", name: "Login",
data() { data(){
// //
return { return {
logining: false, logining: false,
loginForm: { loginForm:{
// //
adminName: "", adminName: "",
adminPass: "", adminPass: "",
captcha: "", captcha: "",
src: "http://localhost:8088/graduate_evaluate/createPicCode", //src: "http://localhost:8088/graduate_evaluate/createPicCode",
}, },
Rules: { Rules:{
// // :
adminName: [{ required: true, message: "请输入账号", trigger: "blur" }], adminName: [{ required: true, message: "请输入账号", trigger: "blur" }],
adminPass: [{ required: true, message: "请输入密码", trigger: "blur" }], adminPass: [{ required: true, message: "请输入密码", trigger: "blur" }],
captcha: [{ required: true, message: "请输入验证码", trigger: "blur" }], captcha: [{ required: true, message: "请输入验证码", trigger: "blur" }],
@ -102,16 +105,17 @@ export default {
}; };
}, },
methods: { methods:{
// //
login() { login(){
let adminInfo = { let adminInfo = {
picCode: this.loginForm.captcha, picCode: this.loginForm.captcha,
adminName: this.loginForm.adminName, adminName: this.loginForm.adminName,
adminPass: this.loginForm.adminPass, adminPass: this.loginForm.adminPass,
}; };
this.$api.login alert("登录请求正在开发中。。。");
/* this.$api.login
.login(adminInfo) .login(adminInfo)
.then((res) => { .then((res) => {
console.log(res); console.log(res);
@ -131,18 +135,22 @@ export default {
.catch(function (res) { .catch(function (res) {
alert(res); alert(res);
this.refreshCaptcha(); this.refreshCaptcha();
}); }); */
}, },
// //
refreshCaptcha: function () { refreshCaptcha:function(){
this.loginForm.src =
alert("验证码请求正在开发中。。。");
/* this.loginForm.src =
"http://localhost:8088/graduate_evaluate/createPicCode?t=" + "http://localhost:8088/graduate_evaluate/createPicCode?t=" +
new Date().getTime(); new Date().getTime(); */
}, },
// //
reset() { reset(){
this.$refs.loginForm.resetFields(); this.$refs.loginForm.resetFields();
}, },
@ -185,7 +193,7 @@ export default {
top: 0; top: 0;
bottom: 0; bottom: 0;
right: 0; right: 0;
background: url(../../assets/Pic/loginPic.jpg) no-repeat; /* background: url(../../assets/Pic/loginPic.jpg) no-repeat; */
background-size: cover; background-size: cover;
} }
.login-container .el-input { .login-container .el-input {
@ -209,4 +217,4 @@ export default {
border-color: #7890ee; border-color: #7890ee;
} }
</style> </style>

View File

@ -1,5 +1,5 @@
<template> <template>
<div id="mui-player" /> <div id="mui-player"/>
</template> </template>
<script> <script>
@ -27,10 +27,13 @@ export default {
} }
}, },
name: "Video", name: "Video",
data() {
data(){
return {} return {}
}, },
mounted() {
mounted(){
var mp = new MuiPlayer({ var mp = new MuiPlayer({
container: '#mui-player', container: '#mui-player',
title: this.title, title: this.title,
@ -42,12 +45,16 @@ export default {
}) })
] ]
}) })
// //
mp.on('volume-change', function(e) { mp.on('volume-change', function(e){
mp.video().volume = e.size; mp.video().volume = e.size;
}); });
}, },
methods: {}
methods:{}
} }
</script> </script>

View File

@ -7,15 +7,16 @@ import 'element-ui/lib/theme-chalk/index.css'
import Axios from "axios" import Axios from "axios"
import api from './utils/http/index' import api from './utils/http/index'
import mavonEditor from 'mavon-editor' import mavonEditor from 'mavon-editor'
import 'mavon-editor/dist/css/index.css' import 'mavon-editor/dist/css/index.css'
// 图标 // 图标
import "/src/assets/icon/iconfont.css" import "/src/assets/icon/iconfont.css"
/* // echarts // echarts
import * as echarts from 'echarts'; import * as echarts from 'echarts'
// 时间 // 时间
import moment from "moment"; */ import moment from "moment"
Vue.use(api) Vue.use(api)
@ -23,8 +24,8 @@ Vue.prototype.$axios = Axios
Vue.use(mavonEditor) Vue.use(mavonEditor)
/* Vue.prototype.$echarts = echarts Vue.prototype.$echarts = echarts
Vue.prototype.$moment = moment; */ Vue.prototype.$moment = moment;
Vue.config.productionTip = false Vue.config.productionTip = false

View File

@ -1,16 +1,15 @@
<template> <template>
<!-- 加载等待 -->
<div v-loading="contentLoading" element-loading-background="rgb(255, 255, 255)"> <div v-loading="contentLoading" element-loading-background="rgb(255, 255, 255)">
<div class="content-button" > <div class="content-button">
<el-button plain class="edit-button" @click="goToEdit">编辑</el-button> <el-button plain class="edit-button" @click="goToEdit">编辑</el-button>
</div> </div>
<div class="content" > <div class="content">
<div class="white"></div> <div class="white"></div>
<div class="card"> <div class="card">
<el-image :src="chat" class="flot-img"/>
<el-image :src="chat" class="flot-img"/>
<div class="card-content-left"> <div class="card-content-left">
<h3>交流互动</h3> <h3>交流互动</h3>
<div>dadasdadsad</div> <div>dadasdadsad</div>
@ -39,36 +38,41 @@
</div> </div>
</template> </template>
<script> <script>
import pageUtils from "@/utils/pageUtils"; import pageUtils from "@/utils/pageUtils";
import {Message} from "element-ui"; import { Message } from "element-ui";
export default { export default {
name: "Chat", name: "Chat",
data(){ data(){
return{ return{
chat:'/api/files/chat-img.png', chat: "/api/files/chat-img.png",
chat_link1:'/api/files/chat-icon.png', chat_link1: "/api/files/chat-icon.png",
chat_link2:'/api/files/chat-icon.png', chat_link2: "/api/files/chat-icon.png",
chat_link3:'/api/files/chat-icon.png', chat_link3: "/api/files/chat-icon.png",
contentLoading: true, contentLoading: true,
loadingBg:'#FFF' loadingBg: "#FFF",
} }
}, },
methods:{ methods:{
initPage(){ initPage(){
pageUtils.checkComp(this.$router,this.$route.params.compId,this.$api) pageUtils.checkComp(this.$router,this.$route.params.compId,this.$api);
this.$api.getPageData(this.$route.params.compId,'chat').then((res) => { this.$api.getPageData(this.$route.params.compId,'chat').then((res) => {
console.log(res) console.log(res);
// //
if (res.data.show) { if (res.data.show) {
this.chat_link1 = res.data.logoOne this.chat_link1 = res.data.logoOne;
this.chat_link2 = res.data.logoTwo this.chat_link2 = res.data.logoTwo;
this.chat_link3 = res.data.logoThree this.chat_link3 = res.data.logoThree;
this.chat = res.data.imgUrl this.chat = res.data.imgUrl;
this.contentLoading = false this.contentLoading = false;
}else { }else {
Message.warning("该页面不存在") Message.warning("该页面不存在");
this.$router.push({ this.$router.push({
path: '/404' path: '/404'
}); });
@ -76,44 +80,45 @@ export default {
}) })
}, },
goToEdit(){
// //
pageUtils.openPage(this.$router,"/" + this.$route.params.compId + "/chatEdit") goToEdit(){
pageUtils.openPage(this.$router,"/" + this.$route.params.compId + "/chatEdit");
} }
}, },
mounted() { mounted() {
this.initPage() this.initPage()
}, },
created() {
}
} }
</script> </script>
<style scoped>
.flot-img{
/*margin-top: -50px;*/
padding: 1vw;
position: relative;
float: left;
margin-top: -70px;
margin-left: 20px;
margin-bottom: 20px;
width:35vw;
height: auto;
box-shadow: inset 0 3px 8px rgba(219,227,255,.7)
} <style scoped>
.white { .white {
height: 66px; height: 66px;
} }
.flot-img {
position: relative;
float: left;
width:35vw;
height: auto;
margin-top: -70px;
margin-left: 20px;
margin-bottom: 20px;
padding: 1vw;
box-shadow: inset 0 3px 8px rgba(219,227,255,.7)
}
.chat-link { .chat-link {
display: flex; display: flex;
margin: 1vw auto; margin: 1vw auto;
align-items: center; align-items: center;
} }
.img-link { .img-link {
width: auto; width: auto;

View File

@ -1,7 +1,8 @@
<template> <template>
<div class="edit-content"> <div class="edit-content">
<el-breadcrumb class="breadcrumb" separator="/"> <el-breadcrumb class="breadcrumb" separator="/">
<el-breadcrumb-item :to="{ path: '/' + this.$route.params.compId +'/chat' }">交流互动</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' + this.$route.params.compId + '/chat' }">交流互动</el-breadcrumb-item>
<el-breadcrumb-item>编辑</el-breadcrumb-item> <el-breadcrumb-item>编辑</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<mavon-editor :ishljs="true" v-model="data" @change="change"/> <mavon-editor :ishljs="true" v-model="data" @change="change"/>
@ -10,37 +11,42 @@
<el-button>取消</el-button> <el-button>取消</el-button>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: "ChatEdit", name: "ChatEdit",
data(){ data(){
return{ return{
data: "", data: "",
html:"" html: "",
} }
}, },
methods:{ methods:{
change(value,render){ change(value,render){
this.html = render this.html = render;
}, },
submit(){ submit(){
console.log(this.data) console.log(this.data);
console.log(this.html) console.log(this.html);
} }
} }
} }
</script> </script>
<style src="@/assets/css/common.css" scoped>
</style>
<style> <style>
.button-group{ .button-group{
margin-top: 50px; margin-top: 50px;
} }
</style> </style>
<style src="@/assets/css/common.css" scoped/>

View File

@ -20,7 +20,22 @@
<script> <script>
export default { export default {
name: "ContactUs" name: "ContactUs",
data(){
return {
};
},
methods:{
},
mounted(){
},
} }
</script> </script>

View File

@ -1,16 +1,221 @@
<template> <template>
<div class="content"> <div class="content">
数据统计
<div class="chart-content">
<div class="statistics">
<div class="chart-card1">
<el-image :src="apply_total_img" class="total-img" />
<div class="chart-total">
<div class="total-num">{{ apply_total_num }}</div>
<el-divider></el-divider>
<div class="total-text">竞赛总报名数</div>
</div>
</div>
<div class="chart-card1">
<el-image :src="submit_total_img" class="total-img" />
<div class="chart-total">
<div class="total-num">{{ submit_total_num }}</div>
<el-divider></el-divider>
<div class="total-text">竞赛总作品提交数</div>
</div>
</div>
</div>
<div class="chart">
<div class="chart-card2">
<div class="chart-title">{{ chart_title }}</div>
<!-- 可视化界面 -->
<div>
<div
v-loading="loading"
element-loading-text="拼命生成中..."
element-loading-spinner="el-icon-loading"
element-loading-custom-class="loading_style"
empty-text="没有记录哦~"
id="main"
class="Echarts"
></div>
</div>
</div>
</div>
</div>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: "Chart" name: "Chart",
data(){
return {
apply_total_img: require("@/assets/logo/apply_total_img.png"),
apply_total_num: "",
submit_total_img: require("@/assets/logo/submit_total_img.png"),
submit_total_num: "",
chart_title: "",
};
},
methods:{
makeEcharts() {
//
setTimeout(() => {
var myChart = this.$echarts.init(document.getElementById("main"));
//
if (myChart != null && myChart != "" && myChart != undefined) {
myChart.dispose();
console.log("上一个面板已经清除,生成新面板");
}
myChart = this.$echarts.init(document.getElementById("main"));
var option = {
tooltip: {
trigger: "item",
},
legend: {
top: "5%",
left: "center",
},
series: [
{
name: "Access From",
type: "pie",
radius: ["40%", "70%"],
avoidLabelOverlap: false,
itemStyle: {
borderRadius: 10,
borderColor: "#fff",
borderWidth: 2,
},
label: {
show: false,
position: "center",
},
emphasis: {
label: {
show: true,
fontSize: "40",
fontWeight: "bold",
},
},
labelLine: {
show: false,
},
data: [
{ value: 1048, name: "Search Engine" },
{ value: 735, name: "Direct" },
{ value: 580, name: "Email" },
{ value: 484, name: "Union Ads" },
{ value: 300, name: "Video Ads" },
],
},
],
};
myChart.setOption(option);
this.loading = false;
}, 1000);
this.loading = true;
},
},
mounted(){
this.apply_total_num = 666;
this.submit_total_num = 777;
this.chart_title = "地方分赛区";
this.makeEcharts();
},
} }
</script> </script>
<style scoped> <style scoped>
.chart-content {
position: relative;
width: 66vw;
height: 24vw;
margin: 3vw;
}
.statistics {
position: absolute;
width: 22vw;
height: 100%;
}
.chart-card1 {
width: 22vw;
height: 12vw;
background-color: white;
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
margin-bottom: 2vw;
}
.total-img {
position: relative;
float: left;
width: 80px;
height: 80px;
margin: 3vw 1.5vw 0vw 3vw;
}
.chart-total {
padding-top: 3vw;
padding-right: 3vw;
text-align: left;
}
.total-num {
font-weight: 700;
font-size: 2.5rem;
line-height: 1.5em;
padding: auto;
}
.el-divider {
width: 50%;
height: 1px;
margin: auto 9.5vw;
}
.total-text {
font-size: 0.9rem;
}
.chart {
margin-left: 24vw;
height: 100%;
}
.chart-card2 {
width: 44vw;
height: 26vw;
background-color: white;
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.15);
}
.chart-title {
font-weight: 500;
font-size: 1rem;
line-height: 3rem;
border-bottom: 1px solid rgba(153, 153, 153, 0.4);
box-sizing: border-box;
}
.Echarts {
width: 40vw;
height: 20vw;
margin: 1.5vw auto;
}
</style> </style>
<style src="@/assets/css/common.css" scoped/> <style src="@/assets/css/common.css" scoped/>

View File

@ -19,14 +19,25 @@
<script> <script>
export default { export default {
name: "Guide", name: "Guide",
data(){ data(){
return{ return{
content:'赛事指南赛事指南赛事指南赛事指南赛事指南赛事指南', content:'赛事指南赛事指南赛事指南赛事指南赛事指南赛事指南',
} }
} },
methods:{
},
mounted() {
},
} }
</script> </script>
<style scoped> <style scoped>
</style> </style>

View File

@ -2,7 +2,7 @@
<div> <div>
<div class="content-button"> <div class="content-button">
<el-button plain>编辑</el-button> <el-button plain>编辑</el-button>
</div> </div>
<div class="content"> <div class="content">
@ -28,34 +28,40 @@
// import 'mavon-editor/dist/css/index.css' // import 'mavon-editor/dist/css/index.css'
import Video from "@/components/Video"; import Video from "@/components/Video";
import pageUtils from "@/utils/pageUtils"; import pageUtils from "@/utils/pageUtils";
export default { export default {
name: "Home", name: "Home",
components: {
Video components:{
Video,
}, },
data(){ data(){
return{ return{
data: "", data: "",
videoTitle:"标题", videoTitle: "标题",
videoSrc:"https://outin-396971199eed11e991a100163e1c7426.oss-cn-shanghai.aliyuncs.com/sv/34277901-180465b8b73/34277901-180465b8b73.mp4", videoSrc: "https://outin-396971199eed11e991a100163e1c7426.oss-cn-shanghai.aliyuncs.com/sv/34277901-180465b8b73/34277901-180465b8b73.mp4",
videoWidth: "100%", videoWidth: "100%",
content:'测试内容测试内容测试内容' content: "测试内容测试内容测试内容",
} }
}, },
methods:{ methods:{
checkComp(){ checkComp(){
pageUtils.checkComp( this.$router,this.$route.params.compId,this.$api );
pageUtils.checkComp(this.$router,this.$route.params.compId,this.$api)
} }
}, },
mounted() { mounted() {
this.checkComp() this.checkComp()
} }
} }
</script> </script>
<style scoped> <style scoped>
.video { .video {

View File

@ -1,4 +1,5 @@
<template> <template>
<div class="edit-content"> <div class="edit-content">
<el-breadcrumb class="breadcrumb" separator="/"> <el-breadcrumb class="breadcrumb" separator="/">
<el-breadcrumb-item :to="{ path: '/' + this.$route.params.compId + '/home' }">赛事首页</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' + this.$route.params.compId + '/home' }">赛事首页</el-breadcrumb-item>
@ -6,23 +7,28 @@
</el-breadcrumb> </el-breadcrumb>
<mavon-editor :ishljs="true" v-model="data" @save="save"/> <mavon-editor :ishljs="true" v-model="data" @save="save"/>
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: "HomeEdit", name: "HomeEdit",
data(){ data(){
return{ return{
data: "" data: "",
} }
}, },
methods:{ methods:{
save(value,render){ save(value,render){
// valuemarkdown // valuemarkdown
// renderhtml // renderhtml
console.log(value) console.log(value);
console.log(render) console.log(render);
} }
} }
} }
</script> </script>

View File

@ -41,7 +41,7 @@ export default {
data(){ data(){
return{ return{
noticeAll:[], noticeAll: [],
noticeId: "", noticeId: "",
noticeTop: "", noticeTop: "",
noticeMiddle: "", noticeMiddle: "",
@ -63,10 +63,14 @@ export default {
}, },
mounted() {
},
} }
</script> </script>
<style scoped> <style scoped>
.notice-content-top { .notice-content-top {
@ -74,6 +78,12 @@ export default {
text-align: left; text-align: left;
} }
.el-divider {
width: 95%;
height: 2px;
margin: 1vw auto;
}
.notice-content-bottom { .notice-content-bottom {
padding: 0vw 2vw 1vw; padding: 0vw 2vw 1vw;
text-align: right; text-align: right;

View File

@ -1,8 +1,6 @@
import { Message } from 'element-ui' import { Message } from 'element-ui'
// Header导航栏页面更改 // Header导航栏页面更改
function openPage(router, path){ function openPage(router, path){
router.push({ router.push({
path: path path: path
@ -10,7 +8,7 @@ function openPage(router, path){
} }
// 检测竞赛是否存在 // 检测竞赛是否存在
function checkComp(router,compId, http){ function checkComp(router,compId,http){
var compInfo = { var compInfo = {
compId compId
} }
@ -22,7 +20,7 @@ function checkComp(router,compId, http){
//正式上线 可以显示页面 //正式上线 可以显示页面
}else { }else {
// 未正式上线需要拦截等操作跳转404 // 未正式上线需要拦截等操作跳转404
Message.warning("该竞赛还未上线") Message.warning("该竞赛还未上线");
//TODO: 可添加判断是否为白名单用户进行测试工作 //TODO: 可添加判断是否为白名单用户进行测试工作
router.push({ router.push({
path: '/404' path: '/404'
@ -31,7 +29,7 @@ function checkComp(router,compId, http){
}else { }else {
// 不存在该竞赛 提示 并跳转404 // 不存在该竞赛 提示 并跳转404
Message.warning("不存在该竞赛") Message.warning("不存在该竞赛");
router.push({ router.push({
path: '/404' path: '/404'
}); });