feat(): 数据统计查询修改

qzc-dev-demo
李神峰 2025-04-14 17:52:08 +08:00
parent 8578cfa4f8
commit c089616a22
5 changed files with 30 additions and 4 deletions

BIN
src/assets/img/djz.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 942 KiB

View File

@ -67,6 +67,15 @@ const ToolBar = ({ setSearchVal, onSave, storeData,role }) => {
setSearchVal({...values, dateTimeRangeSo:dateSo});
}
useEffect(() => {
let time = [moment().subtract(1,"weeks"),moment()]
let dateSo = {
start:moment(time[0]).format('YYYY-MM-DD 00:00:00'),
end:moment(time[1]).format('YYYY-MM-DD 23:59:59'),
}
form.setFieldValue("tm",time)
setSearchVal({dateTimeRangeSo:dateSo})
}, [])
return (

View File

@ -93,7 +93,16 @@ const ToolBar = ({ setSearchVal, onSave, storeData,role }) => {
getDmList()
getStationCode()
}, [])
useEffect(() => {
let time = [moment().subtract(1,"weeks"),moment()]
let dateSo = {
start:moment(time[0]).format('YYYY-MM-DD 00:00:00'),
end:moment(time[1]).format('YYYY-MM-DD 23:59:59'),
}
form.setFieldValue("tm",time)
setSearchVal({dateTimeRangeSo:dateSo})
}, [])
return (
<>

View File

@ -83,7 +83,15 @@ const ToolBar = ({ setSearchVal, onSave, storeData,role }) => {
getStationCode()
}, [])
useEffect(() => {
let time = [moment().subtract(1,"weeks"),moment()]
let dateSo = {
start:moment(time[0]).format('YYYY-MM-DD 00:00:00'),
end:moment(time[1]).format('YYYY-MM-DD 23:59:59'),
}
form.setFieldValue("tm",time)
setSearchVal({dateTimeRangeSo:dateSo})
}, [])
return (
<>
<div style={{display:'flex',justifyContent:'space-between'}}>

View File

@ -1,10 +1,10 @@
import { Image } from "antd"
// import zd from '../../../assets/img/u0.png'
import zd from '../../../assets/img/wait.png'
import zd from '../../../assets/img/djz.jpg'
const Page = () => {
return (
<div style={{display:'flex',justifyContent:'center',alignItems:'center',backgroundColor:'#fff',height:'100%',padding:'20px'}}>
<Image src={zd} style={{margin:'auto',margin:'20px',height:'130px'}} preview={false}/>
<Image src={zd} style={{margin:'auto',margin:'20px',height:'630px'}} preview={false}/>
</div>
)
}