已选列表统计勾选数量的功能追加

main
hujunpeng 4 months ago
parent 0a3825a449
commit 008ca215f0
  1. 8
      packages/examination/src/views/examPaper/examPaperAdd.tsx

@ -366,7 +366,8 @@ class ExamPaperAdd extends Component<any, States> {
questionSelectList,
selectedRowKeys,
skipValidation,
questionCountSum
questionCountSum,
total
} = this.state;
const changePage = (current: number, pageSize: number) => {
@ -584,7 +585,7 @@ class ExamPaperAdd extends Component<any, States> {
<Form.Item
label="总分值:"
name="totalScore"
style={{ width: 240 }}
style={{ width: 220 }}
rules={[{ required: true, message: '请输入总分值' }]}
>
<Input type="number" style={{ textAlign: 'right' }} placeholder="请输入总分值" min={1} />
@ -693,6 +694,9 @@ class ExamPaperAdd extends Component<any, States> {
>
<div>
<h3 style={{fontWeight: 'bold'}}></h3>
<div style={{textAlign: 'right'}}>
{selectedQuestionList.length}/{total}
</div>
<Table
dataSource={selectedQuestionList}
columns={columns}

Loading…
Cancel
Save