dev-tmp1^2
tangjie 2026-08-28 10:58:57 +08:00
parent b00ea8f0c7
commit de95e1620e
3 changed files with 5 additions and 5 deletions

View File

@ -12,8 +12,8 @@ module.exports = {
// 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095 // 可通过环境变量覆盖: SAFETY_EVAL_API_HOST=http://192.168.x.x:8095
//API_HOST: "http://localhost:80", //API_HOST: "http://localhost:80",
// API_HOST: "http://192.168.0.134", API_HOST: "http://192.168.0.134",
API_HOST: "http://192.168.0.150", //太浅 // API_HOST: "http://192.168.0.150", //太浅
// API_HOST: "https://gbs-gateway.qhdsafety.com", // API_HOST: "https://gbs-gateway.qhdsafety.com",
// API_HOST: "http://192.168.0.103", //huwei // API_HOST: "http://192.168.0.103", //huwei
}, },

View File

@ -21,10 +21,10 @@ const buildQuery = (value) => {
return { return {
...rest, ...rest,
...(entryTimeRange?.[0] ...(entryTimeRange?.[0]
? { entryTimeStart: entryTimeRange[0].format("YYYY-MM-DD") } ? { entryTimeStart: entryTimeRange[0].startOf("day").format("YYYY-MM-DD HH:mm:ss") }
: {}), : {}),
...(entryTimeRange?.[1] ...(entryTimeRange?.[1]
? { entryTimeEnd: entryTimeRange[1].format("YYYY-MM-DD") } ? { entryTimeEnd: entryTimeRange[1]?.endOf("day").format("YYYY-MM-DD HH:mm:ss") }
: {}), : {}),
current: 1, current: 1,
size: 10, size: 10,

View File

@ -103,7 +103,7 @@ function ClassAddPage(props) {
const { trainingDateRange, ...rest } = values; const { trainingDateRange, ...rest } = values;
const payload = { const payload = {
...rest, ...rest,
startDate: trainingDateRange?.[0]?.format("YYYY-MM-DD"), startDate: trainingDateRange?.[0]?.startOf("day").format("YYYY-MM-DD HH:mm:ss"),
endDate: trainingDateRange?.[1] endDate: trainingDateRange?.[1]
?.endOf("day") ?.endOf("day")
.format("YYYY-MM-DD HH:mm:ss"), .format("YYYY-MM-DD HH:mm:ss"),