This commit is contained in:
commit
12179a372e
|
@ -42,7 +42,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.submit{
|
.submit{
|
||||||
width: 140px;
|
width: 100px;
|
||||||
height: 45px;
|
height: 45px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
background-image: linear-gradient(#d7fffa,#aee1e3);
|
background-image: linear-gradient(#d7fffa,#aee1e3);
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
padding-top: 10px;
|
padding-top: 10px;
|
||||||
}
|
}
|
||||||
#view_history_nav{
|
#view_history_nav{
|
||||||
border-bottom: 1px solid black;
|
/* border-bottom: 1px solid black; */
|
||||||
width: 935px;
|
width: 935px;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
|
@ -109,7 +109,7 @@ function TeacherPage() {
|
||||||
{isDetailedBoxVisible && <div id='detailed'>
|
{isDetailedBoxVisible && <div id='detailed'>
|
||||||
<p id='splitter'>试卷ID{testID}<span id='return' onClick={return_detailed}>X</span></p>
|
<p id='splitter'>试卷ID{testID}<span id='return' onClick={return_detailed}>X</span></p>
|
||||||
<p style={{display:'flex'}}>
|
<p style={{display:'flex'}}>
|
||||||
<span style={{ flex: 1}}>详情</span>
|
<span style={{ flex: 1}}>姓名</span>
|
||||||
<span style={{ flex: 1}}>分数</span>
|
<span style={{ flex: 1}}>分数</span>
|
||||||
<span style={{ flex: 1}}>与上次相比</span>
|
<span style={{ flex: 1}}>与上次相比</span>
|
||||||
<span style={{ flex: 1}}>总评</span>
|
<span style={{ flex: 1}}>总评</span>
|
||||||
|
|
|
@ -119,12 +119,8 @@ function SendTest(){
|
||||||
<div className='SendTrain_body_left'>
|
<div className='SendTrain_body_left'>
|
||||||
<h3>题目集</h3>
|
<h3>题目集</h3>
|
||||||
<ul className='SendTrain_body_left_ul'>
|
<ul className='SendTrain_body_left_ul'>
|
||||||
<li>
|
<li>
|
||||||
<button>基础题</button>
|
<button>基础题</button>
|
||||||
<ul style={{all:'unset'}} className='left-list-ul'>
|
|
||||||
<li>第一章</li>
|
|
||||||
<li>第二章</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -157,10 +157,6 @@ function SendTrain(){
|
||||||
<ul className='SendTrain_body_left_ul'>
|
<ul className='SendTrain_body_left_ul'>
|
||||||
<li>
|
<li>
|
||||||
<button onClick={clickQuestion}>基础题</button>
|
<button onClick={clickQuestion}>基础题</button>
|
||||||
<ul style={{all:'unset'}} className='left-list-ul'>
|
|
||||||
<li>第一章</li>
|
|
||||||
<li>第二章</li>
|
|
||||||
</ul>
|
|
||||||
</li>
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<button onClick={clickTrain}>实训题</button>
|
<button onClick={clickTrain}>实训题</button>
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
.body-trainmanage p{
|
.body-trainmanage p{
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 50px;
|
|
||||||
}
|
}
|
||||||
.line{
|
.line{
|
||||||
width: 250px;
|
width: 250px;
|
||||||
|
@ -78,7 +78,6 @@
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
.sendtestpage{
|
.sendtestpage{
|
||||||
padding: 10px 30px;
|
padding: 10px 30px;
|
||||||
font-size: 20px;
|
font-size: 20px;
|
||||||
|
@ -100,4 +99,15 @@
|
||||||
right: 220px;
|
right: 220px;
|
||||||
bottom: 100px;
|
bottom: 100px;
|
||||||
background-color: rgb(186, 237, 237);
|
background-color: rgb(186, 237, 237);
|
||||||
|
}
|
||||||
|
|
||||||
|
.title{
|
||||||
|
margin-left: 55px;
|
||||||
|
}
|
||||||
|
.TrainTitle{
|
||||||
|
all: unset;
|
||||||
|
position: absolute;
|
||||||
|
margin-top: 40px;
|
||||||
|
font-size: 14px;
|
||||||
|
margin-left: 52px;
|
||||||
}
|
}
|
|
@ -25,16 +25,17 @@ function TrainManage(){
|
||||||
},[])
|
},[])
|
||||||
return(
|
return(
|
||||||
<div className='body-trainmanage'>
|
<div className='body-trainmanage'>
|
||||||
<p>已批改的试卷</p>
|
<p className='title'>已结束的实训</p>
|
||||||
<div className='line'></div>
|
<div className='line'></div>
|
||||||
{Data&&<div className='train-list-trainmanage'>
|
{Data&&<div className='train-list-trainmanage'>
|
||||||
<ul className="ul-trainmanage">
|
<ul className="ul-trainmanage">
|
||||||
{['111', '222', '333', '444'].map(num => (
|
{Object.keys(Data).map((key)=>(
|
||||||
<li key={num}>
|
<li key={key}>
|
||||||
<span>{num}</span>
|
<span>实训ID:{Data[key][10]}</span>
|
||||||
<p>关闭时间:{`2024-11-${num === '111' ? '11' : 'XX'}`}</p>
|
<h6 className='TrainTitle'>实训名称:{eval(Data[key][11])}</h6>
|
||||||
</li>
|
<p>关闭时间:{Data[key][6]}</p>
|
||||||
))}
|
</li>
|
||||||
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
<Link to='/teacher/trainmanage/TrainPods' className='ManagePods' >管理实训</Link>
|
<Link to='/teacher/trainmanage/TrainPods' className='ManagePods' >管理实训</Link>
|
||||||
<Link to='/teacher/SendTrain' className='sendtestpage'>发布实训</Link>
|
<Link to='/teacher/SendTrain' className='sendtestpage'>发布实训</Link>
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import k8s_func
|
import k8s_func
|
||||||
studentList=['s20240101-67','s20240102-67']
|
studentList=['s20240101-71','s20240102-71']
|
||||||
|
|
||||||
for i in studentList:
|
for i in studentList:
|
||||||
k8s_func.delete_pod(i)
|
k8s_func.delete_pod(i)
|
||||||
|
|
|
@ -384,7 +384,8 @@ def submitScoreFunc(score,testID,suggestion):
|
||||||
|
|
||||||
def getTrainFunc(teacherID):
|
def getTrainFunc(teacherID):
|
||||||
cursor = db.cursor()
|
cursor = db.cursor()
|
||||||
cursor.execute(f'SELECT * FROM TRAINTEST WHERE TEACHER_ID=?',(teacherID))
|
current_time = datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
|
||||||
|
cursor.execute(f'SELECT * FROM TRAINTEST WHERE TEACHER_ID=? AND STOPTIME<?',(teacherID,current_time))
|
||||||
data = cursor.fetchall()
|
data = cursor.fetchall()
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue