hookehuyr

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

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