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