2123
This commit is contained in:
parent
bf21e6035c
commit
037d6a5f28
|
@ -10,9 +10,18 @@
|
||||||
background-color: #f7f8fa;
|
background-color: #f7f8fa;
|
||||||
}
|
}
|
||||||
.appendBox{
|
.appendBox{
|
||||||
width: 1200px;
|
width: 1400px;
|
||||||
height: 300px;
|
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{
|
.select-box2{
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
|
@ -69,3 +78,19 @@
|
||||||
inset 0 0 0 2px #aee1e3, /* 外边框颜色 */
|
inset 0 0 0 2px #aee1e3, /* 外边框颜色 */
|
||||||
inset 0 0 0 6px #aee1e3;
|
inset 0 0 0 6px #aee1e3;
|
||||||
}
|
}
|
||||||
|
.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;
|
||||||
|
}
|
|
@ -188,7 +188,7 @@ function Questionmange(){
|
||||||
{type==='选择题'&&data&&<table>
|
{type==='选择题'&&data&&<table>
|
||||||
<div className='link-box'>
|
<div className='link-box'>
|
||||||
<tr className='title-link1'>
|
<tr className='title-link1'>
|
||||||
<th>题目ID</th><th>题目</th><th>选项A</th><th>选项B</th><th>选项C</th><th>选项D</th><th>正确选项</th>{isTrue&&<th style={{color:'red'}}>选择要删除的题目</th>}
|
<th>题目ID</th><th>题目</th><th>选项A</th><th>选项B</th><th>选项C</th><th>选项D</th><th>正确答案</th>{isTrue&&<th style={{color:'red'}}>选择要删除的题目</th>}
|
||||||
</tr>
|
</tr>
|
||||||
{Object.keys(data).map((key)=>(
|
{Object.keys(data).map((key)=>(
|
||||||
<tr key={key} className='question-box'>
|
<tr key={key} className='question-box'>
|
||||||
|
@ -239,46 +239,47 @@ function Questionmange(){
|
||||||
{isTrue&&<button onClick={cancellation1}>取消</button>}
|
{isTrue&&<button onClick={cancellation1}>取消</button>}
|
||||||
</div>}
|
</div>}
|
||||||
{append&&<div className='appendBox'>
|
{append&&<div className='appendBox'>
|
||||||
<span>请选择题目类型</span>
|
<p><span style={{marginLeft:'40px',marginTop:'10px',fontSize:'17px'}}>请选择题目类型</span>
|
||||||
<select onChange={appendClick1}>
|
<select onChange={appendClick1} style={{fontSize:'17px'}}>
|
||||||
<option value="选择题">选择题</option>
|
<option value="选择题">选择题</option>
|
||||||
<option value='填空题'>填空题</option>
|
<option value='填空题'>填空题</option>
|
||||||
<option value='判断题'>判断题</option>
|
<option value='判断题'>判断题</option>
|
||||||
</select>
|
</select>
|
||||||
<span>
|
<span>
|
||||||
<span>请选择填入章节</span>
|
<span style={{marginLeft:'30px',fontSize:'17px'}}>请选择填入章节</span>
|
||||||
<select onChange={appendClick2}>
|
<select onChange={appendClick2} style={{fontSize:'17px'}}>
|
||||||
<option value="第一章">第一章</option>
|
<option value="第一章">第一章</option>
|
||||||
<option value='第二章'>第二章</option>
|
<option value='第二章'>第二章</option>
|
||||||
</select>
|
</select>
|
||||||
</span>
|
</span>
|
||||||
{Newtype==='选择题'&&<table>
|
</p>
|
||||||
|
{Newtype==='选择题'&&<table style={{marginTop:'60px'}}>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="text" value={inputValue} onChange={handleInputChange} 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选项'/></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选项'/></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选项'/></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选项'/></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='请填入正确答案'/></td>
|
<td><input type="text" value={correct} onChange={handleInputTrue} placeholder='请填入正确答案' style={{marginLeft:'20px',fontSize:'16px'}}/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>}
|
</table>}
|
||||||
{Newtype==='填空题'&&<table>
|
{Newtype==='填空题'&&<table style={{marginTop:'60px'}}>
|
||||||
<tr>
|
<tr>
|
||||||
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入填空题目'/></td>
|
<td><input type="text" value={inputValue} onChange={handleInputChange} placeholder='请填入填空题目' style={{marginLeft:'100px'}}/></td>
|
||||||
<td><input type="text" value={correct} onChange={handleInputTrue} placeholder='请填入正确答案'/></td>
|
<td><input type="text" value={correct} onChange={handleInputTrue} placeholder='请填入正确答案' style={{marginLeft:'20px'}}/></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>}
|
</table>}
|
||||||
{Newtype==='判断题'&&<table>
|
{Newtype==='判断题'&&<table style={{marginTop:'60px'}}>
|
||||||
<tr>
|
<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>
|
<tr>
|
||||||
<label><input type="radio" name={`Judge`} onChange={handleRadioChange} value={true} />True</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} />False</label>
|
<label><input type="radio" name={`Judge`} onChange={handleRadioChange} value={false} style={{marginLeft:'20px'}} />False</label>
|
||||||
</tr>
|
</tr>
|
||||||
</tr>
|
</tr>
|
||||||
</table>}
|
</table>}
|
||||||
<button onClick={appendQuestion}>添加</button>
|
<button onClick={appendQuestion} className='appendbtn'>添加</button>
|
||||||
<button onClick={cancellation2}>取消</button>
|
<button onClick={cancellation2} className='appenddel'>取消</button>
|
||||||
</div>}
|
</div>}
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
|
|
|
@ -216,10 +216,6 @@ def detaileddata():
|
||||||
ClassID=data['selectedValue']
|
ClassID=data['selectedValue']
|
||||||
testID=data['testID']
|
testID=data['testID']
|
||||||
return jsonify({'data':detailed_class(testID,ClassID)})
|
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'])
|
@app.route('/api/teacher/find_student', methods=['POST'])
|
||||||
def find_student(): # 获取班级学生的具体信息
|
def find_student(): # 获取班级学生的具体信息
|
||||||
student_list = []
|
student_list = []
|
||||||
|
|
Loading…
Reference in New Issue