hookehuyr

fix(检查页面): 将查询参数id统一改为post_id以保持一致性

...@@ -464,7 +464,7 @@ const getUploadTips = () => { ...@@ -464,7 +464,7 @@ const getUploadTips = () => {
464 * @param {string} month - 月份 464 * @param {string} month - 月份
465 */ 465 */
466 const getTaskDetail = async (month) => { 466 const getTaskDetail = async (month) => {
467 - const { code, data } = await getTaskDetailAPI({ i: route.query.id, month }) 467 + const { code, data } = await getTaskDetailAPI({ i: route.query.post_id, month })
468 if (code) { 468 if (code) {
469 taskDetail.value = data 469 taskDetail.value = data
470 470
...@@ -802,7 +802,7 @@ onMounted(async () => { ...@@ -802,7 +802,7 @@ onMounted(async () => {
802 selectedTaskValue.value = [+route.query.subtask_id] 802 selectedTaskValue.value = [+route.query.subtask_id]
803 803
804 // 获取小作业列表 804 // 获取小作业列表
805 - const subtask_list = await getSubtaskListAPI({ task_id: route.query.id, date: current_date }) 805 + const subtask_list = await getSubtaskListAPI({ task_id: route.query.post_id, date: current_date })
806 if (subtask_list.code) { 806 if (subtask_list.code) {
807 taskOptions.value = [...subtask_list.data.map(item => ({ 807 taskOptions.value = [...subtask_list.data.map(item => ({
808 text: item.is_makeup ? '补卡:' + item.title : item.title, 808 text: item.is_makeup ? '补卡:' + item.title : item.title,
......
1 <!-- 1 <!--
2 * @Date: 2025-05-29 15:34:17 2 * @Date: 2025-05-29 15:34:17
3 * @LastEditors: hookehuyr hookehuyr@gmail.com 3 * @LastEditors: hookehuyr hookehuyr@gmail.com
4 - * @LastEditTime: 2025-12-15 13:55:28 4 + * @LastEditTime: 2025-12-15 14:33:37
5 * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue 5 * @FilePath: /mlaj/src/views/checkin/IndexCheckInPage.vue
6 * @Description: 文件描述 6 * @Description: 文件描述
7 --> 7 -->
...@@ -397,7 +397,7 @@ const goToCheckinDetailPage = () => { ...@@ -397,7 +397,7 @@ const goToCheckinDetailPage = () => {
397 router.push({ 397 router.push({
398 path: '/checkin/detail', 398 path: '/checkin/detail',
399 query: { 399 query: {
400 - id: route.query.id, 400 + post_id: route.query.id,
401 subtask_id: selectedSubtaskId.value, 401 subtask_id: selectedSubtaskId.value,
402 date: current_date, 402 date: current_date,
403 is_patch: isPatchCheckin.value ? '1' : '0', 403 is_patch: isPatchCheckin.value ? '1' : '0',
......