import React from 'react'; import { Breadcrumb, Tooltip, Switch } from 'antd'; import './index.less'; import Page from '@src/containers/Page'; import { asyncConfirm, asyncSMessage } from '@src/services/AsyncTools'; import { formatPercent, formatDate } from '@src/services/Tools'; import { RestartConfirmModal } from '../../../components/OtherModal'; import ListTable from '../../../components/ListTable'; import ProgressText from '../../../components/ProgressText'; import IconButton from '../../../components/IconButton'; import Button from '../../../components/Button'; import { Main } from '../../../stores/main'; import { Question } from '../../../stores/question'; export default class extends Page { initState() { this.qxCatColumns = [ { title: '模考', width: 250, align: 'left', render: record => { let progress = 0; if (record.report) { progress = formatPercent(record.report.userNumber, record.report.questionNumber); } return [ , this.state.showPrev && record.prevReport && ( ), ]; }, }, { title: 'Total', width: 100, align: 'left', render: record => { let progress = 0; if (record.report) { progress = formatPercent(record.report.userNumber, record.report.questionNumber); } return [ , this.state.showPrev && record.prevReport && ( ), ]; }, }, { title: 'Verbal', width: 100, align: 'left', render: record => { let progress = 0; if (record.report) { progress = formatPercent(record.report.userNumber, record.report.questionNumber); } return [ , this.state.showPrev && record.prevReport && ( ), ]; }, }, { title: 'Quant', width: 100, align: 'left', render: record => { let progress = 0; if (record.report) { progress = formatPercent(record.report.userNumber, record.report.questionNumber); } return [, this.state.showPrev && record.prevReport && ( ), ]; }, }, { title: 'IR', width: 100, align: 'left', render: record => { let progress = 0; if (record.report) { progress = formatPercent(record.report.userNumber, record.report.questionNumber); } return [, this.state.showPrev && record.prevReport && ( ), ]; }, }, { title: '做题时间', width: 100, align: 'left', render: record => { let progress = 0; if (record.report) { progress = formatPercent(record.report.userNumber, record.report.questionNumber); } return [, this.state.showPrev && record.prevReport && ( ), ]; }, }, { title: '操作', width: 110, align: 'left', render: record => { let progress = 0; if (record.report) { progress = formatPercent(record.report.userNumber, record.report.questionNumber); } return [, this.state.showPrev && record.prevReport && ( ); } }