diff --git a/admin/config/config.ts b/admin/config/config.ts index 545bf37..9ad43ce 100644 --- a/admin/config/config.ts +++ b/admin/config/config.ts @@ -151,6 +151,10 @@ export default defineConfig({ icon: 'table', name: '考试规则维护', routes: [ + { + path: '/examinationrules', + redirect: '/examinationrules/normal', + }, { name: '模拟考试规则设置', icon: 'smile', @@ -198,6 +202,10 @@ export default defineConfig({ name: '考试管理', icon: 'profile', routes: [ + { + path: '/examination', + redirect: '/examination/option', + }, { name: '考试维护', path: '/examination/option', diff --git a/admin/src/app.tsx b/admin/src/app.tsx index 4b07ed6..6122197 100644 --- a/admin/src/app.tsx +++ b/admin/src/app.tsx @@ -90,6 +90,7 @@ export const layout: RunTimeLayoutConfig = ({ initialState }) => { /** request 用于配置全局的网络请求,你可以在这里做拦截器,全局错误处理,鉴权的配置。*/ export const request: RequestConfig = { errorHandler: (error: ResponseError) => { + console.log('RequestConfig errorHandler', error) /* notification.error({ description: '您的网络发生异常,无法连接服务器', @@ -97,4 +98,7 @@ export const request: RequestConfig = { });*/ throw error; }, + //middlewares?: OnionMiddleware[], + //requestInterceptors?: RequestInterceptor[], // 新增自动添加AccessToken的请求前拦截器 + //responseInterceptors?: ResponseInterceptor[], }; \ No newline at end of file diff --git a/admin/src/pages/examination/option/index.tsx b/admin/src/pages/examination/option/index.tsx index 760cc05..0b44417 100644 --- a/admin/src/pages/examination/option/index.tsx +++ b/admin/src/pages/examination/option/index.tsx @@ -188,6 +188,7 @@ const ExaminationList: React.FC = () => { hideInSearch: true, dependencies: ['subject_id'], request: async (params) => { + console.log(params, 'params::::'); const { table_List: Items } = await queryRulesList({ rules_type: 1, subject_id: params.subject_id || 0, }); const rules = []; diff --git a/admin/src/pages/examinationrules/attestation/step/index.tsx b/admin/src/pages/examinationrules/attestation/step/index.tsx index d8e2fb3..4d4cfaf 100644 --- a/admin/src/pages/examinationrules/attestation/step/index.tsx +++ b/admin/src/pages/examinationrules/attestation/step/index.tsx @@ -313,14 +313,22 @@ export default () => { rules={[{ required: true, message: '请输入考试时长' }]} // tooltip="限制考试时长的情况下,用户考试中离开,倒计时不会停止。" /> + + 限制考试时长的情况下,用户考试中离开,倒计时不会停止。 + - + + 试卷数量与学生重复考试次数一致 + + + 试卷有效期指超过试卷有效期重新生成试卷 + )} diff --git a/admin/src/pages/examinationrules/normal/components/QuestionPaper.tsx b/admin/src/pages/examinationrules/normal/components/QuestionPaper.tsx index cd50805..0f3f1db 100644 --- a/admin/src/pages/examinationrules/normal/components/QuestionPaper.tsx +++ b/admin/src/pages/examinationrules/normal/components/QuestionPaper.tsx @@ -345,7 +345,7 @@ const QuestionPaper = (props: any, ref: any) => { 正确答案: {answer} - 解析:
+ 【解析】:
); }else{ diff --git a/admin/src/pages/questionbank/components/AnswersEditor.tsx b/admin/src/pages/questionbank/components/AnswersEditor.tsx index 7d741cd..3437c3a 100644 --- a/admin/src/pages/questionbank/components/AnswersEditor.tsx +++ b/admin/src/pages/questionbank/components/AnswersEditor.tsx @@ -88,7 +88,9 @@ const AnswersSelector = (props) => {