diff --git a/web/src/pages/course/list/index.tsx b/web/src/pages/course/list/index.tsx index 341190d..6760aa0 100644 --- a/web/src/pages/course/list/index.tsx +++ b/web/src/pages/course/list/index.tsx @@ -107,7 +107,7 @@ const CardList = () => { <> 学习进度: - percent === 100 ? '100%' : `${percent}%`} /> @@ -182,7 +182,7 @@ const CardList = () => {
{item?.course_name}
{item?.course_hours*60}分钟
- percent === 100 ? '100%' : `${percent}%`} />
diff --git a/web/src/pages/course/subject/index.tsx b/web/src/pages/course/subject/index.tsx index 83dfab6..884050f 100644 --- a/web/src/pages/course/subject/index.tsx +++ b/web/src/pages/course/subject/index.tsx @@ -77,7 +77,7 @@ const SubjectList = () => { percent === 100 ? '100%' : `${percent}%`} /> diff --git a/web/src/pages/dashboard/qualification/index.tsx b/web/src/pages/dashboard/qualification/index.tsx index 0ed96e5..874f613 100644 --- a/web/src/pages/dashboard/qualification/index.tsx +++ b/web/src/pages/dashboard/qualification/index.tsx @@ -63,7 +63,7 @@ const Qualification = () => { return (
-
{history.push('/dashboard/workplace')}} style={{color:'#8C8C8C',cursor:'pointer',}}>首页 / 资质考试
+
{history.push('/dashboard/workplace')}} style={{color:'#8C8C8C',cursor:'pointer',}}>首页 / 资质考试 / {examinationInfo?.examination_name}
考试项目:
diff --git a/web/src/pages/dashboard/workplace/index.tsx b/web/src/pages/dashboard/workplace/index.tsx index 05358e8..ee3a7e1 100644 --- a/web/src/pages/dashboard/workplace/index.tsx +++ b/web/src/pages/dashboard/workplace/index.tsx @@ -1,6 +1,6 @@ import type { FC } from 'react'; import { useEffect } from 'react'; -import { Avatar, Card, Col, List, Skeleton, Row, Statistic, Descriptions, Progress, Table, Button } from 'antd'; +import { Avatar, Card, Col, List, Skeleton, Row, Statistic, Descriptions, Progress, Table, Button ,Image} from 'antd'; import { Line, Radar } from '@ant-design/charts'; import { Link, history, useRequest } from 'umi'; import { PageContainer } from '@ant-design/pro-layout'; @@ -191,7 +191,8 @@ const Workplace: FC = () => { const { loading: lastexaminationLoading, data: examinationList } = useRequest( () => getExaminationList( { - person_id: cookie.load('person_id') + person_id: cookie.load('person_id'), + b_use:1 }), { formatResult: (result) => { return result.table_List; @@ -268,7 +269,8 @@ const Workplace: FC = () => { className={styles.studyCard} title="当前学习" loading={activitiesLoading} - cover={example} + // cover={example} + cover={} > {lastLearningList?.lecture_teacher} diff --git a/web/src/pages/mockExamination/chapterList.tsx b/web/src/pages/mockExamination/chapterList.tsx index fbd0df4..44e559d 100644 --- a/web/src/pages/mockExamination/chapterList.tsx +++ b/web/src/pages/mockExamination/chapterList.tsx @@ -127,7 +127,7 @@ const CardList = () => { + }}>确定修改
diff --git a/web/src/pages/registration/index.tsx b/web/src/pages/registration/index.tsx index f758655..0ab99cf 100644 --- a/web/src/pages/registration/index.tsx +++ b/web/src/pages/registration/index.tsx @@ -16,7 +16,7 @@ import ProCard from '@ant-design/pro-card'; import { Button, Col, message, Row } from 'antd'; import { PageContainer } from '@ant-design/pro-layout'; import ProDescriptions from '@ant-design/pro-descriptions'; -import { queryExaminationRule,queryPersonInfo,savePersonSignUpInfo } from './service'; +import { queryExaminationRule,queryPersonInfo,savePersonSignUpInfo,checkExaminationPersonID } from './service'; import cookie from 'react-cookies'; import styles from './index.less' @@ -85,12 +85,23 @@ export default () => { description: false, }} onFinish={async (values) => { - // console.log('values',values); - // console.log(formRef.current?.getFieldsValue()); - // await waitTime(2000); - setBaseInfo(values); - return true; - }} + try { + const info = await checkExaminationPersonID({ + examination_id:params.examination_id, + id_code:values.idCard + }); + setBaseInfo(values); + return true; + }catch (error) { + if(error.response){ + message.error(error.response.info); + }else { + message.error('填写失败,请重新填写!'); + } + return false; + } + + }} > @@ -123,16 +134,16 @@ export default () => { /> - - - + + + @@ -150,14 +161,14 @@ export default () => { value: '全日制本科', }, { - label: '硕士研究生及以上...', - value: '硕士研究生及以上...', + label: '硕士研究生及以上学历', + value: '硕士研究生及以上学历', }, ]} placeholder="请选择" /> - - + + { // console.log(formRef.current?.getFieldsValue()); // 跳转到指定路由 try { - const success = await savePersonSignUpInfo({ - address:baseInfo?.address, - birthday:baseInfo?.birthday, - bureau_id:backInfo?.bureau_id, - bureau_name:backInfo?.bureau_name, - city_id:backInfo?.city_id, - city_name:backInfo?.city_name, - district_id:backInfo?.district_id, - district_name:backInfo?.district_name, - education:baseInfo?.qualifications, - examination_id:params.examination_id, - gender:baseInfo?.sex, - id_code:baseInfo?.idCard, - identity_id:backInfo?.identity_id, - major:baseInfo?.major, - person_id:backInfo?.person_id, - person_name:backInfo?.person_name, - province_id:backInfo?.province_id, - province_name:backInfo?.province_name, - subject:baseInfo?.subject, - tel:baseInfo?.contact, - university:baseInfo?.graduation, + const success = await savePersonSignUpInfo({ + address:baseInfo?.address, + birthday:baseInfo?.birthday, + bureau_id:backInfo?.bureau_id, + bureau_name:backInfo?.bureau_name, + city_id:backInfo?.city_id, + city_name:backInfo?.city_name, + district_id:backInfo?.district_id, + district_name:backInfo?.district_name, + education:baseInfo?.qualifications, + examination_id:params.examination_id, + gender:baseInfo?.sex, + id_code:baseInfo?.idCard, + identity_id:backInfo?.identity_id, + major:baseInfo?.major, + person_id:backInfo?.person_id, + person_name:backInfo?.person_name, + province_id:backInfo?.province_id, + province_name:backInfo?.province_name, + subject:baseInfo?.subject, + tel:baseInfo?.contact, + university:baseInfo?.graduation, }); - const msg=testInfo.examination_start_time+','+testInfo.examination_end_time+','+testInfo.examination_name+','+success.admission_number; - history.push( '/registration/success/'+msg); - }catch (error) { - if(error.response){ - message.error(error.response.info); - }else { - message.error('报名失败'); - } + const msg=testInfo.examination_start_time+','+testInfo.examination_end_time+','+testInfo.examination_name+','+success.admission_number; + history.push( '/registration/success/'+msg); + }catch (error) { + if(error.response){ + message.error(error.response.info); + }else { + message.error('报名失败'); + } } diff --git a/web/src/pages/registration/service.ts b/web/src/pages/registration/service.ts index 6fe6a79..18e13aa 100644 --- a/web/src/pages/registration/service.ts +++ b/web/src/pages/registration/service.ts @@ -50,3 +50,11 @@ export async function savePersonSignUpInfo(data: { [key: string]: any }, options ...(options || {}), }); } + +//身份证重复校验/dsideal_yy/zygh/training/person/checkExaminationPersonID +export async function checkExaminationPersonID(params: { +}) { + return request('/dsideal_yy/zygh/training/person/checkExaminationPersonID', { + params, + }); +}