Compare commits
No commits in common. "master" and "qzc-dev" have entirely different histories.
|
Before Width: | Height: | Size: 1.6 MiB |
|
Before Width: | Height: | Size: 94 KiB |
|
Before Width: | Height: | Size: 96 KiB |
|
|
@ -210,8 +210,8 @@
|
|||
"adcd": null,
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 114.8862,
|
||||
"lttd": 31.1655,
|
||||
"lgtd": 114.883583,
|
||||
"lttd": 31.180444,
|
||||
"elev": null,
|
||||
"hasRz": true,
|
||||
"type": "sw",
|
||||
|
|
|
|||
|
|
@ -46,14 +46,6 @@
|
|||
"y": 0,
|
||||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"实时雨量1": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": 220,
|
||||
"y": 190,
|
||||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"水库": {
|
||||
"width": 32,
|
||||
|
|
@ -62,22 +54,6 @@
|
|||
"y": 0,
|
||||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"水库1": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": 32,
|
||||
"y": 0,
|
||||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"巡查": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": 128,
|
||||
"y": 32,
|
||||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"水库-离线": {
|
||||
"width": 32,
|
||||
|
|
@ -271,14 +247,6 @@
|
|||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"流量站": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": 160,
|
||||
"y": 32,
|
||||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"泵站": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
|
|
@ -318,117 +286,5 @@
|
|||
"y": 256,
|
||||
"pixelRatio": 1,
|
||||
"visible": true
|
||||
},
|
||||
"变形监测": {
|
||||
"width": 26,
|
||||
"height": 26,
|
||||
"x": 0,
|
||||
"y": 288,
|
||||
"pixelRatio": 0.8,
|
||||
"visible": true
|
||||
},
|
||||
"渗压监测": {
|
||||
"width": 26,
|
||||
"height": 26,
|
||||
"x": 28,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.6,
|
||||
"visible": true
|
||||
},
|
||||
"渗流监测": {
|
||||
"width": 22,
|
||||
"height": 22,
|
||||
"x": 52,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.5,
|
||||
"visible": true
|
||||
},
|
||||
"白蚁监测": {
|
||||
"width": 20,
|
||||
"height": 30,
|
||||
"x": 74,
|
||||
"y": 286,
|
||||
"pixelRatio": 0.5,
|
||||
"visible": true
|
||||
},
|
||||
"水闸2": {
|
||||
"width": 24,
|
||||
"height": 32,
|
||||
"x": 94,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.5,
|
||||
"visible": true
|
||||
},
|
||||
"泵站2": {
|
||||
"width": 15,
|
||||
"height": 32,
|
||||
"x": 118,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.5,
|
||||
"visible": true
|
||||
},
|
||||
"水表": {
|
||||
"width": 20,
|
||||
"height": 32,
|
||||
"x": 133,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.5,
|
||||
"visible": true
|
||||
},
|
||||
"渠道": {
|
||||
"width": 14,
|
||||
"height": 32,
|
||||
"x": 153,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.6,
|
||||
"visible": true
|
||||
},
|
||||
"水质": {
|
||||
"width": 16,
|
||||
"height": 32,
|
||||
"x": 167,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.5,
|
||||
"visible": true
|
||||
},
|
||||
"土壤墒情": {
|
||||
"width": 24,
|
||||
"height": 32,
|
||||
"x": 183,
|
||||
"y": 290,
|
||||
"pixelRatio": 0.5,
|
||||
"visible": true
|
||||
},
|
||||
"水厂": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": -3,
|
||||
"y": 315,
|
||||
"pixelRatio": 0.6,
|
||||
"visible": true
|
||||
},
|
||||
"水厂q": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": 28,
|
||||
"y": 315,
|
||||
"pixelRatio": 0.6,
|
||||
"visible": true
|
||||
},
|
||||
"水源地": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": 256,
|
||||
"y": 0,
|
||||
"pixelRatio": 0.6,
|
||||
"visible": true
|
||||
} ,
|
||||
"水源地q": {
|
||||
"width": 32,
|
||||
"height": 32,
|
||||
"x": 59,
|
||||
"y": 315,
|
||||
"pixelRatio": 0.6,
|
||||
"visible": true
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 51 KiB |
|
Before Width: | Height: | Size: 50 KiB After Width: | Height: | Size: 50 KiB |
|
|
@ -10,7 +10,6 @@ const config = {
|
|||
address,
|
||||
title: '麻城市智慧水利一张图',
|
||||
title2: '麻城市防汛一张图',
|
||||
title3: '麻城市水库一张图',
|
||||
ADCD,
|
||||
ADCD6,
|
||||
ADCD12,
|
||||
|
|
|
|||
|
|
@ -188,7 +188,6 @@ const map = {
|
|||
WataLayer: false,
|
||||
RealSkLayerQ2: false,
|
||||
RealHDLayerQ2: false,
|
||||
RealSkLayerQ3: true,
|
||||
}
|
||||
Object.keys(DCPJ_TYPES).forEach(key => {
|
||||
layerVisible['Dcpj_' + key + 'Layer'] = false;
|
||||
|
|
@ -334,7 +333,6 @@ const map = {
|
|||
RealDrpLayer: false,
|
||||
RealHDLayer: false,
|
||||
RealSkLayer: false,
|
||||
RealSkLayerQ2: true,
|
||||
BxSkLayer: false,
|
||||
FzdxLayer: false,
|
||||
WataLayer: false,
|
||||
|
|
@ -413,12 +411,10 @@ const map = {
|
|||
AdcdLayer: true,
|
||||
RoadLayer: true,
|
||||
RivlLayer: true,
|
||||
RealSkLayerQ3: true,
|
||||
};
|
||||
Object.keys(DCPJ_TYPES).forEach(key => {
|
||||
layerVisible['Dcpj_' + key + 'Layer'] = false;
|
||||
});
|
||||
dispatch.runtime.setHome();
|
||||
} else if (id === 301) {
|
||||
layerVisible = {
|
||||
RealDrpLayer: false,
|
||||
|
|
|
|||
|
|
@ -29,8 +29,7 @@ function HDStDlg({ record, onClose,open }) {
|
|||
<DpCloseButton onClick={onClose} />
|
||||
</DpAppBar>
|
||||
<div style={{padding:0}}>
|
||||
{/* <img src={`${process.env.PUBLIC_URL}/assets/jrx.png`} style={{width:'100%'}}></img> */}
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/浸润线修改2.png`} style={{width:'100%'}}></img>
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/jrx.png`} style={{width:'100%'}}></img>
|
||||
</div>
|
||||
</DialogContent>
|
||||
<div className="boxfoot"></div>
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ function HDStDlg({ record, onClose }) {
|
|||
<DpTableCell align="center">GN1</DpTableCell>
|
||||
<DpTableCell align="center">红色</DpTableCell>
|
||||
<DpTableCell align="center">-120mm</DpTableCell>
|
||||
<DpTableCell align="center">±100mm</DpTableCell>
|
||||
<DpTableCell align="center">100mm</DpTableCell>
|
||||
<DpTableCell align="center"></DpTableCell>
|
||||
|
||||
</DpTableRow>
|
||||
|
|
|
|||
|
|
@ -187,6 +187,7 @@ function RealSkTip({ record, dispatch,view }) {
|
|||
record?.setView&&view===207?
|
||||
<span style={{cursor:'pointer',color:'#50b1f9',marginLeft:20}} onClick={()=>{
|
||||
dispatch.map.setView(203)
|
||||
sessionStorage.setItem('lastCenter',JSON.stringify(record))
|
||||
}}> 进入此水库</span>
|
||||
: null :
|
||||
record.stnm == '小玉潭水库' ?
|
||||
|
|
|
|||
|
|
@ -3,7 +3,6 @@ import RealHDLayer from "./realhdlayer";
|
|||
import RealHDLayerQ2 from "./realhdlayerQ2";
|
||||
import RealSkLayer from "./realsklayer";
|
||||
import RealSkLayerQ2 from "./realsklayerQ2";
|
||||
import RealSkLayerQ3 from "./realsklayerQ3";
|
||||
import ShyjLayer from "./shyjLayer"
|
||||
import sources from "./sources";
|
||||
|
||||
|
|
@ -87,7 +86,6 @@ class LayerMgr {
|
|||
this.layers.push(new RealHDLayerQ2());
|
||||
this.layers.push(new RealSkLayer());
|
||||
this.layers.push(new RealSkLayerQ2());
|
||||
this.layers.push(new RealSkLayerQ3());
|
||||
|
||||
|
||||
this.layers.push(new BxSkLayer());
|
||||
|
|
@ -197,7 +195,6 @@ class LayerMgr {
|
|||
|
||||
this.layerMap.RealSkLayer.getStyle(),
|
||||
this.layerMap.RealSkLayerQ2.getStyle(),
|
||||
this.layerMap.RealSkLayerQ3.getStyle(),
|
||||
|
||||
this.layerMap.BxSkLayer.getStyle(),
|
||||
this.layerMap.RealHDLayer.getStyle(),
|
||||
|
|
|
|||
|
|
@ -18,8 +18,8 @@ const ShapeStyle = {
|
|||
'icon-image': '水库-超汛限',
|
||||
'icon-size': [
|
||||
'interpolate', ['linear'], ['zoom'],
|
||||
10, 0.5,
|
||||
14, 0.5,
|
||||
10, 0.8,
|
||||
14, 0.8,
|
||||
],
|
||||
|
||||
'text-allow-overlap': true,
|
||||
|
|
|
|||
|
|
@ -1,469 +0,0 @@
|
|||
import clone from "clone";
|
||||
import { SkRealPromise } from "../../../../models/_/real";
|
||||
import { parseGeoJSON } from "../../../../utils/tools";
|
||||
import { InfoPopNames } from "../../InfoPops";
|
||||
import BaseLayer from "./baselayer";
|
||||
|
||||
|
||||
const SourceName = '实时水库q3';
|
||||
|
||||
|
||||
const ShapeStyle = {
|
||||
id: SourceName,
|
||||
type: 'symbol',
|
||||
source: SourceName,
|
||||
layout: {
|
||||
'icon-allow-overlap': true,
|
||||
'text-allow-overlap': true,
|
||||
'icon-image': [
|
||||
'case',
|
||||
['==', ['get', 'rzWarning'], 1], '水库-超汛限',
|
||||
'水库'
|
||||
],
|
||||
'icon-size': [
|
||||
'interpolate', ['linear'], ['zoom'],
|
||||
10, 0.5,
|
||||
14, 0.5,
|
||||
],
|
||||
|
||||
'text-allow-overlap': true,
|
||||
'text-size': [
|
||||
'interpolate', ['linear'], ['zoom'],
|
||||
10, 10,
|
||||
14, 14,
|
||||
],
|
||||
'text-font': ['Roboto Black'],
|
||||
'text-field': [
|
||||
'step',
|
||||
['zoom'],
|
||||
'',
|
||||
12, ['get', 'stnm']
|
||||
],
|
||||
'text-anchor': 'top',
|
||||
'text-offset': [0, 1],
|
||||
|
||||
'visibility': 'none',
|
||||
},
|
||||
paint: {
|
||||
'text-color': '#fff'
|
||||
}
|
||||
};
|
||||
|
||||
export default class RealSkLayerQ3 extends BaseLayer {
|
||||
|
||||
static LayerName = 'RealSkLayerQ3';
|
||||
|
||||
static SourceName = SourceName;
|
||||
|
||||
getStyle() {
|
||||
const ret = clone(ShapeStyle);
|
||||
this._setStyleVisibility(ret);
|
||||
return ret;
|
||||
}
|
||||
|
||||
getName() {
|
||||
return RealSkLayerQ3.LayerName;
|
||||
}
|
||||
|
||||
getSubLayers() {
|
||||
return [ShapeStyle.id];
|
||||
}
|
||||
|
||||
getRefreshInterval() {
|
||||
return 60 * 1000;
|
||||
}
|
||||
|
||||
|
||||
async doRefreshLayer(mapCtrl) {
|
||||
const ms = mapCtrl.getSource(SourceName);
|
||||
|
||||
let data = [
|
||||
{
|
||||
"stcd": "61614200",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "浮桥河水库",
|
||||
"adcd": "421181100000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 114.88069,
|
||||
"lttd": 31.171967,
|
||||
"elev": 0,
|
||||
"damel": 71.33,
|
||||
"dsflz": 68.04,
|
||||
"fsltdz": 64.89,
|
||||
"ddz": 51.78,
|
||||
"zcxsw": 64.89,
|
||||
"jhhsw":68.7,
|
||||
"drpTm": "2025-06-06T22:00:00.000Z",
|
||||
"today": 4,
|
||||
"h1": 4,
|
||||
"h3": 4,
|
||||
"h6": 4,
|
||||
"h12": 4,
|
||||
"h24": 4,
|
||||
"h48": 4,
|
||||
"drpState": 2,
|
||||
"rz": 65.7,
|
||||
"w": 45490,
|
||||
"xs":32133,
|
||||
"a_fsltdz": -4.189999999999998,
|
||||
"rzTm": "2025-06-06T22:00:00.000Z",
|
||||
"rzWarning": 1,
|
||||
"rzState": 2,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop",
|
||||
"setView":true
|
||||
},
|
||||
{
|
||||
"stcd": "61612610",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "三河口水库",
|
||||
"adcd": "421181109000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.166667,
|
||||
"lttd": 31.333333,
|
||||
"elev": 0,
|
||||
"damel": 156.8,
|
||||
"dsflz": 154.99,
|
||||
"fsltdz": 149,
|
||||
"ddz": 124,
|
||||
"zcxsw": 149,
|
||||
"drpTm": "2025-06-06T22:00:00.000Z",
|
||||
"today": 43.5,
|
||||
"h1": 32,
|
||||
"h3": 43.5,
|
||||
"h6": 43.5,
|
||||
"h12": 43.5,
|
||||
"h24": 43.5,
|
||||
"h48": 43.5,
|
||||
"drpState": 1,
|
||||
"rz": 141.56,
|
||||
"xs":12744,
|
||||
"w": 16926,
|
||||
"a_fsltdz": -7.439999999999998,
|
||||
"rzTm": "2025-06-06T22:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 1,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "61613010",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "明山水库",
|
||||
"adcd": "421181103000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.066667,
|
||||
"lttd": 31.016667,
|
||||
"elev": 0,
|
||||
"damel": 98.7,
|
||||
"dsflz": 96.07,
|
||||
"fsltdz": 93,
|
||||
"ddz": 78.02,
|
||||
"zcxsw": 93,
|
||||
"drpTm": "2025-06-06T22:00:00.000Z",
|
||||
"today": 15,
|
||||
"h1": 15,
|
||||
"h3": 15,
|
||||
"h6": 15,
|
||||
"h12": 15,
|
||||
"h24": 15,
|
||||
"h48": 15,
|
||||
"drpState": 1,
|
||||
"rz": 84.67,
|
||||
"xs":10432,
|
||||
"w": 16900,
|
||||
"a_fsltdz": -8.329999999999998,
|
||||
"rzTm": "2025-06-06T22:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 1,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "61612700",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "碧绿河水库",
|
||||
"adcd": "421181109000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.214444,
|
||||
"lttd": 31.299722,
|
||||
"elev": 0,
|
||||
"damel": 142.9,
|
||||
"dsflz": 139.08,
|
||||
"fsltdz": 137,
|
||||
"ddz": 105,
|
||||
"zcxsw": 137,
|
||||
"drpTm": "2025-06-06T22:00:00.000Z",
|
||||
"today": 50,
|
||||
"h1": 38,
|
||||
"h3": 50,
|
||||
"h6": 50,
|
||||
"h12": 50,
|
||||
"h24": 50,
|
||||
"h48": 50,
|
||||
"drpState": 1,
|
||||
"rz": 120,
|
||||
"w": 6015,
|
||||
"xs":1676,
|
||||
"a_fsltdz": -17,
|
||||
"rzTm": "2025-06-06T00:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 2,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "61612750",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "大坳水库",
|
||||
"adcd": "421181201000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.110833,
|
||||
"lttd": 31.071944,
|
||||
"elev": 0,
|
||||
"damel": 215.75,
|
||||
"dsflz": 212.7,
|
||||
"fsltdz": 208.48,
|
||||
"ddz": 194.6,
|
||||
"zcxsw": 208.48,
|
||||
"drpTm": "2025-06-06T00:00:00.000Z",
|
||||
"today": 0,
|
||||
"h1": 0,
|
||||
"h3": 0,
|
||||
"h6": 0,
|
||||
"h12": 0,
|
||||
"h24": 0,
|
||||
"h48": 0,
|
||||
"drpState": 2,
|
||||
"rz": 203.4,
|
||||
"xs":1164,
|
||||
"w": 2797,
|
||||
"a_fsltdz": -5.079999999999984,
|
||||
"rzTm": "2025-06-06T00:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 2,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "61612300",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "大旗山水库",
|
||||
"adcd": "421181111000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.1375,
|
||||
"lttd": 31.478333,
|
||||
"elev": 0,
|
||||
"damel": 171.6,
|
||||
"dsflz": 170.1,
|
||||
"fsltdz": 167.4,
|
||||
"ddz": 149,
|
||||
"zcxsw": 167.4,
|
||||
"drpTm": "2025-06-06T00:00:00.000Z",
|
||||
"today": 0,
|
||||
"h1": 0,
|
||||
"h3": 0,
|
||||
"h6": 0,
|
||||
"h12": 0,
|
||||
"h24": 0,
|
||||
"h48": 0,
|
||||
"drpState": 2,
|
||||
"rz": 156.8,
|
||||
"w": 1834,
|
||||
"xs":448,
|
||||
"a_fsltdz": -10.599999999999994,
|
||||
"rzTm": "2025-06-06T00:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 2,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "61612580",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "芭茅河水库",
|
||||
"adcd": "421181110000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.101389,
|
||||
"lttd": 31.307778,
|
||||
"elev": 0,
|
||||
"damel": 127.8,
|
||||
"dsflz": 125.57,
|
||||
"fsltdz": 122.44,
|
||||
"ddz": 106.94,
|
||||
"zcxsw": 122.44,
|
||||
"drpTm": "2025-06-06T22:00:00.000Z",
|
||||
"today": 18,
|
||||
"h1": 18,
|
||||
"h3": 18,
|
||||
"h6": 18,
|
||||
"h12": 18,
|
||||
"h24": 18,
|
||||
"h48": 18,
|
||||
"drpState": 1,
|
||||
"rz": 117.78,
|
||||
"w": 1577,
|
||||
"xs":628,
|
||||
"a_fsltdz": -4.659999999999997,
|
||||
"rzTm": "2025-06-06T22:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 1,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "61612560",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "大河铺水库",
|
||||
"adcd": "421181112000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 114.941111,
|
||||
"lttd": 31.464444,
|
||||
"elev": 0,
|
||||
"damel": 162.21,
|
||||
"dsflz": 160.08,
|
||||
"fsltdz": 159,
|
||||
"ddz": 142.5,
|
||||
"zcxsw": 159,
|
||||
"drpTm": "2025-06-06T22:00:00.000Z",
|
||||
"today": 50,
|
||||
"h1": 50,
|
||||
"h3": 50,
|
||||
"h6": 50,
|
||||
"h12": 50,
|
||||
"h24": 50,
|
||||
"h48": 50,
|
||||
"drpState": 1,
|
||||
"rz": 144.5,
|
||||
"w": 1574,
|
||||
"xs":"--",
|
||||
"a_fsltdz": -14.5,
|
||||
"rzTm": "2025-06-06T00:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 2,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "716460001",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "杉林河水库",
|
||||
"adcd": "421181107000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.433056,
|
||||
"lttd": 31.304444,
|
||||
"elev": 0,
|
||||
"damel": 236.2,
|
||||
"dsflz": 233.92,
|
||||
"fsltdz": 231,
|
||||
"ddz": 204,
|
||||
"zcxsw": 231,
|
||||
"drpTm": "2025-04-11T05:00:00.000Z",
|
||||
"today": 0,
|
||||
"h1": 0,
|
||||
"h3": 0,
|
||||
"h6": 0,
|
||||
"h12": 0,
|
||||
"h24": 0,
|
||||
"h48": 0,
|
||||
"drpState": 2,
|
||||
"rz": 224.31,
|
||||
"w": 1415,
|
||||
"xs":750,
|
||||
"a_fsltdz": -6.689999999999998,
|
||||
"rzTm": "2025-04-11T05:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 2,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
{
|
||||
"stcd": "61614600",
|
||||
"type": "sk",
|
||||
"hasRz": true,
|
||||
"stnm": "黑石咀水库",
|
||||
"adcd": "421181103000",
|
||||
"wscd": null,
|
||||
"importancy": 0,
|
||||
"lgtd": 115.056389,
|
||||
"lttd": 31.001944,
|
||||
"elev": 0,
|
||||
"damel": 104,
|
||||
"dsflz": 101.05,
|
||||
"fsltdz": 98.3,
|
||||
"ddz": 81.5,
|
||||
"zcxsw": 98.3,
|
||||
"drpTm": "2025-06-06T00:00:00.000Z",
|
||||
"today": 0,
|
||||
"h1": 0,
|
||||
"h3": 0,
|
||||
"h6": 0,
|
||||
"h12": 0,
|
||||
"h24": 0,
|
||||
"h48": 0,
|
||||
"drpState": 2,
|
||||
"rz": 83,
|
||||
"w": 1026,
|
||||
"xs":375,
|
||||
"a_fsltdz": -15.299999999999997,
|
||||
"rzTm": "2025-06-06T00:00:00.000Z",
|
||||
"rzWarning": 0,
|
||||
"rzState": 2,
|
||||
"layer": "RealSkLayer",
|
||||
"layerPop": "RealSkPop"
|
||||
},
|
||||
];
|
||||
if (Array.isArray(data)) {
|
||||
data.forEach(o => {
|
||||
const strarz = o.rz - o.fsltdz;
|
||||
if (!isNaN(strarz)) {
|
||||
o.strarz = strarz.toFixed(2);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
ms.setData(parseGeoJSON(data));
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
getFeatureTip(record) {
|
||||
return record.stnm;
|
||||
}
|
||||
|
||||
featureClicked(properties, dispatch) {
|
||||
if (properties.stnm === '小玉潭水库') {
|
||||
/*
|
||||
dispatch.runtime.setInfoDlg({
|
||||
layerId: 'Three', properties: properties
|
||||
});
|
||||
*/
|
||||
} else {
|
||||
dispatch.runtime.setFeaturePop({
|
||||
type: InfoPopNames.RealSkPop,
|
||||
properties,
|
||||
coordinates: [properties.lgtd, properties.lttd],
|
||||
offsetPop: true,
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -4,7 +4,6 @@ import RealHDLayer from "./realhdlayer";
|
|||
import RealHDLayerQ2 from "./realhdlayerQ2";
|
||||
import RealSkLayer from "./realsklayer";
|
||||
import RealSkLayerQ2 from "./realsklayerQ2";
|
||||
import RealSkLayerQ3 from "./realsklayerQ3";
|
||||
import { DCPJ_TYPES } from "../../consts";
|
||||
import WataLayer from "./watalayer";
|
||||
import PlaneAreaLayer from "./planarealayer";
|
||||
|
|
@ -309,10 +308,6 @@ const sources = {
|
|||
type: 'geojson',
|
||||
data: { type: 'FeatureCollection', features: [] },
|
||||
},
|
||||
[RealSkLayerQ3.SourceName]: {
|
||||
type: 'geojson',
|
||||
data: { type: 'FeatureCollection', features: [] },
|
||||
},
|
||||
[PicStLayer.SourceName]: {
|
||||
type: 'geojson',
|
||||
data: { type: 'FeatureCollection', features: [] },
|
||||
|
|
|
|||
|
|
@ -126,8 +126,7 @@ export default function ActionDock({ }) {
|
|||
<div className="dock-item" onClick={() => {
|
||||
if (o.children) {
|
||||
if(o.id===400){
|
||||
// window.open("https://axhub.im/ax9/eec435b86544bac8/#id=arlcql&p=%E7%81%8C%E5%8C%BA%E6%80%BB%E8%A7%88&sc=1&c=1")
|
||||
window.open("https://workspace.easyv.cloud/shareScreen/eyJzY3JlZW5JZCI6MzUwOTQ0MywiZXhwaXJlZEF0IjoiMjAyNS0wNy0xMFQwODo1Nzo1NS40MjBaIn0=")
|
||||
window.open("https://axhub.im/ax9/eec435b86544bac8/#id=arlcql&p=%E7%81%8C%E5%8C%BA%E6%80%BB%E8%A7%88&sc=1&c=1")
|
||||
return
|
||||
}
|
||||
//一级菜单
|
||||
|
|
|
|||
|
|
@ -80,12 +80,9 @@ export default function Title() {
|
|||
const getTitle = (view)=>{
|
||||
if(view===1||view===3||view===4||view===5||view===6||view===8){
|
||||
return `${ config.title2 }`
|
||||
}else{
|
||||
return `${ config.title }`
|
||||
}
|
||||
if(view===203||view===205||view===206||view===207){
|
||||
return `${ config.title3 }`
|
||||
}
|
||||
|
||||
return `${ config.title }`
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -108,7 +108,7 @@ export default function Demo1() {
|
|||
<PanelIndex name={key} {...params} />
|
||||
</CSSTransition>
|
||||
)
|
||||
} else if (wg && yuananType == 'sh') {
|
||||
} else if (wg) {
|
||||
return (
|
||||
<CSSTransition key={key} unmountOnExit exit={false} timeout={500} classNames="dp-panelgroup">
|
||||
<PanelIndex name={key} {...params} />
|
||||
|
|
|
|||
|
|
@ -439,7 +439,7 @@ function DrpReal({ style }) {
|
|||
"eng_scal": "小(1)型",
|
||||
"danger_stat": "非病险水库",
|
||||
"label": "2023高标准",
|
||||
"value": 50.5,
|
||||
"value": 43.95,
|
||||
"diff_value": -0.0246,
|
||||
"trend": -1,
|
||||
"is_has_data": "y",
|
||||
|
|
@ -558,7 +558,7 @@ function DrpReal({ style }) {
|
|||
"eng_scal": "小(1)型",
|
||||
"danger_stat": "非病险水库",
|
||||
"label": "2023高标准",
|
||||
"value": 50.5,
|
||||
"value": 43.95,
|
||||
"diff_value": -0.0142,
|
||||
"trend": -1,
|
||||
"is_has_data": "y",
|
||||
|
|
|
|||
|
|
@ -58,53 +58,7 @@ function HDReal({ style }) {
|
|||
</div>
|
||||
}
|
||||
>
|
||||
<div style={{border:'1px solid #408ecb',width:"100%",borderRadius:'5px',display:'flex',cursor:'pointer',marginBottom:'1rem'}} onClick={handleBxDlg}>
|
||||
<div style={{width:"20%",fontSize:'1.2rem',color:'#408ecb',padding:'1rem',textAlign:'center'}}>变形监测</div>
|
||||
<div style={{width:"80%",display:'flex',flexDirection:'column',justifyContent:'center'}}>
|
||||
<div style={{width:'100%',display:'flex',justifyContent:'start',color:'#ffffff',fontSize:'0.8rem',padding:"0.2rem 0"}}>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>水库名称:</div>
|
||||
<div style={{width:'5rem',textAlign:'left'}}>浮桥河水库</div>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>预警级别:</div>
|
||||
<div style={{width:'5rem',textAlign:'left',color:'red'}}>红色</div>
|
||||
</div>
|
||||
<div style={{width:'100%',display:'flex',justifyContent:'start',color:'#ffffff',fontSize:'0.8rem',padding:"0.2rem 0"}}>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>测点编号:</div>
|
||||
<div style={{width:'5rem',textAlign:'left'}}>GN1</div>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>监测值:</div>
|
||||
<div style={{width:'5rem',textAlign:'left'}}>-120mm</div>
|
||||
</div>
|
||||
<div style={{width:'100%',display:'flex',justifyContent:'start',color:'#ffffff',fontSize:'0.8rem',padding:"0.2rem 0"}}>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>阈值:</div>
|
||||
<div style={{width:'5rem',textAlign:'left'}}>±100mm</div>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>告警时间:</div>
|
||||
<div style={{width:'8rem',textAlign:'left'}}>2025-07-03 07:00:01</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div style={{border:'1px solid #408ecb',width:"100%",borderRadius:'5px',display:'flex',cursor:'pointer',marginBottom:'1rem',position:'relative'}}>
|
||||
<div style={{width:"20%",fontSize:'1.2rem',color:'#408ecb',padding:'1rem',textAlign:'center',display:'flex',alignItems:'center'}}>视频AI</div>
|
||||
<div style={{width:"80%",display:'flex',flexDirection:'column',justifyContent:'center'}}>
|
||||
<div style={{width:'100%',display:'flex',justifyContent:'start',color:'#ffffff',fontSize:'0.8rem',padding:"0.2rem 0"}}>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>水库名称:</div>
|
||||
<div style={{width:'5rem',textAlign:'left'}}>浮桥河水库</div>
|
||||
</div>
|
||||
<div style={{width:'100%',display:'flex',justifyContent:'start',color:'#ffffff',fontSize:'0.8rem',padding:"0.2rem 0"}}>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>告警类型:</div>
|
||||
<div style={{width:'5rem',textAlign:'left',color:"red"}}>漂浮物</div>
|
||||
</div>
|
||||
<div style={{width:'100%',display:'flex',justifyContent:'start',color:'#ffffff',fontSize:'0.8rem',padding:"0.2rem 0"}}>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>告警点位:</div>
|
||||
<div style={{width:'5rem',textAlign:'left'}}>大坝坝中</div>
|
||||
</div>
|
||||
<div style={{width:'100%',display:'flex',justifyContent:'start',color:'#ffffff',fontSize:'0.8rem',padding:"0.2rem 0"}}>
|
||||
<div style={{width:'4rem',textAlign:'right'}}>告警时间:</div>
|
||||
<div style={{width:'8rem',textAlign:'left'}}>2025-07-03 07:00:01</div>
|
||||
</div>
|
||||
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/jcgj.jpg`} alt="" style={{ position:'absolute',top:"0",right:'0',width:'35%',height:'100%',padding:'0.5rem' }} onClick={handleBxDlg}/>
|
||||
</div>
|
||||
</div>
|
||||
{/* <div style={{ display: 'flex', padding: '10px 5px', marginLeft: 30, justifyContent: 'space-between', flexWrap: 'wrap' }}>
|
||||
<div style={{ display: 'flex', padding: '10px 5px', marginLeft: 30, justifyContent: 'space-between', flexWrap: 'wrap' }}>
|
||||
<div>
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/s3.png`} alt="" style={{ width: 180, cursor: 'pointer' }} onClick={handleBxDlg} />
|
||||
<img src={`${process.env.PUBLIC_URL}/assets/s4.png`} alt="" style={{ width: 180 }} />
|
||||
|
|
@ -124,7 +78,7 @@ function HDReal({ style }) {
|
|||
<img src={`${process.env.PUBLIC_URL}/assets/s7.png`} alt="" style={{ width: 180, marginTop: 5 }} />
|
||||
|
||||
|
||||
</div> */}
|
||||
</div>
|
||||
{
|
||||
setting && <Setting onClose={() => showSetting(false)} />
|
||||
}
|
||||
|
|
|
|||
|
|
@ -104,8 +104,8 @@ function DrpReal({ style }) {
|
|||
], // 从properties中动态读取icon字段
|
||||
'icon-size': [
|
||||
'interpolate', ['linear'], ['zoom'],
|
||||
10, 0.5,
|
||||
14, 0.5,
|
||||
10, 0.8,
|
||||
14, 0.8,
|
||||
],
|
||||
'text-size': [
|
||||
'interpolate', ['linear'], ['zoom'],
|
||||
|
|
|
|||
|
|
@ -228,7 +228,7 @@ export default function AreaDrp({ style }) {
|
|||
<>
|
||||
<div style={{color:'#ffffff',padding:'7px 5px 10px 5px',display:'flex',alignItems:'center',fontWeight:200}}>
|
||||
{/* 时段选择 */}
|
||||
麻城市未来2小时最大网格点雨量量级统计
|
||||
麻城市未来24小时最大网格点雨量量级统计
|
||||
|
||||
{/* <div className='tm' style={{position:"relative",zIndex:999999,color:"#fff",width:"71%",margin:'10px'}}>
|
||||
<RangePicker
|
||||
|
|
|
|||
|
|
@ -60,19 +60,6 @@ export default function AreaDrp({ style }) {
|
|||
}
|
||||
},[show])
|
||||
|
||||
useEffect(()=>{
|
||||
if(tab==='1'){
|
||||
dispatch.rcview.showRealContour('htest')
|
||||
}else{
|
||||
dispatch.rcview.showRealContour('htest')
|
||||
}
|
||||
|
||||
return ()=>{
|
||||
dispatch.runtime.setLayerSetting({ contour: null, dem: undefined });
|
||||
dispatch.runtime.setLayerSetting({ planeArea: null });
|
||||
dispatch.map.setLayerVisible({ ContourLayer: false });
|
||||
}
|
||||
},[tab])
|
||||
|
||||
return (
|
||||
<PanelBox
|
||||
|
|
|
|||