This commit is contained in:
parent
95f3590150
commit
b48094d3d0
|
@ -77,7 +77,7 @@ function Marking(){
|
||||||
<img src={Test} alt="" width='35px' height='35px'/>
|
<img src={Test} alt="" width='35px' height='35px'/>
|
||||||
<div>
|
<div>
|
||||||
<div className='p-mark'>
|
<div className='p-mark'>
|
||||||
<span>实训{MarkData[key][0][10]}:{eval(MarkData[key][0][11])}</span>
|
<span>实训{MarkData[key][0][10]}:{eval(MarkData[key][0][11])}</span>
|
||||||
<p>{MarkData[key][0][6]}</p>
|
<p>{MarkData[key][0][6]}</p>
|
||||||
</div>
|
</div>
|
||||||
<div id='TF'>{MarkData[key][0][6]>currentTime? ' ':'未开始'}</div>
|
<div id='TF'>{MarkData[key][0][6]>currentTime? ' ':'未开始'}</div>
|
||||||
|
|
|
@ -84,8 +84,6 @@ def login():
|
||||||
|
|
||||||
@app.route('/api/logout', methods=['POST']) # 退出登录功能
|
@app.route('/api/logout', methods=['POST']) # 退出登录功能
|
||||||
def logout(): # 退出登录
|
def logout(): # 退出登录
|
||||||
ID = session['id']
|
|
||||||
print(ID)
|
|
||||||
session.pop('id', None) # 删除id
|
session.pop('id', None) # 删除id
|
||||||
return jsonify({'result': '注销成功'})
|
return jsonify({'result': '注销成功'})
|
||||||
|
|
||||||
|
@ -105,12 +103,12 @@ def register():
|
||||||
return jsonify({'result': '注册成功'})
|
return jsonify({'result': '注册成功'})
|
||||||
|
|
||||||
|
|
||||||
@app.route('/api/student/get_lesson', methods=['GET'])
|
# @app.route('/api/student/get_lesson', methods=['GET'])
|
||||||
def get_lesson(): # 获取课程
|
# def get_lesson(): # 获取课程
|
||||||
student_id = session.get('id')
|
# student_id = session.get('id')
|
||||||
student_lesson = get_lesson_func(student_id)
|
# student_lesson = get_lesson_func(student_id)
|
||||||
print(student_lesson)
|
# print(student_lesson)
|
||||||
return jsonify({"student_lesson": student_lesson})
|
# return jsonify({"student_lesson": student_lesson})
|
||||||
|
|
||||||
|
|
||||||
# 学生获取试卷
|
# 学生获取试卷
|
||||||
|
|
Loading…
Reference in New Issue