From 90bad9816a174db8dedb03fd9147f73e0797bb8d Mon Sep 17 00:00:00 2001 From: liuyiliang Date: Thu, 27 Mar 2025 10:53:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/examination/src/style/common.css | 4 + .../exam-online/compoents/ExamListPage.tsx | 226 ++++++++--------- .../src/views/examPaper/examPaperList.tsx | 182 +++++++------- .../src/views/question/questionList.tsx | 228 +++++++++--------- .../views/statistical/serviceStatistics.tsx | 4 +- 5 files changed, 333 insertions(+), 311 deletions(-) diff --git a/packages/examination/src/style/common.css b/packages/examination/src/style/common.css index 59f9159..2f7a5a2 100644 --- a/packages/examination/src/style/common.css +++ b/packages/examination/src/style/common.css @@ -381,4 +381,8 @@ table.ikd-input-table { display: flex; height: 100%; font-size: x-large; +} +.ant-btn-dangerous { + color: #ff4d4f !important; + border-color: #ff4d4f !important; } \ No newline at end of file diff --git a/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx b/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx index 3370545..0617c46 100644 --- a/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx +++ b/packages/examination/src/views/exam-online/compoents/ExamListPage.tsx @@ -472,119 +472,125 @@ const ExamListPage = ({ history }: { history: any }) => { } return ( -
-
- - - setSearchForm({...searchForm, examName: e.target.value}) - } - style={{width: 240}} - /> - - - - setSearchForm({...searchForm, paperName: e.target.value}) - } - style={{width: 240}} - /> - - - - - - - setSearchForm({...searchForm, validTime: value}) - } - style={{width: 240}} - /> - - - - - - - -
-
- - - - -
- - 生成考试码} - visible={qrCodeVisible} - onCancel={() => setQrCodeVisible(false)} - onOk={handleDownloadQRCode} - centered - okText="确认" - > -
-
- - +
+
+
+
+
+ + + setSearchForm({...searchForm, examName: e.target.value}) + } + style={{width: 240}} + /> + + + + setSearchForm({...searchForm, paperName: e.target.value}) + } + style={{width: 240}} + /> + + + + + + + setSearchForm({...searchForm, validTime: value}) + } + style={{width: 240}} + /> + + + + + + + +
-
- 验证码:{captcha} +
+ + + +
- +
+ 生成考试码} + visible={qrCodeVisible} + onCancel={() => setQrCodeVisible(false)} + onOk={handleDownloadQRCode} + centered + okText="确认" + > +
+
+ + +
+
+
+ 验证码:{captcha} +
+
+ ); }; diff --git a/packages/examination/src/views/examPaper/examPaperList.tsx b/packages/examination/src/views/examPaper/examPaperList.tsx index 37ace56..4825e56 100644 --- a/packages/examination/src/views/examPaper/examPaperList.tsx +++ b/packages/examination/src/views/examPaper/examPaperList.tsx @@ -349,95 +349,101 @@ class ExamPaperList extends Component { ]; return ( -
-
- +
+
+
+ + + + + + + + + + + + + + +
+
+
- - - - - - - - - - - - -
- - - - - - - - - - - - - -
({ - disabled: false - }) - }} - pagination={{ - total: this.state.total, - current: this.state.page, - showQuickJumper: true, - showSizeChanger: true, - showTotal: (total) => `共 ${total} 条`, - onChange: changePage - }} - /> + + + + + + + + + + + + + +
({ + disabled: false + }) + }} + pagination={{ + total: this.state.total, + current: this.state.page, + showQuickJumper: true, + showSizeChanger: true, + showTotal: (total) => `共 ${total} 条`, + onChange: changePage + }} + /> + ); } diff --git a/packages/examination/src/views/question/questionList.tsx b/packages/examination/src/views/question/questionList.tsx index 12c4149..8b28b0a 100644 --- a/packages/examination/src/views/question/questionList.tsx +++ b/packages/examination/src/views/question/questionList.tsx @@ -281,120 +281,126 @@ class QuestionList extends Component { ]; return ( -
-
- - + { + industryDict && industryDict.length > 0? + (() => { + let rows = []; + for (let i = 0; i < industryDict.length; i++) { + const item = industryDict[i]; + rows.push( + + ); + } + return rows; + })() + : + } - return rows; - })() - : - - } - - - - + + + - - + + + + + + + + + + + +
+ +
- - - - - - - - - -
- - - - - - - -
({ - disabled: false - }) - }} - pagination={{ - total: this.state.total, - current: this.state.page, - showQuickJumper: true, - showSizeChanger: true, - showTotal: (total) => `共 ${total} 条`, - onChange: changePage - }} - /> + + + + + + + +
({ + disabled: false + }) + }} + pagination={{ + total: this.state.total, + current: this.state.page, + showQuickJumper: true, + showSizeChanger: true, + showTotal: (total) => `共 ${total} 条`, + onChange: changePage + }} + /> + ); } diff --git a/packages/examination/src/views/statistical/serviceStatistics.tsx b/packages/examination/src/views/statistical/serviceStatistics.tsx index 67f57d0..ec3c908 100644 --- a/packages/examination/src/views/statistical/serviceStatistics.tsx +++ b/packages/examination/src/views/statistical/serviceStatistics.tsx @@ -75,14 +75,14 @@ const App: React.FC = () => { key: 'serviceStatusName', }, { - title: '启保时间', + title: '起保日期', dataIndex: 'startDate', align: 'center', width: 150, key: 'startDate', }, { - title: '终保时间', + title: '终保日期', dataIndex: 'doneDate', align: 'center', width: 150,