This commit is contained in:
nopy 2024-06-29 16:36:28 +08:00
commit 2b499c9347
2 changed files with 14 additions and 2 deletions

View File

@ -78,14 +78,23 @@ function SendTrain(){
teacher_ID
})
alert('发布成功')
window.location.href='http://localhost:3000/teacher/trainmanage'
}catch{
alert('SendTrainTest出错')
}
}
const SendTrainBtn=()=>{
if(selectedItems.length>0 && (HourValue || MinValue)&&StopTime){
if(Train.length>0){
SendTrainTest()
}else{
alert('未选择实训内容')
SetTrainquestion(null)
setisTrain(true)
}
}else{
alert('发布信息未完全')
}
@ -294,6 +303,10 @@ function SendTrain(){
<option value={num} key={num}>{num}</option>
))}
</select>小时
<button onClick={()=>{
console.log(selectedItems);
console.log(Train);
}}>asd</button>
<select name="" id="" alue={MinValue} onChange={getminvalue}>
{min_list.map((num)=>(
<option value={num} key={num}>{num}</option>

View File

@ -84,7 +84,6 @@ function SubjectPage(){
})}
</div>}
</div>
</div>
)};