feat: no paper warning
This commit is contained in:
parent
7ff4b16300
commit
7a51908504
|
@ -51,11 +51,6 @@ export default class index extends Component {
|
|||
width: 90,
|
||||
dataIndex: 'FinishNumber',
|
||||
},
|
||||
{
|
||||
title: '出成绩率',
|
||||
width: 90,
|
||||
dataIndex: 'FinishRate',
|
||||
},
|
||||
{
|
||||
title: '平均分(含零/除零)',
|
||||
width: 90,
|
||||
|
|
|
@ -12,7 +12,7 @@ export default class index extends Component {
|
|||
componentDidMount() {
|
||||
this.questionList();
|
||||
}
|
||||
|
||||
|
||||
// 选择区
|
||||
state = {
|
||||
questionList: [],
|
||||
|
|
|
@ -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) => {
|
||||
|
|
Loading…
Reference in New Issue