Commit ad24ab22 by guomingpang

fix:修正考试详情userId取值

parent d6a89f21
......@@ -59,7 +59,6 @@ function AnswerDescPage(props) {
const [showScanFile, setShowScanFile] = useState(false);
const [scanFileAddress, setScanFileAddress] = useState(false);
const [scanFileType, setScanFileType] = useState(false);
const questionTypeList = {
SINGLE_CHOICE: '单选题',
MULTI_CHOICE: '多选题',
......@@ -79,7 +78,7 @@ function AnswerDescPage(props) {
renderer: 'svg',
loop: true,
autoplay: true,
container: document.getElementById('lottie-box'),
container: document.getElementById('empty-img-box'),
});
}, []);
// 获取考试详情
......@@ -677,18 +676,19 @@ function AnswerDescPage(props) {
</div>
</div>
</div>
{errorCount === 0 && onlyError ? (
<div className='empty'>
<div className={`empty ${errorCount === 0 && onlyError ? '' : 'empty-hide'}`}>
<div className='img-box'>
<div id='lottie-box'></div>
<div id='empty-img-box'></div>
</div>
<div className='empty-text'>本次考试无错题</div>
</div>
) : (
<If condition={!(errorCount === 0 && onlyError)}>
<div className='answer-desc-content'>
<div className='question-list-box'>{handleRenderQuestionItem()}</div>
</div>
)}
</If>
{/* {renderFooterText()} */}
</div>
{showScanFile && (
......
......@@ -412,4 +412,9 @@
margin: 0 auto;
text-align: center;
}
&.empty-hide {
position: absolute;
left: -9999px;
top: -9999px;
}
}
......@@ -175,8 +175,6 @@ function DataAnalysic(props: any) {
title: '操作',
key: '',
dataIndex: 'edit',
width: '30%',
align: 'right',
render: (value: any, record: any) => {
return (
<Choose>
......@@ -344,8 +342,8 @@ function DataAnalysic(props: any) {
</Button>
)}
<div className='content'>
<Table bordered size='small' columns={columns} dataSource={list} onChange={onChange} pagination={false}></Table>
<div className='content analysic-content'>
<Table bordered size='small' rowClassName='analysic-content-row' columns={columns} dataSource={list} onChange={onChange} pagination={false}></Table>
{total > 0 && (
<PageControl
size='small'
......
.dataAnalysic{
.titleBox{
.dataAnalysic {
.titleBox {
position: relative;
padding-left: 28px;
font-size: 19px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #333333;
line-height: 26px;
background: #FFFFFF;
&::before{
width:4px;
height:12px;
content:'';
background-image: linear-gradient(#2966FF 83.5%, #0ACCA4 16.5%);
display:inline-block;
position: absolute;
left:16px;
top:7px;
background: #ffffff;
&::before {
width: 4px;
height: 12px;
content: '';
background-image: linear-gradient(#2966ff 83.5%, #0acca4 16.5%);
display: inline-block;
margin-right: 8px;
}
}
.ant-tabs-content-holder {
......
......@@ -81,3 +81,10 @@
.answer-detail {
color: rgb(35, 143, 255);
}
.analysic-content {
.ant-table-bordered .ant-table-tbody tr {
&.analysic-content-row {
height: 50px;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment