Merge branch 'master' of https://gitea.xn--7p0a.site/2312072104/dm
This commit is contained in:
commit
1100eb7821
|
@ -16,9 +16,18 @@
|
|||
align-items: center; /* 垂直居中 */
|
||||
}
|
||||
.appendBox{
|
||||
width: 1200px;
|
||||
width: 1400px;
|
||||
height: 300px;
|
||||
background-color: aqua;
|
||||
border: 1ch solid #aee1e3;
|
||||
margin-top: 25px;
|
||||
}
|
||||
.appendBox p{
|
||||
all: unset;
|
||||
position: absolute;
|
||||
width: 1400px;
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
background-color: #aee1e3;
|
||||
}
|
||||
.select-box2{
|
||||
font-size: 18px;
|
||||
|
@ -86,5 +95,36 @@
|
|||
box-shadow:
|
||||
inset 0 0 0 2px #aee1e3, /* 外边框颜色 */
|
||||
inset 0 0 0 6px #aee1e3;
|
||||
margin-top: 80px;
|
||||
}
|
||||
.appendbtn{
|
||||
width:80px;
|
||||
height: 40px;
|
||||
background-color: #aee1e3;
|
||||
border: none;
|
||||
margin-left: 1110px;
|
||||
margin-top: 150px;
|
||||
}
|
||||
.appenddel{
|
||||
width:80px;
|
||||
height: 40px;
|
||||
background-color: #aee1e3;
|
||||
border: none;
|
||||
margin-left: 25px;
|
||||
margin-top: 150px;
|
||||
}
|
||||
.appendbtn{
|
||||
width:80px;
|
||||
height: 40px;
|
||||
background-color: #aee1e3;
|
||||
border: none;
|
||||
margin-left: 1110px;
|
||||
margin-top: 150px;
|
||||
}
|
||||
.appenddel{
|
||||
width:80px;
|
||||
height: 40px;
|
||||
background-color: #aee1e3;
|
||||
border: none;
|
||||
margin-left: 25px;
|
||||
margin-top: 150px;
|
||||
}
|
|
@ -248,46 +248,47 @@ function Questionmange(){
|
|||
</div>}
|
||||
</div>
|
||||
{append&&<div className='appendBox'>
|
||||
<span>请选择题目类型</span>
|
||||
<select onChange={appendClick1}>
|
||||
<p><span style={{marginLeft:'40px',marginTop:'10px',fontSize:'17px'}}>请选择题目类型</span>
|
||||
<select onChange={appendClick1} style={{fontSize:'17px'}}>
|
||||
<option value="选择题">选择题</option>
|
||||
<option value='填空题'>填空题</option>
|
||||
<option value='判断题'>判断题</option>
|
||||
</select>
|
||||
<span>
|
||||
<span>请选择填入章节</span>
|
||||
<select onChange={appendClick2}>
|
||||
<span style={{marginLeft:'30px',fontSize:'17px'}}>请选择填入章节</span>
|
||||
<select onChange={appendClick2} style={{fontSize:'17px'}}>
|
||||
<option value="第一章">第一章</option>
|
||||
<option value='第二章'>第二章</option>
|
||||
</select>
|
||||
</span>
|
||||
{Newtype==='选择题'&&<table>
|
||||
</p>
|
||||
{Newtype==='选择题'&&<table style={{marginTop:'60px'}}>
|
||||
<tr>
|
||||
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入选择题题目'/></td>
|
||||
<td><input type="text" value={A} onChange={handleInputA} placeholder='请填入A选项'/></td>
|
||||
<td><input type="text" value={B} onChange={handleInputB} placeholder='请填入B选项'/></td>
|
||||
<td><input type="text" value={C} onChange={handleInputC} placeholder='请填入C选项'/></td>
|
||||
<td><input type="text" value={D} onChange={handleInputD} placeholder='请填入D选项'/></td>
|
||||
<td><input type="text" value={correct} onChange={handleInputTrue} placeholder='请填入正确答案'/></td>
|
||||
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入选择题题目' style={{marginLeft:'25px',fontSize:'16px'}}/></td>
|
||||
<td><input type="text" value={A} onChange={handleInputA} placeholder='请填入A选项' style={{marginLeft:'20px',fontSize:'16px'}}/></td>
|
||||
<td><input type="text" value={B} onChange={handleInputB} placeholder='请填入B选项' style={{marginLeft:'20px',fontSize:'16px'}}/></td>
|
||||
<td><input type="text" value={C} onChange={handleInputC} placeholder='请填入C选项' style={{marginLeft:'20px',fontSize:'16px'}}/></td>
|
||||
<td><input type="text" value={D} onChange={handleInputD} placeholder='请填入D选项' style={{marginLeft:'20px',fontSize:'16px'}}/></td>
|
||||
<td><input type="text" value={correct} onChange={handleInputTrue} placeholder='请填入正确答案' style={{marginLeft:'20px',fontSize:'16px'}}/></td>
|
||||
</tr>
|
||||
</table>}
|
||||
{Newtype==='填空题'&&<table>
|
||||
{Newtype==='填空题'&&<table style={{marginTop:'60px'}}>
|
||||
<tr>
|
||||
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入填空题目'/></td>
|
||||
<td><input type="text" value={correct} onChange={handleInputTrue} placeholder='请填入正确答案'/></td>
|
||||
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入填空题目' style={{marginLeft:'100px'}}/></td>
|
||||
<td><input type="text" value={correct} onChange={handleInputTrue} placeholder='请填入正确答案' style={{marginLeft:'20px'}}/></td>
|
||||
</tr>
|
||||
</table>}
|
||||
{Newtype==='判断题'&&<table>
|
||||
{Newtype==='判断题'&&<table style={{marginTop:'60px'}}>
|
||||
<tr>
|
||||
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入判断题题目'/></td>
|
||||
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入判断题题目' style={{marginLeft:'100px'}}/></td>
|
||||
<tr>
|
||||
<label><input type="radio" name={`Judge`} onChange={handleRadioChange} value={true} />True</label>
|
||||
<label><input type="radio" name={`Judge`} onChange={handleRadioChange} value={false} />False</label>
|
||||
<label><input type="radio" name={`Judge`} onChange={handleRadioChange} value={true} style={{marginLeft:'20px'}}/>True</label>
|
||||
<label><input type="radio" name={`Judge`} onChange={handleRadioChange} value={false} style={{marginLeft:'20px'}} />False</label>
|
||||
</tr>
|
||||
</tr>
|
||||
</table>}
|
||||
<button onClick={appendQuestion}>添加</button>
|
||||
<button onClick={cancellation2}>取消</button>
|
||||
<button onClick={appendQuestion} className='appendbtn'>添加</button>
|
||||
<button onClick={cancellation2} className='appenddel'>取消</button>
|
||||
</div>}
|
||||
</div>
|
||||
)
|
||||
|
|
|
@ -216,10 +216,6 @@ def detaileddata():
|
|||
ClassID=data['selectedValue']
|
||||
testID=data['testID']
|
||||
return jsonify({'data':detailed_class(testID,ClassID)})
|
||||
|
||||
@app.route('/api/teacher/', methods=['POST'])
|
||||
def find_test():
|
||||
return
|
||||
@app.route('/api/teacher/find_student', methods=['POST'])
|
||||
def find_student(): # 获取班级学生的具体信息
|
||||
student_list = []
|
||||
|
|
Loading…
Reference in New Issue