From 64459c1330b6460c16ee6f2c4fc8ecc08db343a0 Mon Sep 17 00:00:00 2001 From: hebo Date: Fri, 12 Sep 2025 11:20:21 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=89=E8=AF=BE=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/kyXcApi.ts | 29 + src/api/base/xkPbApi.ts | 57 ++ src/components/BasicNjBjSelect/demo.vue | 6 + src/pages.json | 21 + src/pages/base/service/index.vue | 2 +- src/pages/view/analysis/xs/studentArchive.vue | 75 +- .../view/routine/kefuxuncha/kyXkList.vue | 707 +++++++++++++++ .../view/routine/kefuxuncha/kyXkkcDetail.vue | 815 ++++++++++++++++++ .../view/routine/kefuxuncha/xcPbList.vue | 524 +++++++++++ .../view/routine/kefuxuncha/xcXkList.vue | 172 +++- 10 files changed, 2342 insertions(+), 66 deletions(-) create mode 100644 src/api/base/kyXcApi.ts create mode 100644 src/api/base/xkPbApi.ts create mode 100644 src/pages/view/routine/kefuxuncha/kyXkList.vue create mode 100644 src/pages/view/routine/kefuxuncha/kyXkkcDetail.vue create mode 100644 src/pages/view/routine/kefuxuncha/xcPbList.vue diff --git a/src/api/base/kyXcApi.ts b/src/api/base/kyXcApi.ts new file mode 100644 index 0000000..7391279 --- /dev/null +++ b/src/api/base/kyXcApi.ts @@ -0,0 +1,29 @@ +import { get, post } from "@/utils/request"; + +/** + * 保存课业辅导巡查 + */ +export const kyXcSaveApi = async (params: any) => { + return await post("/api/kyXc/save", params); +}; + +/** + * 获取课业辅导巡查分页数据 + */ +export const getKyXcPageApi = async (params: any) => { + return await get("/api/kyXc/findPage", params); +}; + +/** + * 根据ID获取课业辅导巡查详情 + */ +export const getKyXcByIdApi = async (id: string) => { + return await get(`/api/kyXc/${id}`); +}; + +/** + * 删除课业辅导巡查 + */ +export const deleteKyXcApi = async (id: string) => { + return await post(`/api/kyXc/delete/${id}`); +}; diff --git a/src/api/base/xkPbApi.ts b/src/api/base/xkPbApi.ts new file mode 100644 index 0000000..6c8716e --- /dev/null +++ b/src/api/base/xkPbApi.ts @@ -0,0 +1,57 @@ +import { get, post } from "@/utils/request"; + +/** + * 获取选课排班分页数据 + */ +export const getXkPbPageApi = async (params: any) => { + return await get("/api/xkPb/findPage", params); +}; + +/** + * 根据ID获取选课排班详情 + */ +export const getXkPbByIdApi = async (id: string) => { + return await get(`/api/xkPb/${id}`); +}; + +/** + * 创建选课排班 + */ +export const createXkPbApi = async (params: any) => { + return await post("/api/xkPb", params); +}; + +/** + * 更新选课排班 + */ +export const updateXkPbApi = async (params: any) => { + return await post("/api/xkPb/update", params); +}; + +/** + * 删除选课排班 + */ +export const deleteXkPbApi = async (id: string) => { + return await post(`/api/xkPb/delete/${id}`); +}; + +/** + * 根据选课ID获取排班列表 + */ +export const getXkPbListByXkIdApi = async (params: any) => { + return await get("/api/xkPb/findByXkId", params); +}; + +/** + * 课程巡查接口 + */ +export const getXcCourseListApi = async (params: any) => { + return await get("/api/xkPb/getXcCourseList", params); +}; + +/** + * 课业辅导巡查接口 + */ +export const getKyXcCourseListApi = async (params: any) => { + return await get("/api/xkPb/getKyXcCourseList", params); +}; diff --git a/src/components/BasicNjBjSelect/demo.vue b/src/components/BasicNjBjSelect/demo.vue index 645dc27..6d2c3a2 100644 --- a/src/components/BasicNjBjSelect/demo.vue +++ b/src/components/BasicNjBjSelect/demo.vue @@ -147,3 +147,9 @@ const setDefaultValue = () => { } } + + + + + + diff --git a/src/pages.json b/src/pages.json index 5a52feb..980b39e 100644 --- a/src/pages.json +++ b/src/pages.json @@ -250,6 +250,27 @@ }, { "path": "pages/view/routine/kefuxuncha/xcXkList", + "style": { + "navigationBarTitleText": "课服清单", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/view/routine/kefuxuncha/kyXkList", + "style": { + "navigationBarTitleText": "课业辅导巡查", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/view/routine/kefuxuncha/kyXkkcDetail", + "style": { + "navigationBarTitleText": "课业辅导巡查执行", + "enablePullDownRefresh": false + } + }, + { + "path": "pages/view/routine/kefuxuncha/xcPbList", "style": { "navigationBarTitleText": "课服巡查", "enablePullDownRefresh": false diff --git a/src/pages/base/service/index.vue b/src/pages/base/service/index.vue index bf6b826..d2eda67 100644 --- a/src/pages/base/service/index.vue +++ b/src/pages/base/service/index.vue @@ -245,7 +245,7 @@ const sections = reactive([ text: "课服巡查", show: true, permissionKey: "routine-kfxc", // 课服巡查权限编码 - path: "/pages/view/routine/kefuxuncha/xcXkList", + path: "/pages/view/routine/kefuxuncha/xcPbList", }, { id: "r5", diff --git a/src/pages/view/analysis/xs/studentArchive.vue b/src/pages/view/analysis/xs/studentArchive.vue index d7bf6a5..4924af8 100644 --- a/src/pages/view/analysis/xs/studentArchive.vue +++ b/src/pages/view/analysis/xs/studentArchive.vue @@ -90,10 +90,10 @@ - - + + @@ -146,6 +146,9 @@ interface StudentInfo { bjmc: string jzIds?: string jzxm?: string + xb?: string // 性别 + sfzh?: string // 身份证号 + cstime?: string // 出生日期 } interface ApiResponse { @@ -258,60 +261,7 @@ const getListTitle = () => { } } -// 显示更多选项 -const showMoreOptions = (student: StudentInfo) => { - console.log('显示更多选项:', student) - - // 显示操作菜单 - uni.showActionSheet({ - itemList: ['查看详情', '编辑信息', '联系家长', '删除学生'], - success: (res) => { - const tapIndex = res.tapIndex - switch (tapIndex) { - case 0: - // 查看详情 - viewStudentDetail(student) - break - case 1: - // 编辑信息 - uni.showToast({ - title: '编辑功能开发中', - icon: 'none' - }) - break - case 2: - // 联系家长 - if (student.jzxm) { - uni.showToast({ - title: '联系家长功能开发中', - icon: 'none' - }) - } else { - uni.showToast({ - title: '该学生暂无家长信息', - icon: 'none' - }) - } - break - case 3: - // 删除学生 - uni.showModal({ - title: '确认删除', - content: `确定要删除学生 ${student.xsxm} 吗?`, - success: (modalRes) => { - if (modalRes.confirm) { - uni.showToast({ - title: '删除功能开发中', - icon: 'none' - }) - } - } - }) - break - } - } - }) -} + // 获取关注状态样式类 const getFollowStatusClass = (jzxm?: string) => { @@ -336,7 +286,10 @@ const viewStudentDetail = (student: StudentInfo) => { bjId: student.bjId, bjmc: student.bjmc, jzIds: student.jzIds, - jzxm: student.jzxm + jzxm: student.jzxm, + xb: student.xb, // 性别 + sfzh: student.sfzh, // 身份证号 + cstime: student.cstime // 出生日期 }) // 跳转到学生详情页面 @@ -542,7 +495,7 @@ onLoad(() => { padding: 24rpx; } -.more-icon-container { +.arrow-icon-container { width: 40rpx; height: 40rpx; display: flex; @@ -563,14 +516,14 @@ onLoad(() => { } } -.more-icon { +.arrow-icon { width: 35rpx; height: 35rpx; opacity: 0.6; transition: opacity 0.2s ease; } -.more-icon-container:hover .more-icon { +.arrow-icon-container:hover .arrow-icon { opacity: 1; } diff --git a/src/pages/view/routine/kefuxuncha/kyXkList.vue b/src/pages/view/routine/kefuxuncha/kyXkList.vue new file mode 100644 index 0000000..a7ad647 --- /dev/null +++ b/src/pages/view/routine/kefuxuncha/kyXkList.vue @@ -0,0 +1,707 @@ + + + + + diff --git a/src/pages/view/routine/kefuxuncha/kyXkkcDetail.vue b/src/pages/view/routine/kefuxuncha/kyXkkcDetail.vue new file mode 100644 index 0000000..69fedd8 --- /dev/null +++ b/src/pages/view/routine/kefuxuncha/kyXkkcDetail.vue @@ -0,0 +1,815 @@ + + + + + + + diff --git a/src/pages/view/routine/kefuxuncha/xcPbList.vue b/src/pages/view/routine/kefuxuncha/xcPbList.vue new file mode 100644 index 0000000..67f2835 --- /dev/null +++ b/src/pages/view/routine/kefuxuncha/xcPbList.vue @@ -0,0 +1,524 @@ + + + + + diff --git a/src/pages/view/routine/kefuxuncha/xcXkList.vue b/src/pages/view/routine/kefuxuncha/xcXkList.vue index bba361c..b926609 100644 --- a/src/pages/view/routine/kefuxuncha/xcXkList.vue +++ b/src/pages/view/routine/kefuxuncha/xcXkList.vue @@ -35,6 +35,10 @@ 开课地点: {{ xkkc.kcdd }} + + 授课教师: + {{ xkkc.jsName || '暂无' }} + 开课年级: {{ xkkc.njname || '暂无' }} @@ -105,13 +109,14 @@