This commit is contained in:
nopy 2024-07-07 16:22:38 +08:00
parent da7c3f5372
commit 8d29d0eb44
2 changed files with 32 additions and 37 deletions

View File

@ -8,30 +8,23 @@
float: right;
background-color: #f7f8fa;
}
.link-box{
margin-top: 30px;
}
.title-link{
position: absolute;
top: 30px;
left: -110px;
font-size: 18px;
}
.title-link th{
padding-left: 190px;
}
.link-table{
margin-top: 50px;
position: absolute;
top: 40px;
left: 22px;
position: relative;
}
.link-table td{
padding-left: 45px;
padding: 0 26.2px;
font-size: 17px;
border-bottom: 1px solid #8a9991;
/* border-top: 1px solid #8a9991; */
line-height: 40px;
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
}
.link-table input{
height: 20px;

View File

@ -60,30 +60,32 @@ function StudentLink(){
}
return(
<div className='body-right-studentlink'>
{TestLink&&<table>
<thead>
<tr className='title-link'>
<th>学生</th>
<th>链接1</th>
<th>链接2</th>
<th>链接3</th>
<th>分数</th>
<th>建议</th>
</tr>
</thead>
<tbody>
{Object.keys(TestLink).map((key)=>(
<tr key={key} className='link-table'>
<td>{key}</td>
<td><Link to={TestLink[key][6]} target="_blank">{TestLink[key][6]}</Link></td>
<td><Link to={TestLink[key][7]} target="_blank">{TestLink[key][7]}</Link></td>
<td><Link to={TestLink[key][8]} target="_blank">{TestLink[key][8]}</Link></td>
<td><input type="text" onChange={handleInputChange} name={TestLink[key][0]}/></td>
<td><input type="text" onChange={handleInputChange2} name={TestLink[key][0]} /></td>
</tr>
))}
</tbody>
</table>}
<div className='link-box'>
{TestLink&&<table>
<thead>
<tr className='title-link'>
<th>学生</th>
<th>链接1</th>
<th>链接2</th>
<th>链接3</th>
<th>分数</th>
<th>建议</th>
</tr>
</thead>
<tbody>
{Object.keys(TestLink).map((key)=>(
<tr key={key} className='link-table'>
<td>{key}</td>
<td><Link to={TestLink[key][6]} target="_blank">{TestLink[key][6]}</Link></td>
<td><Link to={TestLink[key][7]} target="_blank">{TestLink[key][7]}</Link></td>
<td><Link to={TestLink[key][8]} target="_blank">{TestLink[key][8]}</Link></td>
<td><input type="text" onChange={handleInputChange} name={TestLink[key][0]}/></td>
<td><input type="text" onChange={handleInputChange2} name={TestLink[key][0]} /></td>
</tr>
))}
</tbody>
</table>}
</div>
<button onClick={submit} className='submit'>确定</button>
</div>
)