diff --git a/packages/examination/src/views/examPaper/examPaperAdd.tsx b/packages/examination/src/views/examPaper/examPaperAdd.tsx index ca83f9d..fe2ca7e 100644 --- a/packages/examination/src/views/examPaper/examPaperAdd.tsx +++ b/packages/examination/src/views/examPaper/examPaperAdd.tsx @@ -366,7 +366,8 @@ class ExamPaperAdd extends Component { questionSelectList, selectedRowKeys, skipValidation, - questionCountSum + questionCountSum, + total } = this.state; const changePage = (current: number, pageSize: number) => { @@ -584,7 +585,7 @@ class ExamPaperAdd extends Component { @@ -689,20 +690,23 @@ class ExamPaperAdd extends Component { ]} width={1100} - style={{ top: 20 }} + style={{top: 20}} >
-

已选列表

+

已选列表

+
+ {selectedQuestionList.length}/{total} +
-
-

试题选择

+
+

试题选择

{ name="serviceTypeId" > + @@ -752,12 +756,12 @@ class ExamPaperAdd extends Component { bordered={true} size={'small'} rowKey="id" - scroll={{ y: 200 }} + scroll={{y: 200}} loading={loading} rowSelection={{ selectedRowKeys: selectedRowKeys, onChange: (newSelectedRowKeys, selectedRows) => { - const { selectedQuestionList,questionSelectList } = this.state; + const {selectedQuestionList, questionSelectList} = this.state; const newSelectedQuestionList = selectedRows.reduce((acc, row) => { if (!acc.some(item => item.id === row.id)) { acc.push(row); @@ -766,11 +770,11 @@ class ExamPaperAdd extends Component { }, [...selectedQuestionList]); const deselectedIds = questionSelectList - .filter(item =>!newSelectedRowKeys.includes(item.id)) + .filter(item => !newSelectedRowKeys.includes(item.id)) .map(item => item.id); const finalSelectedQuestionList = newSelectedQuestionList.filter( - item =>!deselectedIds.includes(item.id) + item => !deselectedIds.includes(item.id) ); const selectedRowKeys = finalSelectedQuestionList.map(item => String(item.id));