This commit is contained in:
parent
592adf7cf2
commit
1fca0bad6b
|
@ -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>
|
||||
|
|
|
@ -84,7 +84,6 @@ function SubjectPage(){
|
|||
})}
|
||||
</div>}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
)};
|
||||
|
||||
|
|
Loading…
Reference in New Issue