diff --git a/web/src/pages/examination/mockExamination/index.tsx b/web/src/pages/examination/mockExamination/index.tsx new file mode 100644 index 0000000..9e02d5a --- /dev/null +++ b/web/src/pages/examination/mockExamination/index.tsx @@ -0,0 +1,76 @@ +import { PlusOutlined } from '@ant-design/icons'; +import { Button, Card, List, Progress, Typography, Image } from 'antd'; +import { PageContainer } from '@ant-design/pro-layout'; +import { useRequest } from 'umi'; +import { querySubjectList } from './service'; +import type { SubjectListItemDataType } from './data.d'; +import styles from './style.less'; +import NumberInfo from './components/NumberInfo'; + +const { Paragraph } = Typography; + +const SubjectList = () => { + /** 获取主题列表数据 */ + const { data, loading } = useRequest(() => { + + return querySubjectList({ + count: 10, + }); + }); + + const list = data?.list || []; + + return ( + +
+ { + if (item && item.subject_id) { + return ( + + {item?.subject_name}} + hoverable + className={styles.card} + actions={[]} + extra={<>开始学习时间: ---距离结束时间:---天考核学时:{item?.total_course_hours}} + > + } + title={false} + description={ + <> + + + {item.subject_describe} + + + + + + } + /> + + + ); + } + }} + /> +
+
+ ); +}; + +export default SubjectList; diff --git a/web/src/pages/examination/service.ts b/web/src/pages/examination/service.ts index 67933d4..1c43426 100644 --- a/web/src/pages/examination/service.ts +++ b/web/src/pages/examination/service.ts @@ -1,6 +1,21 @@ import { request } from 'umi'; import type { CardListItemDataType } from './data.d'; +/** + * 【6.5】(教师首页)当前学习主题课程信息 + * /dsideal_yy/ypt/careerTraining/report/personLastLearning + * @param params + * @returns + */ +export async function personLastLearning(params: { + page_size: number; + //count: number; +}): Promise<{ data: { list: CardListItemDataType[] } }> { + return request('/dsideal_yy/ypt/careerTraining/report/personLastLearning', { + params, + }); +} + /** * 获取考试详情 * /dsideal_yy/zygh/training/examination/getExaminationById @@ -15,6 +30,8 @@ export async function getExaminationById(params: { params, }); } + + /** * 获取考试规则详情 * /dsideal_yy/zygh/training/rules/getRulesById