add test account
This commit is contained in:
parent
ee127ca3a3
commit
9872f2d0f8
@ -3,8 +3,8 @@ import axios from 'axios'
|
||||
export const api = axios.create({
|
||||
// baseURL: 'https://beta.powerrain.cn/api/',
|
||||
// baseURL: 'https://coc.powerrain.cn/api/',
|
||||
baseURL: window.location.origin + '/api/',
|
||||
// baseURL: 'http://beta.lacus.site' + '/api/',
|
||||
// baseURL: window.location.origin + '/api/',
|
||||
baseURL: 'https://cherry.lacus.site' + '/api/',
|
||||
//baseURL: 'http://127.0.0.1:5000/api',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded',
|
||||
|
@ -33,4 +33,4 @@ export function manageSchedule(all_lesson) {
|
||||
}
|
||||
}
|
||||
return after_process
|
||||
}
|
||||
}
|
||||
|
646
src/lib/testInfo.js
Normal file
646
src/lib/testInfo.js
Normal file
@ -0,0 +1,646 @@
|
||||
export var test_info = {
|
||||
"grade": {
|
||||
"split": [{
|
||||
"term_GPA": 5.0,
|
||||
"term_credit": 25.5,
|
||||
"term_dead": 0,
|
||||
"term_grade": [{
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学生就业指导"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "形势与政策"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "Web程序设计"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "海量信息处理与云计算"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "嵌入式操作系统"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "嵌入式系统设计"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "数据挖掘技术"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "算法分析与设计"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "云计算与分布式系统"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "第二外语(日语)"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "专业方向应用实训科研训练"
|
||||
}],
|
||||
"term_kill": 11,
|
||||
"term_time": "20192"
|
||||
}, {
|
||||
"term_GPA": 5.0,
|
||||
"term_credit": 27.5,
|
||||
"term_dead": 0,
|
||||
"term_grade": [{
|
||||
"class": "正常",
|
||||
"credit": 6,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "毛泽东思想和中国特色社会主义理论体系概论"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "Internet技术与应用"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "并行计算"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "嵌入式系统原理"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "操作系统"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "计算机网络"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "计算机组成原理"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "计算科学与数值方法"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "操作系统综合实践课程设计"
|
||||
}],
|
||||
"term_kill": 9,
|
||||
"term_time": "20191"
|
||||
}, {
|
||||
"term_GPA": 5.0,
|
||||
"term_credit": 31.5,
|
||||
"term_dead": 0,
|
||||
"term_grade": [{
|
||||
"class": "正常",
|
||||
"credit": 4,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学外语"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "电工电子实习Ⅱ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "概率论与数理统计Ⅰ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "马克思主义基本原理"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "乒乓球"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 0.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "数学实验"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "中国古典诗歌的意境之美"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "信息系统开发实践课程设计"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "工程训练"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "工程制图与CAD"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "软件工程"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "数字逻辑"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "数据库原理与应用"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "汇编语言"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "数学建模"
|
||||
}],
|
||||
"term_kill": 15,
|
||||
"term_time": "20182"
|
||||
}, {
|
||||
"term_GPA": 5.0,
|
||||
"term_credit": 31.8,
|
||||
"term_dead": 0,
|
||||
"term_grade": [{
|
||||
"class": "正常",
|
||||
"credit": 4,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学外语"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 4,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学物理Ⅱ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "电工电子技术实验"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "乒乓球"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "线性代数"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "知识产权法"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "中国近现代史纲要"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 0.8,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学物理实验Ⅱ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 4,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "电工电子技术"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "离散数学"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "数据结构与算法"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "软件基础算法设计课程设计"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "C# 程序设计"
|
||||
}],
|
||||
"term_kill": 13,
|
||||
"term_time": "20181"
|
||||
}, {
|
||||
"term_GPA": 5.0,
|
||||
"term_credit": 36.3,
|
||||
"term_dead": 0,
|
||||
"term_grade": [{
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学体育"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 4,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学外语"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 4,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学物理Ⅱ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 0.8,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学物理实验Ⅱ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学语文"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 7,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "高等数学Ⅱ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "军事理论"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "面向对象程序设计课程设计"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "软件工程认识实习"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学生心理健康教育"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "宋崇导演教你拍摄微电影"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "微观经济学"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 4,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "离散数学"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "面向对象程序设计"
|
||||
}],
|
||||
"term_kill": 14,
|
||||
"term_time": "20172"
|
||||
}, {
|
||||
"term_GPA": 5.0,
|
||||
"term_credit": 22.5,
|
||||
"term_dead": 0,
|
||||
"term_grade": [{
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学生就业指导"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学体育"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "大学外语"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "高等数学Ⅱ"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 1,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "军事理论"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "军训"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "思想道德修养与法律基础"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 2,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "计算机导论"
|
||||
}, {
|
||||
"class": "正常",
|
||||
"credit": 3.5,
|
||||
"grade": 100,
|
||||
"kill": "yes",
|
||||
"title": "面向对象程序设计"
|
||||
}],
|
||||
"term_kill": 9,
|
||||
"term_time": "20171"
|
||||
}],
|
||||
"total": {
|
||||
"total_GPA": 5.0,
|
||||
"total_bixiu_GPA": 5.0,
|
||||
"total_credit": 175.1,
|
||||
"total_dead": 0,
|
||||
"total_kill": 71
|
||||
}
|
||||
},
|
||||
"schedule": {
|
||||
"cur_week": 22,
|
||||
"days_per_week": [0, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 5, 2, 2, 2, 0, 0, 0],
|
||||
"lesson": [
|
||||
[0, [{
|
||||
"Lesson": "嵌入式操作系统",
|
||||
"Room": "研608[理论]",
|
||||
"Teacher": "崔广才",
|
||||
"Time": "1-4周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
"color": 4
|
||||
}, {
|
||||
"Lesson": "嵌入式操作系统",
|
||||
"Room": "研608[理论]",
|
||||
"Teacher": "祝勇",
|
||||
"Time": "5-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 4
|
||||
}],
|
||||
[{
|
||||
"Lesson": "算法分析与设计",
|
||||
"Room": "研201阶[理论]",
|
||||
"Teacher": "何巍",
|
||||
"Time": "1-16周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 3
|
||||
}], 0, [{
|
||||
"Lesson": "Web程序设计",
|
||||
"Room": "研1201阶[理论]",
|
||||
"Teacher": "从立钢",
|
||||
"Time": "1-16周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 7
|
||||
}], 0
|
||||
],
|
||||
[
|
||||
[{
|
||||
"Lesson": "嵌入式系统设计",
|
||||
"Room": "研411[理论]",
|
||||
"Teacher": "祝勇",
|
||||
"Time": "1-16周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 8
|
||||
}],
|
||||
[{
|
||||
"Lesson": "数据挖掘技术",
|
||||
"Room": "研213[理论]",
|
||||
"Teacher": "田野",
|
||||
"Time": "1-16周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 0
|
||||
}],
|
||||
[{
|
||||
"Lesson": "云计算与分布式系统",
|
||||
"Room": "研401[理论]",
|
||||
"Teacher": "李松江",
|
||||
"Time": "1-16周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 6
|
||||
}],
|
||||
[{
|
||||
"Lesson": "专业方向应用实训科研训练",
|
||||
"Room": "研501[实践]",
|
||||
"Teacher": "祝勇",
|
||||
"Time": "14-19周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0, 0, 0],
|
||||
"color": 5
|
||||
}],
|
||||
[{
|
||||
"Lesson": "嵌入式系统设计",
|
||||
"Room": "南实训344[实验]",
|
||||
"Teacher": "祝勇",
|
||||
"Time": "9-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 8
|
||||
}], 0
|
||||
],
|
||||
[
|
||||
[{
|
||||
"Lesson": "海量信息处理与云计算",
|
||||
"Room": "研602[理论]",
|
||||
"Teacher": "王玲",
|
||||
"Time": "1-16周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 2
|
||||
}],
|
||||
[{
|
||||
"Lesson": "算法分析与设计",
|
||||
"Room": "研1213[实验]",
|
||||
"Teacher": "何巍,刘葳",
|
||||
"Time": "9-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 3
|
||||
}], 0, 0, [{
|
||||
"Lesson": "形势与政策",
|
||||
"Room": "研201阶[理论]",
|
||||
"Teacher": "刘俊峰",
|
||||
"Time": "4-7周",
|
||||
"Time_split": [0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
"color": 1
|
||||
}], 0
|
||||
],
|
||||
[0, [{
|
||||
"Lesson": "数据挖掘技术",
|
||||
"Room": "研1213[实验]",
|
||||
"Teacher": "田野,梁子刚",
|
||||
"Time": "9-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 7
|
||||
}],
|
||||
[{
|
||||
"Lesson": "Web程序设计",
|
||||
"Room": "研1213[实验]",
|
||||
"Teacher": "从立钢,梁子刚",
|
||||
"Time": "9-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 7
|
||||
}], 0, [{
|
||||
"Lesson": "嵌入式操作系统",
|
||||
"Room": "南实训344[实验]",
|
||||
"Teacher": "祝勇",
|
||||
"Time": "9-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 4
|
||||
}], 0
|
||||
],
|
||||
[
|
||||
[{
|
||||
"Lesson": "第二外语(日语)",
|
||||
"Room": "研213[理论]",
|
||||
"Teacher": "任丽",
|
||||
"Time": "1-16周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 5
|
||||
}],
|
||||
[{
|
||||
"Lesson": "云计算与分布式系统",
|
||||
"Room": "南实训413[实验]",
|
||||
"Teacher": "李松江,梁子刚",
|
||||
"Time": "9-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 6
|
||||
}],
|
||||
[{
|
||||
"Lesson": "海量信息处理与云计算",
|
||||
"Room": "南实训413[实验]",
|
||||
"Teacher": "王玲,梁子刚",
|
||||
"Time": "9-16周",
|
||||
"Time_split": [0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0],
|
||||
"color": 2
|
||||
}],
|
||||
[{
|
||||
"Lesson": "大学生就业指导",
|
||||
"Room": "研701阶[理论]",
|
||||
"Teacher": "孙吉",
|
||||
"Time": "1-8周",
|
||||
"Time_split": [0, 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0],
|
||||
"color": 7
|
||||
}], 0, 0
|
||||
],
|
||||
[0, 0, 0, 0, 0, 0],
|
||||
[0, 0, 0, 0, 0, 0]
|
||||
]
|
||||
},
|
||||
"student_id": "200523366",
|
||||
"student_name": "Cherry"
|
||||
}
|
@ -207,6 +207,13 @@ export default {
|
||||
},
|
||||
// 更新信息
|
||||
reflash() {
|
||||
if(this.user_info && this.user_info.cid == '2020') {
|
||||
this.$message({
|
||||
message: "信息刷新成功",
|
||||
type: "success"
|
||||
});
|
||||
return
|
||||
}
|
||||
// 未登录拦截
|
||||
if (!this.user_info || !this.user_info.pwd) {
|
||||
this.$router.push("/login");
|
||||
|
@ -47,6 +47,7 @@ import FooterSpace from "@/components/FooterSpace.vue";
|
||||
import { encryptMainCode } from "@/lib/aes.js";
|
||||
import { manageSchedule } from "@/lib/schedule.js";
|
||||
import { replaceState } from "@/lib/getStore.js";
|
||||
import { test_info } from "@/lib/testInfo.js";
|
||||
|
||||
export default {
|
||||
name: "login",
|
||||
@ -82,7 +83,14 @@ export default {
|
||||
|
||||
// 用户点击rushB
|
||||
submit() {
|
||||
if (this.cid && this.pwd) {
|
||||
if (this.cid == '2020') {
|
||||
let load = Loading.service({
|
||||
background: "rgba(236,245,255,.7)",
|
||||
target: document.querySelector(".login")
|
||||
});
|
||||
this.manageRes(test_info, load);
|
||||
}
|
||||
else if (this.cid && this.pwd) {
|
||||
// 两者信息都填写了
|
||||
let load = Loading.service({
|
||||
background: "rgba(236,245,255,.7)",
|
||||
|
@ -265,6 +265,7 @@ export default {
|
||||
this.getCurrentWeek();
|
||||
// 可能用户刷新了数据,所以activated还得使用,但是维持keepalive是想维持当前显示的周数
|
||||
this.show_week = lock ? this.current_week : this.show_week;
|
||||
if(this.user_info.cid == '2020') this.show_week = lock ? 1 : this.show_week;
|
||||
this.getDays();
|
||||
return;
|
||||
}
|
||||
@ -357,6 +358,13 @@ export default {
|
||||
|
||||
// 更新信息
|
||||
reflash() {
|
||||
if(this.user_info && this.user_info.cid == '2020') {
|
||||
this.$message({
|
||||
message: "信息刷新成功",
|
||||
type: "success"
|
||||
});
|
||||
return
|
||||
}
|
||||
// 未登录拦截
|
||||
if (!this.user_info || !this.user_info.pwd) {
|
||||
this.$router.push("/login");
|
||||
|
Loading…
x
Reference in New Issue
Block a user