From 1c8ec950caa656401a2f046816764386928ce2a4 Mon Sep 17 00:00:00 2001 From: Qi <3194726156@qq.com> Date: Sat, 24 May 2025 19:58:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=8A=A5=E9=81=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cees/waiTeacher/CeesWaiTeacherList.vue | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/src/views/cees/waiTeacher/CeesWaiTeacherList.vue b/src/views/cees/waiTeacher/CeesWaiTeacherList.vue index 6458f21..5a25b56 100644 --- a/src/views/cees/waiTeacher/CeesWaiTeacherList.vue +++ b/src/views/cees/waiTeacher/CeesWaiTeacherList.vue @@ -336,18 +336,16 @@ const actions = []; const handleConfirm = (actionType) => { - //const currentUser = useSelector((state) => state.user.currentUser); - //console.log(currentUser) - console.log(record); + const isConfirmAction = actionType === 'confirm'; + Modal.confirm({ - title: actionType === 'confirm' ? '确认报到' : '取消确认', + title: isConfirmAction ? '请核对信息!!!' : '', content: , - // 注意:如果你使用的是 JSX 或 Vue3 的 h() 语法,可以使用 `content: () => h('div', ...)` - okText: '确认', - cancelText: '取消', - width: 800, // 👈 增加宽度 + okText: isConfirmAction ? '确认报道' : '取消报道', // 根据操作类型设置确认按钮文本 + cancelText: isConfirmAction ? '取消' : '关闭', // 根据操作类型设置取消按钮文本 + width: 800, onOk: () => { - if (actionType === 'confirm') { + if (isConfirmAction) { updateStatus(record.id); } else { updateStatus(record.id, 'un'); @@ -399,9 +397,10 @@ {record.bankName} {record.carNumber} - {record.mealCard} + {/*{record.mealCard}*/} - {record.dormitoryName} + {record.groupId} + {record.dormitoryName} {record.majorIdDescription} );