This commit is contained in:
commit
12179a372e
|
@ -42,7 +42,7 @@
|
|||
}
|
||||
|
||||
.submit{
|
||||
width: 140px;
|
||||
width: 100px;
|
||||
height: 45px;
|
||||
font-size: 20px;
|
||||
background-image: linear-gradient(#d7fffa,#aee1e3);
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
padding-top: 10px;
|
||||
}
|
||||
#view_history_nav{
|
||||
border-bottom: 1px solid black;
|
||||
/* border-bottom: 1px solid black; */
|
||||
width: 935px;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
|
|
|
@ -109,7 +109,7 @@ function TeacherPage() {
|
|||
{isDetailedBoxVisible && <div id='detailed'>
|
||||
<p id='splitter'>试卷ID{testID}<span id='return' onClick={return_detailed}>X</span></p>
|
||||
<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>
|
||||
|
|
|
@ -121,10 +121,6 @@ function SendTest(){
|
|||
<ul className='SendTrain_body_left_ul'>
|
||||
<li>
|
||||
<button>基础题</button>
|
||||
<ul style={{all:'unset'}} className='left-list-ul'>
|
||||
<li>第一章</li>
|
||||
<li>第二章</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -157,10 +157,6 @@ function SendTrain(){
|
|||
<ul className='SendTrain_body_left_ul'>
|
||||
<li>
|
||||
<button onClick={clickQuestion}>基础题</button>
|
||||
<ul style={{all:'unset'}} className='left-list-ul'>
|
||||
<li>第一章</li>
|
||||
<li>第二章</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>
|
||||
<button onClick={clickTrain}>实训题</button>
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
.body-trainmanage p{
|
||||
font-size: 20px;
|
||||
position: absolute;
|
||||
left: 50px;
|
||||
|
||||
}
|
||||
.line{
|
||||
width: 250px;
|
||||
|
@ -78,7 +78,6 @@
|
|||
|
||||
|
||||
|
||||
|
||||
.sendtestpage{
|
||||
padding: 10px 30px;
|
||||
font-size: 20px;
|
||||
|
@ -101,3 +100,14 @@
|
|||
bottom: 100px;
|
||||
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(
|
||||
<div className='body-trainmanage'>
|
||||
<p>已批改的试卷</p>
|
||||
<p className='title'>已结束的实训</p>
|
||||
<div className='line'></div>
|
||||
{Data&&<div className='train-list-trainmanage'>
|
||||
<ul className="ul-trainmanage">
|
||||
{['111', '222', '333', '444'].map(num => (
|
||||
<li key={num}>
|
||||
<span>{num}</span>
|
||||
<p>关闭时间:{`2024-11-${num === '111' ? '11' : 'XX'}`}</p>
|
||||
</li>
|
||||
))}
|
||||
{Object.keys(Data).map((key)=>(
|
||||
<li key={key}>
|
||||
<span>实训ID:{Data[key][10]}</span>
|
||||
<h6 className='TrainTitle'>实训名称:{eval(Data[key][11])}</h6>
|
||||
<p>关闭时间:{Data[key][6]}</p>
|
||||
</li>
|
||||
))}
|
||||
</ul>
|
||||
<Link to='/teacher/trainmanage/TrainPods' className='ManagePods' >管理实训</Link>
|
||||
<Link to='/teacher/SendTrain' className='sendtestpage'>发布实训</Link>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import k8s_func
|
||||
studentList=['s20240101-67','s20240102-67']
|
||||
studentList=['s20240101-71','s20240102-71']
|
||||
|
||||
for i in studentList:
|
||||
k8s_func.delete_pod(i)
|
||||
|
|
|
@ -384,7 +384,8 @@ def submitScoreFunc(score,testID,suggestion):
|
|||
|
||||
def getTrainFunc(teacherID):
|
||||
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()
|
||||
return data
|
||||
|
||||
|
|
Loading…
Reference in New Issue