fix
parent
b00ea8f0c7
commit
de95e1620e
|
|
@ -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
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
|
|
@ -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"),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue