lsf-dev
parent
f9e1706b4a
commit
4c54137507
|
|
@ -31,7 +31,7 @@ export default function drpOption(data) {
|
||||||
{
|
{
|
||||||
type: 'category',
|
type: 'category',
|
||||||
data: data.map(o => o.tm),
|
data: data.map(o => o.tm),
|
||||||
inverse: true,
|
inverse: false,
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -18,7 +18,7 @@ const ToolBar = ({search, setTabVal, setTms}) => {
|
||||||
<Form className='toolbarBox' layout="inline" onFinish={onFinish}>
|
<Form className='toolbarBox' layout="inline" onFinish={onFinish}>
|
||||||
<Form.Item label="时间段" name="imgName">
|
<Form.Item label="时间段" name="imgName">
|
||||||
<RangePicker
|
<RangePicker
|
||||||
allowClear
|
allowClear={false}
|
||||||
defaultValue={[moment().add(-1,'months'),moment()]}
|
defaultValue={[moment().add(-1,'months'),moment()]}
|
||||||
onChange={onFinish}
|
onChange={onFinish}
|
||||||
style={{ width: "300px" }}
|
style={{ width: "300px" }}
|
||||||
|
|
|
||||||
|
|
@ -72,7 +72,6 @@ function ShenLiu({ id, data, dispatch, onCancel }) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
debugger
|
|
||||||
setYjData(linshi)
|
setYjData(linshi)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,7 @@
|
||||||
export default function drpOption(data,yjData) {
|
export default function drpOption(data,yjData) {
|
||||||
console.log("data",data);
|
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 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),...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 max2 = Math.max(...data.map(obj => obj.rz))
|
||||||
const min2 = Math.min(...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',
|
type: 'category',
|
||||||
data: data.map(o => o.tm),
|
data: data.map(o => o.tm),
|
||||||
inverse: true,
|
inverse: false,
|
||||||
splitLine: {
|
splitLine: {
|
||||||
show: false
|
show: false
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -12,12 +12,13 @@ const { Panel } = Collapse;
|
||||||
const Page = ({showPanels}) => {
|
const Page = ({showPanels}) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
const [myKey, setMyKey] = useState('1')
|
const [myKey, setMyKey] = useState('1')
|
||||||
const [badgeType, setBadgeType] = useState('雷达回波')
|
const [badgeType, setBadgeType] = useState('')
|
||||||
const [tmObj,setTmObj] = useState({
|
const [tmObj,setTmObj] = useState({
|
||||||
tm:moment(),
|
tm:moment(),
|
||||||
hours:'08'
|
hours:'08'
|
||||||
})
|
})
|
||||||
useEffect(()=>{
|
useEffect(()=>{
|
||||||
|
setBadgeType('雷达回波')
|
||||||
dispatch.runtime.setCameraTarget({
|
dispatch.runtime.setCameraTarget({
|
||||||
center: [115.2, 31.18],
|
center: [115.2, 31.18],
|
||||||
zoom: 9,
|
zoom: 9,
|
||||||
|
|
@ -66,8 +67,7 @@ const Page = ({showPanels}) => {
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{
|
{
|
||||||
(badgeType === '雷达回波'&&myKey==='1')
|
(badgeType === '雷达回波'&&myKey==='1') ? (
|
||||||
? (
|
|
||||||
<div className='radarPageBox'>
|
<div className='radarPageBox'>
|
||||||
<RadarPage
|
<RadarPage
|
||||||
activeKey={'0'}
|
activeKey={'0'}
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ export default function Page({isHome}) {
|
||||||
const columnsSl = [
|
const columnsSl = [
|
||||||
{ title: '监测点', key: 'stationCode', dataIndex: 'stationCode',align: "center", ellipsis: true },
|
{ 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: '监测时间', 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 = [
|
const columnsWy = [
|
||||||
|
|
@ -57,7 +57,7 @@ export default function Page({isHome}) {
|
||||||
console.log(1111)
|
console.log(1111)
|
||||||
// 大于0:滚轮向上滚动 小于0:滚轮向下滚动
|
// 大于0:滚轮向上滚动 小于0:滚轮向下滚动
|
||||||
if (e.wheelDelta > 0) {
|
if (e.wheelDelta > 0) {
|
||||||
scale += 0.05;
|
scale += 0.02;
|
||||||
img.style.transform = `scale(${scale})`;
|
img.style.transform = `scale(${scale})`;
|
||||||
} else {
|
} else {
|
||||||
if (scale == 1) {
|
if (scale == 1) {
|
||||||
|
|
@ -66,7 +66,7 @@ export default function Page({isHome}) {
|
||||||
}
|
}
|
||||||
// 缩放值大于1时,可以缩小,反之亦然
|
// 缩放值大于1时,可以缩小,反之亦然
|
||||||
if (scale > 1) {
|
if (scale > 1) {
|
||||||
scale -= 0.05;
|
scale -= 0.02;
|
||||||
img.style.transform = `scale(${scale})`;
|
img.style.transform = `scale(${scale})`;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -219,7 +219,7 @@ const ModalForm = ({ mode, record, onEdit, onSave, onSimilarSave }) => {
|
||||||
</p>
|
</p>
|
||||||
</Dragger>
|
</Dragger>
|
||||||
}
|
}
|
||||||
<Row gutter={[16]}>
|
<Row gutter={[16]} style={{marginTop:"30px"}}>
|
||||||
{
|
{
|
||||||
fileList?.length > 0 && fileList?.map(file => {
|
fileList?.length > 0 && fileList?.map(file => {
|
||||||
return (
|
return (
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue