lsf-dev
秦子超 2024-10-16 14:56:14 +08:00
parent f9e1706b4a
commit 4c54137507
7 changed files with 10 additions and 14 deletions

View File

@ -31,7 +31,7 @@ export default function drpOption(data) {
{
type: 'category',
data: data.map(o => o.tm),
inverse: true,
inverse: false,
splitLine: {
show: false
},

View File

@ -18,7 +18,7 @@ const ToolBar = ({search, setTabVal, setTms}) => {
<Form className='toolbarBox' layout="inline" onFinish={onFinish}>
<Form.Item label="时间段" name="imgName">
<RangePicker
allowClear
allowClear={false}
defaultValue={[moment().add(-1,'months'),moment()]}
onChange={onFinish}
style={{ width: "300px" }}

View File

@ -72,7 +72,6 @@ function ShenLiu({ id, data, dispatch, onCancel }) {
})
}
})
debugger
setYjData(linshi)
}

View File

@ -1,10 +1,7 @@
export default function drpOption(data,yjData) {
console.log("data",data);
const maxVal = 0//Math.max(...data.map(obj => obj.drp))
// const max1 = Math.max(...data.map(obj => obj.x))
const max1 = Math.max(...[...data.map(obj => obj.x),...data.map(obj => obj.y),...data.map(obj => obj.h),...yjData.map(obj => obj.value)])
const min1 = Math.min(...[...data.map(obj => obj.x),...data.map(obj => obj.y),...data.map(obj => obj.h),...yjData.map(obj => obj.value)])
// const min1 = Math.min(...data.map(obj => obj.x))
const max2 = Math.max(...data.map(obj => obj.rz))
const min2 = Math.min(...data.map(obj => obj.rz))
@ -52,7 +49,7 @@ export default function drpOption(data,yjData) {
{
type: 'category',
data: data.map(o => o.tm),
inverse: true,
inverse: false,
splitLine: {
show: false
},

View File

@ -12,12 +12,13 @@ const { Panel } = Collapse;
const Page = ({showPanels}) => {
const dispatch = useDispatch();
const [myKey, setMyKey] = useState('1')
const [badgeType, setBadgeType] = useState('雷达回波')
const [badgeType, setBadgeType] = useState('')
const [tmObj,setTmObj] = useState({
tm:moment(),
hours:'08'
})
useEffect(()=>{
setBadgeType('雷达回波')
dispatch.runtime.setCameraTarget({
center: [115.2, 31.18],
zoom: 9,
@ -66,8 +67,7 @@ const Page = ({showPanels}) => {
</div>
{
(badgeType === '雷达回波'&&myKey==='1')
? (
(badgeType === '雷达回波'&&myKey==='1') ? (
<div className='radarPageBox'>
<RadarPage
activeKey={'0'}

View File

@ -37,7 +37,7 @@ export default function Page({isHome}) {
const columnsSl = [
{ title: '监测点', key: 'stationCode', dataIndex: 'stationCode',align: "center", ellipsis: true },
{ title: '监测时间', key: 'tm', dataIndex: 'tm',align: "center",width: 150, ellipsis: true, render:(v,row)=><div style={{color:row.flag===1?'red':'#3B4859'}}>{v?.slice(5,16)}</div> },
{ title: '渗流量(L/s)', key: 'q', dataIndex: 'q',align: "center", ellipsis: true, render:(v,row)=><div style={{color:row.status===1?'red':'#3B4859'}}>{v}</div> },
{ title: '渗流量(L/s)', key: 'value', dataIndex: 'value',align: "center", ellipsis: true, render:(v,row)=><div style={{color:row.status===1?'red':'#3B4859'}}>{v}</div> },
]
const columnsWy = [
@ -57,7 +57,7 @@ export default function Page({isHome}) {
console.log(1111)
// 大于0:滚轮向上滚动 小于0:滚轮向下滚动
if (e.wheelDelta > 0) {
scale += 0.05;
scale += 0.02;
img.style.transform = `scale(${scale})`;
} else {
if (scale == 1) {
@ -66,7 +66,7 @@ export default function Page({isHome}) {
}
// 缩放值大于1时,可以缩小,反之亦然
if (scale > 1) {
scale -= 0.05;
scale -= 0.02;
img.style.transform = `scale(${scale})`;
}
}

View File

@ -219,7 +219,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
</p>
</Dragger>
}
<Row gutter={[16]}>
<Row gutter={[16]} style={{marginTop:"30px"}}>
{
fileList?.length > 0 && fileList?.map(file => {
return (