提交 390058a3 编写于 作者: a1695929110's avatar a1695929110

求助主页

此差异已折叠。
...@@ -79,6 +79,7 @@ import PageFormsDelete from '../views/PageFormsDelete.vue' ...@@ -79,6 +79,7 @@ import PageFormsDelete from '../views/PageFormsDelete.vue'
import PageFormsModify from '../views/PageFormsModify.vue' import PageFormsModify from '../views/PageFormsModify.vue'
import PageFormsSignup from '../views/PageFormsSignup.vue' import PageFormsSignup from '../views/PageFormsSignup.vue'
import PageTable from '../views/PageTable.vue' import PageTable from '../views/PageTable.vue'
import ManagePageTable from '../views/ManageView/ManagePageTable.vue'
//push //push
const VueRouterPush = VueRouter.prototype.push const VueRouterPush = VueRouter.prototype.push
VueRouter.prototype.push = function push(to) { VueRouter.prototype.push = function push(to) {
...@@ -110,6 +111,11 @@ const routes = [ ...@@ -110,6 +111,11 @@ const routes = [
name: 'Upload', name: 'Upload',
component: () => import('../views/Upload.vue') component: () => import('../views/Upload.vue')
}, },
{
path: '/ManagePageTable',
name: 'ManagePageTable',
component: () => import('../views/ManageView/ManagePageTable.vue')
},
{ {
path: '/PageTable', path: '/PageTable',
component: () => import('../views/PageTable.vue'), component: () => import('../views/PageTable.vue'),
......
...@@ -141,7 +141,7 @@ export default { ...@@ -141,7 +141,7 @@ export default {
// axios.post(url[, data[, config]]) // axios.post(url[, data[, config]])
this.$axios this.$axios
.post( .post(
"http://localhost:8085/backend/login", "http://124.220.174.249:8085/backend/login",
// data: JSON.stringify(this.userForm), // data: JSON.stringify(this.userForm),
{ {
teacherNo: this.userForm.teacherNo, teacherNo: this.userForm.teacherNo,
......
<template> <template>
<div style="width: 100%"> <div style="width: 100%">
<div>
<el-card>
<div class="icon_left">
校园信息通后台管理系统
</div>
<el-menu
:default-active="activeIndex"
class="el-menu-demo"
mode="horizontal"
@select="handleSelect"
>
<el-menu-item index="1">账号管理</el-menu-item>
<!-- <el-submenu index="2">
<template slot="title">招聘管理</template>
</el-submenu> -->
<el-menu-item index="2">竞赛管理</el-menu-item>
<el-menu-item index="3">竞赛管理</el-menu-item>
<el-menu-item index="4">求助管理</el-menu-item>
<el-menu-item index="5">退出</el-menu-item>
</el-menu>
</el-card>
</div>
<el-card style="margin-top: 15px"> <el-card style="margin-top: 15px">
<el-form <el-form
:inline="true" :inline="true"
...@@ -228,7 +250,7 @@ export default { ...@@ -228,7 +250,7 @@ export default {
} else { } else {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/searchCompetition", url: "http://124.220.174.249:8085/backend/teacher/searchCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
title: this.formInline.param1, //获取查询内容 title: this.formInline.param1, //获取查询内容
...@@ -262,7 +284,7 @@ export default { ...@@ -262,7 +284,7 @@ export default {
// this.$router.replace("/"); // this.$router.replace("/");
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/logout", url: "http://124.220.174.249:8085/backend/logout",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
}) })
.then((res) => { .then((res) => {
...@@ -317,7 +339,7 @@ export default { ...@@ -317,7 +339,7 @@ export default {
.then(() => { .then(() => {
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/teacher/deleteCompetition", url: "http://124.220.174.249:8085/backend/teacher/deleteCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
data: { data: {
competitionId: id, competitionId: id,
...@@ -368,7 +390,7 @@ export default { ...@@ -368,7 +390,7 @@ export default {
if (this.formInline.param1 == "") { if (this.formInline.param1 == "") {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showAllCompetitions", url: "http://124.220.174.249:8085/backend/teacher/showAllCompetitions",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号 teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号
...@@ -392,7 +414,7 @@ export default { ...@@ -392,7 +414,7 @@ export default {
} else { } else {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/searchCompetition", url: "http://124.220.174.249:8085/backend/teacher/searchCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
title: this.formInline.param1, //获取查询内容 title: this.formInline.param1, //获取查询内容
...@@ -421,7 +443,7 @@ export default { ...@@ -421,7 +443,7 @@ export default {
if (this.formInline.param1 == "") { if (this.formInline.param1 == "") {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showAllCompetitions", url: "http://124.220.174.249:8085/backend/teacher/showAllCompetitions",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
// teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号 // teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号
...@@ -446,7 +468,7 @@ export default { ...@@ -446,7 +468,7 @@ export default {
} else { } else {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/searchCompetition", url: "http://124.220.174.249:8085/backend/teacher/searchCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
title: this.formInline.param1, //获取查询内容 title: this.formInline.param1, //获取查询内容
...@@ -500,7 +522,7 @@ export default { ...@@ -500,7 +522,7 @@ export default {
// console.log("papa"); // console.log("papa");
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showAllCompetitions", url: "http://124.220.174.249:8085/backend/teacher/showAllCompetitions",
// Headers: { token: localStorage.getItem("token") }, // Headers: { token: localStorage.getItem("token") },
// headers: { // headers: {
// authorization: `Bearer ${localStorage.getItem("token")}`, // authorization: `Bearer ${localStorage.getItem("token")}`,
...@@ -546,4 +568,14 @@ export default { ...@@ -546,4 +568,14 @@ export default {
</script> </script>
<style scoped> <style scoped>
.el-menu-demo{
float:right;
}
.icon_left{
float: left;
font-size: 30px;
color: cornflowerblue;
font-weight: 700;
}
</style> </style>
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
getInformation() { getInformation() {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showComp", url: "http://124.220.174.249:8085/backend/teacher/showComp",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
competitionId: this.queryInfo.competeId, competitionId: this.queryInfo.competeId,
......
...@@ -218,7 +218,7 @@ export default { ...@@ -218,7 +218,7 @@ export default {
getDetail() { getDetail() {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showComp", url: "http://124.220.174.249:8085/backend/teacher/showComp",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
competitionId: this.queryInfo.competeId, competitionId: this.queryInfo.competeId,
......
...@@ -285,7 +285,7 @@ export default { ...@@ -285,7 +285,7 @@ export default {
getInformation() { getInformation() {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showComp", url: "http://124.220.174.249:8085/backend/teacher/showComp",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
competitionId: this.queryInfo.competeId, competitionId: this.queryInfo.competeId,
...@@ -376,7 +376,7 @@ export default { ...@@ -376,7 +376,7 @@ export default {
gamedate2.getSeconds(); gamedate2.getSeconds();
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/teacher/changeCompetition", url: "http://124.220.174.249:8085/backend/teacher/changeCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
data: { data: {
competitionId: this.queryInfo.competeId, competitionId: this.queryInfo.competeId,
......
...@@ -337,7 +337,7 @@ export default { ...@@ -337,7 +337,7 @@ export default {
// ) // )
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/teacher/addCompetition", url: "http://124.220.174.249:8085/backend/teacher/addCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
data: { data: {
title: this.ruleForm.title, title: this.ruleForm.title,
......
...@@ -228,7 +228,7 @@ export default { ...@@ -228,7 +228,7 @@ export default {
} else { } else {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/searchCompetition", url: "http://124.220.174.249:8085/backend/teacher/searchCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
title: this.formInline.param1, //获取查询内容 title: this.formInline.param1, //获取查询内容
...@@ -262,7 +262,7 @@ export default { ...@@ -262,7 +262,7 @@ export default {
// this.$router.replace("/"); // this.$router.replace("/");
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/logout", url: "http://124.220.174.249:8085/backend/logout",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
}) })
.then((res) => { .then((res) => {
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
.then(() => { .then(() => {
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/teacher/deleteCompetition", url: "http://124.220.174.249:8085/backend/teacher/deleteCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
data: { data: {
competitionId: id, competitionId: id,
...@@ -368,7 +368,7 @@ export default { ...@@ -368,7 +368,7 @@ export default {
if (this.formInline.param1 == "") { if (this.formInline.param1 == "") {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showAllCompetitions", url: "http://124.220.174.249:8085/backend/teacher/showAllCompetitions",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号 teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号
...@@ -392,7 +392,7 @@ export default { ...@@ -392,7 +392,7 @@ export default {
} else { } else {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/searchCompetition", url: "http://124.220.174.249:8085/backend/teacher/searchCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
title: this.formInline.param1, //获取查询内容 title: this.formInline.param1, //获取查询内容
...@@ -421,7 +421,7 @@ export default { ...@@ -421,7 +421,7 @@ export default {
if (this.formInline.param1 == "") { if (this.formInline.param1 == "") {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showAllCompetitions", url: "http://124.220.174.249:8085/backend/teacher/showAllCompetitions",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
// teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号 // teacherNo: localStorage.getItem("userId").replace(/\"/g, ""), //去掉双引号
...@@ -446,7 +446,7 @@ export default { ...@@ -446,7 +446,7 @@ export default {
} else { } else {
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/searchCompetition", url: "http://124.220.174.249:8085/backend/teacher/searchCompetition",
headers: { token: localStorage.token }, headers: { token: localStorage.token },
params: { params: {
title: this.formInline.param1, //获取查询内容 title: this.formInline.param1, //获取查询内容
...@@ -500,7 +500,7 @@ export default { ...@@ -500,7 +500,7 @@ export default {
// console.log("papa"); // console.log("papa");
this.$axios({ this.$axios({
method: "get", method: "get",
url: "http://47.113.195.148:8085/backend/teacher/showAllCompetitions", url: "http://124.220.174.249:8085/backend/teacher/showAllCompetitions",
// Headers: { token: localStorage.getItem("token") }, // Headers: { token: localStorage.getItem("token") },
// headers: { // headers: {
// authorization: `Bearer ${localStorage.getItem("token")}`, // authorization: `Bearer ${localStorage.getItem("token")}`,
......
...@@ -338,7 +338,7 @@ export default { ...@@ -338,7 +338,7 @@ export default {
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/forget/sendEmail", url: "http://124.220.174.249:8085/backend/forget/sendEmail",
// headers: { // headers: {
// "Content-Type": "multipart/form-data", // "Content-Type": "multipart/form-data",
// }, // },
...@@ -390,7 +390,7 @@ export default { ...@@ -390,7 +390,7 @@ export default {
console.log("suresuresure"); console.log("suresuresure");
this.$axios({ this.$axios({
method: "post", method: "post",
url: "http://47.113.195.148:8085/backend/forget", url: "http://124.220.174.249:8085/backend/forget",
data: { data: {
userNo: this.user.username, userNo: this.user.username,
password: this.user.password, password: this.user.password,
......
...@@ -20,7 +20,7 @@ ...@@ -20,7 +20,7 @@
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div> <div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
<div class="el-upload__tip" slot="tip"> <div class="el-upload__tip" slot="tip">
文件大小不超过50MB 文件大小不超过20MB
</div> </div>
</el-upload> </el-upload>
</span> </span>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册