feat: no paper warning

This commit is contained in:
scales 2021-09-30 15:53:41 +08:00
parent 7ff4b16300
commit 7a51908504
3 changed files with 6 additions and 7 deletions

View File

@ -51,11 +51,6 @@ export default class index extends Component {
width: 90,
dataIndex: 'FinishNumber',
},
{
title: '出成绩率',
width: 90,
dataIndex: 'FinishRate',
},
{
title: '平均分(含零/除零)',
width: 90,

View File

@ -12,7 +12,7 @@ export default class index extends Component {
componentDidMount() {
this.questionList();
}
//
state = {
questionList: [],

View File

@ -34,7 +34,7 @@ export default class index extends Component {
getAllPaper = () => {
Marking.testList({ userId: this.userId })
.then((res) => {
if (res.data.status == "10000") {
if (res.data.status === "10000") {
let papers = [...res.data.data.TestIds]
this.setState(
{
@ -42,6 +42,10 @@ export default class index extends Component {
}
)
this.getCurrentPaper();
}else if(res.data.status === "10003") {
if (res.data.msg == "there is no paper to correct") {
message.warning('没有试卷待批改')
}
}
})
.catch((e) => {