赣州市洪水风险预警系统三维版本
xiebin
2023-01-06 6225aac630950317c4446b9fc952265d43578111
地图数据展示
2 files modified
96 ■■■■ changed files
widgets/RiskEarlyWarning/Widget.js 80 ●●●● patch | view | raw | blame | history
widgets/RiskEarlyWarning/css/style.css 16 ●●●● patch | view | raw | blame | history
widgets/RiskEarlyWarning/Widget.js
@@ -2414,9 +2414,9 @@
                var times = that.getOneThreeSixTime(time)
                if (that.libraryNoOneEight == 13) {
                    url = 'http://192.168.0.207:82/blade-ycreal/mountainrain/ss?type=0&mou=' + mou + '&time=' + time + '&k=13' + '&dateEnds1=' + times[0] + '&dateEnds3=' + times[1] + '&dateEnds6=' + times[2] + '&dateEnds24=' + times[4] + '&timei=' + times[5]
                    url = 'http://127.0.0.1:82/blade-ycreal/mountainrain/ss?type=0&mou=' + mou + '&time=' + time + '&k=13' + '&dateEnds1=' + times[0] + '&dateEnds3=' + times[1] + '&dateEnds6=' + times[2] + '&dateEnds24=' + times[4] + '&timei=' + times[5]
                } else {
                    url = 'http://192.168.0.207:82/blade-ycreal/mountainrain/ss?type=1&time=' + time + '&dateEnds1=' + times[0] + '&dateEnds3=' + times[1] + '&dateEnds6=' + times[2] + '&dateEnds24=' + times[4] + '&k=18&timei=' + times[5]
                    url = 'http://127.0.0.1:82/blade-ycreal/mountainrain/ss?type=1&time=' + time + '&dateEnds1=' + times[0] + '&dateEnds3=' + times[1] + '&dateEnds6=' + times[2] + '&dateEnds24=' + times[4] + '&k=18&timei=' + times[5]
                }
                $.ajax({
                    url: url,
@@ -2527,9 +2527,9 @@
                var url = null
                if (that.futureOfRealTime == 0) {
                    url = 'http://192.168.0.207:82/blade-ycreal/mountainrain/yc?time=' + time
                    url = 'http://127.0.0.1:82/blade-ycreal/mountainrain/yc?time=' + time
                } else {
                    url = 'http://192.168.0.207:82/blade-ycreal/mountainrain/dyc?time=' + time
                    url = 'http://127.0.0.1:82/blade-ycreal/mountainrain/dyc?time=' + time
                }
                $.ajax({
@@ -2653,7 +2653,7 @@
                var that = this;
                that.completetwo = false;
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/floodinundation/selectC?code=2&mou=' + mou + '&times=' + datetime + '&k=' + that.libraryNoOneEight,
                    url: 'http://127.0.0.1:82/blade-ycreal/floodinundation/selectC?code=2&mou=' + mou + '&times=' + datetime + '&k=' + that.libraryNoOneEight,
                    type: 'GET',
                    dataType: 'JSON',
                    success: function success(data) {
@@ -2684,7 +2684,7 @@
                console.log(tomorrow, current);
                var that = this;
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/floodinundation/selectCyc?code=2&begintime=' + tomorrow + '&endtime=' + current,
                    url: 'http://127.0.0.1:82/blade-ycreal/floodinundation/selectCyc?code=2&begintime=' + tomorrow + '&endtime=' + current,
                    type: 'GET',
                    dataType: 'JSON',
                    success: function success(data) {
@@ -2719,7 +2719,7 @@
                var that = this;
                that.completethree = false;
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/floodinundation/selectC?code=1&mou=' + mou + '&times=' + datetime + '&k=' + that.libraryNoOneEight,
                    url: 'http://127.0.0.1:82/blade-ycreal/floodinundation/selectC?code=1&mou=' + mou + '&times=' + datetime + '&k=' + that.libraryNoOneEight,
                    type: 'GET',
                    dataType: 'JSON',
                    success: function success(data) {
@@ -2751,7 +2751,7 @@
                var that = this;
                that.completethree = false
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/floodinundation/selectCyc?code=1&begintime=' + tomorrow + '&endtime=' + current,
                    url: 'http://127.0.0.1:82/blade-ycreal/floodinundation/selectCyc?code=1&begintime=' + tomorrow + '&endtime=' + current,
                    type: 'GET',
                    dataType: 'JSON',
                    success: function success(data) {
@@ -2788,7 +2788,7 @@
                that.completeone = false;
                that.showLibraryOrDate();
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/stop/selectskYj',
                    url: 'http://127.0.0.1:82/blade-ycreal/stop/selectskYj',
                    type: 'post',
                    dataType: 'JSON',
                    data: {
@@ -3000,7 +3000,7 @@
                var that = this;
                that.completeone = false
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/stop/selectYc',
                    url: 'http://127.0.0.1:82/blade-ycreal/stop/selectYc',
                    type: 'post',
                    dataType: 'JSON',
                    data: {
@@ -3203,7 +3203,7 @@
                    };
                }
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/stop/selectYlyj?type=0',
                    url: 'http://127.0.0.1:82/blade-ycreal/stop/selectYlyj?type=0',
                    type: 'POST',
                    dataType: 'JSON',
                    data: rquestData,
@@ -3316,9 +3316,9 @@
                var url = null;
                var times = that.getOneThreeSixTime(time);
                if (that.libraryNoOneEight == 13) {
                    url = 'http://192.168.0.207:82/blade-ycreal/pptnr/pptnYj?type=0&k=13&timez=' + time + '&dateBegins1=' + times[0] + '&dateBegins3=' + times[1] + '&dateBegins6=' + times[2] + '&timet=' + times[5]
                    url = 'http://127.0.0.1:82/blade-ycreal/pptnr/pptnYj?type=0&k=13&timez=' + time + '&dateBegins1=' + times[0] + '&dateBegins3=' + times[1] + '&dateBegins6=' + times[2] + '&timet=' + times[5]
                } else {
                    url = 'http://192.168.0.207:82/blade-ycreal/pptnr/pptnYj?type=1&timez=' + time + '&dateBegins1=' + times[0] + '&dateBegins3=' + times[1] + '&dateBegins6=' + times[2] + '&timet=' + times[5] + '&k=18'
                    url = 'http://127.0.0.1:82/blade-ycreal/pptnr/pptnYj?type=1&timez=' + time + '&dateBegins1=' + times[0] + '&dateBegins3=' + times[1] + '&dateBegins6=' + times[2] + '&timet=' + times[5] + '&k=18'
                }
                $.ajax({
                    url: url,
@@ -3430,7 +3430,7 @@
                var that = this;
                that.completetwo = false;
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/rsvrr/selectyjck',
                    url: 'http://127.0.0.1:82/blade-ycreal/rsvrr/selectyjck',
                    type: 'post',
                    dataType: 'JSON',
                    data: {
@@ -3466,7 +3466,7 @@
            forecastReservoirStation: function (time) {
                var that = this;
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/rsvrr/selectycck',
                    url: 'http://127.0.0.1:82/blade-ycreal/rsvrr/selectycck',
                    type: 'post',
                    dataType: 'JSON',
                    data: {
@@ -3513,7 +3513,7 @@
                var that = this;
                that.completethree = false;
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/riverr/selectyj?mou=0',
                    url: 'http://127.0.0.1:82/blade-ycreal/riverr/selectyj?mou=0',
                    type: 'post',
                    dataType: 'JSON',
                    data: {
@@ -3549,7 +3549,7 @@
            forecastRiverStation: function (time) {
                var that = this;
                $.ajax({
                    url: 'http://192.168.0.207:82/blade-ycreal/riverr/selectyc',
                    url: 'http://127.0.0.1:82/blade-ycreal/riverr/selectyc',
                    type: 'post',
                    dataType: 'JSON',
                    data: {
@@ -3962,23 +3962,23 @@
                var outlineColors = null;
                var twinkleColor = null;
                if (item == '暂无预测') {
                    outlineColors = Cesium.Color.fromBytes(180, 180, 180);
                    twinkleColor = null;
                    outlineColors = 'grey'
                    twinkleColor = null
                } else if (item == '无预警') {
                    outlineColors = Cesium.Color.fromBytes(68, 204, 68);
                    twinkleColor = null;
                } else if (item == '红色预警' || item == '三级预警') {
                    outlineColors = Cesium.Color.fromBytes(255, 9, 9);
                    twinkleColor = Cesium.Color.fromBytes(255, 9, 9, 100);
                } else if (item == '黄色预警' || item == '一级预警') {
                    outlineColors = Cesium.Color.fromBytes(231, 227, 12);
                    twinkleColor = Cesium.Color.fromBytes(231, 227, 12, 100);
                    outlineColors = 'green'
                    twinkleColor = null
                } else if (item == '红色预警' || item == '一级预警') {
                    outlineColors = 'red'
                    twinkleColor = 'red-transparent'
                } else if (item == '黄色预警' || item == '二级预警') {
                    outlineColors = 'yellow'
                    twinkleColor = 'yellow-transparent'
                } else if (item == '蓝色预警') {
                    outlineColors = Cesium.Color.fromBytes(2, 160, 223);
                    twinkleColor = Cesium.Color.fromBytes(2, 160, 223, 100);
                } else if (item == '橙色预警' || item == '二级预警') {
                    outlineColors = Cesium.Color.fromBytes(241, 146, 22);
                    twinkleColor = Cesium.Color.fromBytes(241, 146, 22, 100);
                    outlineColors = 'blue'
                    twinkleColor = 'blue-transparent'
                } else if (item == '橙色预警') {
                    outlineColors = 'orange'
                    twinkleColor = 'orange-transparent'
                }
                return {outlineColors: outlineColors, twinkleColor: twinkleColor};
            },
@@ -4297,14 +4297,14 @@
             */
            getPointRain: function (dateBegin, dateEnd) {
                $.ajax({
                    url: 'http://192.168.0.207:82/gzsq/gz/rthy/monitor/rainDesc?addvcd=360700&plevel=50&dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                    url: 'http://127.0.0.1:82/gzsq/gz/rthy/monitor/rainDesc?addvcd=360700&plevel=50&dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                    dataType: 'JSON',
                    type: 'get',
                    success: function success(data) {
                        var _data = data.data;
                        _data = _data.split("点")[0];
                        $.ajax({
                            url: 'http://192.168.0.207:82/gzsq/rest/rthyinfo/core/rain/station/accpAll?Addvcd=360700&dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                            url: 'http://127.0.0.1:82/gzsq/rest/rthyinfo/core/rain/station/accpAll?Addvcd=360700&dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                            dataType: 'JSON',
                            type: 'GET',
                            success: function success(result) {
@@ -4322,7 +4322,7 @@
                var time = dateEnd.split(' ')[0];
                var _html = time.split('-')[1] + "月" + time.split('-')[2] + "日";
                $.ajax({
                    url: 'http://192.168.0.207:82/gzsq/rest/rthyinfo/core/river/overList?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd + '&orderMode=cmpwrzdesc',
                    url: 'http://127.0.0.1:82/gzsq/rest/rthyinfo/core/river/overList?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd + '&orderMode=cmpwrzdesc',
                    dataType: 'JSON',
                    type: 'GET',
                    success: function success(data) {
@@ -4337,7 +4337,7 @@
                            _html += "暂无河道超警信息。";
                        }
                        $.ajax({
                            url: 'http://192.168.0.207:82/gzsq/rest/rthyinfo/core/river/riseMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                            url: 'http://127.0.0.1:82/gzsq/rest/rthyinfo/core/river/riseMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                            dataType: 'JSON',
                            type: 'GET',
                            success: function success(data) {
@@ -4345,7 +4345,7 @@
                                _html += "涨幅最大的是:" + a[0].cnnm + "<a href='javascript:void(0)'" + "aname='" + a[0].name + "' acode='" + a[0].code + "'>" + a[0].name + "</a>站,(涨" + a[0].zcv + "米)。</br>跌幅最大的是:";
                                $.ajax({
                                    url: 'http://192.168.0.207:82/gzsq/rest/rthyinfo/core/river/fallMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                                    url: 'http://127.0.0.1:82/gzsq/rest/rthyinfo/core/river/fallMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                                    dataType: 'JSON',
                                    type: 'GET',
                                    success: function success(data) {
@@ -4361,7 +4361,7 @@
                var times = dateEnd.split(' ')[0];
                var _htmls = times.split('-')[1] + "月" + times.split('-')[2] + "日";
                $.ajax({
                    url: 'http://192.168.0.207:82/gzsq/data/rthyinfo/rsvr/last/overList?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd + '&orderMode=cmpfsltdzdesc',
                    url: 'http://127.0.0.1:82/gzsq/data/rthyinfo/rsvr/last/overList?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd + '&orderMode=cmpfsltdzdesc',
                    dataType: 'JSON',
                    type: 'GET',
                    success: function success(data) {
@@ -4378,7 +4378,7 @@
                            _htmls += "暂无水库超警信息。";
                        }
                        $.ajax({
                            url: 'http://192.168.0.207:82/gzsq/data/rthyinfo/rsvr/last/riseMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                            url: 'http://127.0.0.1:82/gzsq/data/rthyinfo/rsvr/last/riseMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                            dataType: 'JSON',
                            type: 'GET',
                            success: function success(data) {
@@ -4388,7 +4388,7 @@
                                }
                                $.ajax({
                                    url: 'http://192.168.0.207:82/gzsq/data/rthyinfo/rsvr/last/fallMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                                    url: 'http://127.0.0.1:82/gzsq/data/rthyinfo/rsvr/last/fallMax?dateBegin=' + dateBegin + '&dateEnd=' + dateEnd,
                                    dataType: 'JSON',
                                    type: 'GET',
                                    success: function success(data) {
widgets/RiskEarlyWarning/css/style.css
@@ -90,7 +90,7 @@
    /* display: inline-block; */
    width: 24px;
    height: 24px;
    background: url(../../images/fxyj-rainwater-query.png) no-repeat;
    background: url(../../../images/fxyj-rainwater-query.png) no-repeat;
    background-position: center;
    background-size: 24px 24px;
    cursor: pointer;
@@ -590,7 +590,7 @@
    margin: 5px;
    height: 12px;
    width: 12px;
    background: url('../../images/legend-close.png') no-repeat;
    background: url('../../../images/legend-close.png') no-repeat;
    background-size: 100% 100%;
    cursor: pointer;
}
@@ -752,7 +752,7 @@
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../images/River-Station-grey-triangle.png) no-repeat;
    background: url(../../../images/River-Station-grey-triangle.png) no-repeat;
    background-size: 100% 100%;
    transform: translate(0, 2px);
}
@@ -761,7 +761,7 @@
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../images/River-Station-blue-triangle.png) no-repeat;
    background: url(../../../images/River-Station-blue-triangle.png) no-repeat;
    background-size: 100% 100%;
    transform: translate(0, 2px);
}
@@ -770,7 +770,7 @@
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../images/River-Station-red-triangle.png) no-repeat;
    background: url(../../../images/River-Station-red-triangle.png) no-repeat;
    background-size: 100% 100%;
    transform: translate(0, 2px);
}
@@ -779,7 +779,7 @@
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../images/River-Station-orange-triangle.png) no-repeat;
    background: url(../../../images/River-Station-orange-triangle.png) no-repeat;
    background-size: 100% 100%;
    transform: translate(0, 2px);
}
@@ -788,7 +788,7 @@
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../images/River-Station-yellow-triangle.png) no-repeat;
    background: url(../../../images/River-Station-yellow-triangle.png) no-repeat;
    background-size: 100% 100%;
    transform: translate(0, 2px);
}
@@ -797,7 +797,7 @@
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url(../../images/River-Station-green-triangle.png) no-repeat;
    background: url(../../../images/River-Station-green-triangle.png) no-repeat;
    background-size: 100% 100%;
    transform: translate(0, 2px);
}