fix(dorm): 点名请假仅认审批完成,并修正点名时间时区
宿舍点名/卫生检查只展示 finish 请假;点名提交改用服务端本地时间,避免 toISOString 少 8 小时。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
1 parent
a6a5b88f47
commit
64f805cca4
5 files changed
+17
-6
No files matched your search
@@ -47,6 +47,7 @@ import { submitRollCall } from '@/api/xg/xgss/dormRollCall/dormRollCall/index';
|
||||
import { DormRollCallDetailForm, DormRollCallForm } from '@/api/xg/xgss/dormRollCall/dormRollCall/types';
|
||||
import { getRoomStudents } from '@/api/xg/xgss/dormBedStudent/dormBedStudent/index';
|
||||
import request from '@/utils/request';
|
||||
import { parseTime } from '@/utils/ruoyi';
|
||||
|
||||
console.log('[点名调试] RoomRollCallPopup 组件已加载');
|
||||
|
||||
@@ -251,7 +252,7 @@ const handleSubmit = async () => {
|
||||
|
||||
const submitData: DormRollCallForm = {
|
||||
batchNo: props.batchNo,
|
||||
checkDate: new Date().toISOString().slice(0, 19).replace('T', ' '),
|
||||
checkDate: parseTime(new Date(), '{y}-{m}-{d} {h}:{i}:{s}'),
|
||||
buildingId: props.buildingId,
|
||||
roomId: props.roomId,
|
||||
roomName: props.roomName,
|
||||
|
||||
Reference in new issue
Block a user