| | |
| | | |
| | | 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, |
| | |
| | | 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({ |
| | |
| | | var that = this; |
| | | that.completetwo = false; |
| | | $.ajax({ |
| | | url: 'http://192.168.0.207:82/blade-ycreal/floodinundation/selectC?code=2&mou=' + mou + '×=' + datetime + '&k=' + that.libraryNoOneEight, |
| | | url: 'http://127.0.0.1:82/blade-ycreal/floodinundation/selectC?code=2&mou=' + mou + '×=' + datetime + '&k=' + that.libraryNoOneEight, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function success(data) { |
| | |
| | | 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) { |
| | |
| | | var that = this; |
| | | that.completethree = false; |
| | | $.ajax({ |
| | | url: 'http://192.168.0.207:82/blade-ycreal/floodinundation/selectC?code=1&mou=' + mou + '×=' + datetime + '&k=' + that.libraryNoOneEight, |
| | | url: 'http://127.0.0.1:82/blade-ycreal/floodinundation/selectC?code=1&mou=' + mou + '×=' + datetime + '&k=' + that.libraryNoOneEight, |
| | | type: 'GET', |
| | | dataType: 'JSON', |
| | | success: function success(data) { |
| | |
| | | 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) { |
| | |
| | | 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: { |
| | |
| | | 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: { |
| | |
| | | }; |
| | | } |
| | | $.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, |
| | |
| | | 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, |
| | |
| | | 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: { |
| | |
| | | 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: { |
| | |
| | | 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: { |
| | |
| | | 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: { |
| | |
| | | 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}; |
| | | }, |
| | |
| | | */ |
| | | 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) { |
| | |
| | | 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) { |
| | |
| | | _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) { |
| | |
| | | _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) { |
| | |
| | | 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) { |
| | |
| | | _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) { |
| | |
| | | |
| | | } |
| | | $.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) { |