diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/threat.js b/src/api/threat.js new file mode 100644 index 0000000..bebd145 --- /dev/null +++ b/src/api/threat.js @@ -0,0 +1,65 @@ +/** + * 隐患专题 + */ +import request from '@/utils/request' +import { getSignTimeStamp } from '@/utils/mathUtils' + +// 水保隐患 +export function getWaterThreat() { + const { sign, username, timestamp } = getSignTimeStamp() + return request({ + url: 'http://172.26.2.128:9001/factdata/index/getData', + method: 'post', + data: { + 'showField': 'WD01_03,WD54_03,WD56_03,DES01,DES02,DES03,DES04,DES04,DES05,DES06,DES07,DES08,DES09,DES10', + 'indexId': '07D36AD4AE93444185EE571C032A8658', + 'type': 0, + 'distinct': true, + 'conditionList': [ + [ + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '734AFA44DDC745009F4C27AABA1127F0', + 'key': 'WD56_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '5F356EF944164C548A835D5C6481AAE0', + 'key': 'WD54_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22' + ], + 'condition': '7', + 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', + 'key': 'WD01_03' + } + + ] + ], + 'pageNo': null, + 'pageSize': null, + 'sign': sign, + 'name': username, + 'time': timestamp + } + }) +} diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/threat.js b/src/api/threat.js new file mode 100644 index 0000000..bebd145 --- /dev/null +++ b/src/api/threat.js @@ -0,0 +1,65 @@ +/** + * 隐患专题 + */ +import request from '@/utils/request' +import { getSignTimeStamp } from '@/utils/mathUtils' + +// 水保隐患 +export function getWaterThreat() { + const { sign, username, timestamp } = getSignTimeStamp() + return request({ + url: 'http://172.26.2.128:9001/factdata/index/getData', + method: 'post', + data: { + 'showField': 'WD01_03,WD54_03,WD56_03,DES01,DES02,DES03,DES04,DES04,DES05,DES06,DES07,DES08,DES09,DES10', + 'indexId': '07D36AD4AE93444185EE571C032A8658', + 'type': 0, + 'distinct': true, + 'conditionList': [ + [ + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '734AFA44DDC745009F4C27AABA1127F0', + 'key': 'WD56_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '5F356EF944164C548A835D5C6481AAE0', + 'key': 'WD54_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22' + ], + 'condition': '7', + 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', + 'key': 'WD01_03' + } + + ] + ], + 'pageNo': null, + 'pageSize': null, + 'sign': sign, + 'name': username, + 'time': timestamp + } + }) +} diff --git a/src/api/weather.js b/src/api/weather.js index a4e8b65..0beebbb 100644 --- a/src/api/weather.js +++ b/src/api/weather.js @@ -52,7 +52,7 @@ [ { 'condition': '3', - 'key': 'WD52_07', + 'key': 'WD52_08', 'indexDimValues': date } ] diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/threat.js b/src/api/threat.js new file mode 100644 index 0000000..bebd145 --- /dev/null +++ b/src/api/threat.js @@ -0,0 +1,65 @@ +/** + * 隐患专题 + */ +import request from '@/utils/request' +import { getSignTimeStamp } from '@/utils/mathUtils' + +// 水保隐患 +export function getWaterThreat() { + const { sign, username, timestamp } = getSignTimeStamp() + return request({ + url: 'http://172.26.2.128:9001/factdata/index/getData', + method: 'post', + data: { + 'showField': 'WD01_03,WD54_03,WD56_03,DES01,DES02,DES03,DES04,DES04,DES05,DES06,DES07,DES08,DES09,DES10', + 'indexId': '07D36AD4AE93444185EE571C032A8658', + 'type': 0, + 'distinct': true, + 'conditionList': [ + [ + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '734AFA44DDC745009F4C27AABA1127F0', + 'key': 'WD56_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '5F356EF944164C548A835D5C6481AAE0', + 'key': 'WD54_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22' + ], + 'condition': '7', + 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', + 'key': 'WD01_03' + } + + ] + ], + 'pageNo': null, + 'pageSize': null, + 'sign': sign, + 'name': username, + 'time': timestamp + } + }) +} diff --git a/src/api/weather.js b/src/api/weather.js index a4e8b65..0beebbb 100644 --- a/src/api/weather.js +++ b/src/api/weather.js @@ -52,7 +52,7 @@ [ { 'condition': '3', - 'key': 'WD52_07', + 'key': 'WD52_08', 'indexDimValues': date } ] diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue index 815e3c7..8549300 100644 --- a/src/components/Map/MarsMap.vue +++ b/src/components/Map/MarsMap.vue @@ -181,6 +181,10 @@ symbol: { styleOptions: { materialType: 'PolylineGlow', + // materialType: 'LineFlowColor', + // alpha: 0.5, + // percent: 0.1, + // width: 5, // 线宽 glowPower: 0.04, // 发光强度 width: 10, // 线宽 color: '#4ff8ff', diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/threat.js b/src/api/threat.js new file mode 100644 index 0000000..bebd145 --- /dev/null +++ b/src/api/threat.js @@ -0,0 +1,65 @@ +/** + * 隐患专题 + */ +import request from '@/utils/request' +import { getSignTimeStamp } from '@/utils/mathUtils' + +// 水保隐患 +export function getWaterThreat() { + const { sign, username, timestamp } = getSignTimeStamp() + return request({ + url: 'http://172.26.2.128:9001/factdata/index/getData', + method: 'post', + data: { + 'showField': 'WD01_03,WD54_03,WD56_03,DES01,DES02,DES03,DES04,DES04,DES05,DES06,DES07,DES08,DES09,DES10', + 'indexId': '07D36AD4AE93444185EE571C032A8658', + 'type': 0, + 'distinct': true, + 'conditionList': [ + [ + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '734AFA44DDC745009F4C27AABA1127F0', + 'key': 'WD56_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '5F356EF944164C548A835D5C6481AAE0', + 'key': 'WD54_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22' + ], + 'condition': '7', + 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', + 'key': 'WD01_03' + } + + ] + ], + 'pageNo': null, + 'pageSize': null, + 'sign': sign, + 'name': username, + 'time': timestamp + } + }) +} diff --git a/src/api/weather.js b/src/api/weather.js index a4e8b65..0beebbb 100644 --- a/src/api/weather.js +++ b/src/api/weather.js @@ -52,7 +52,7 @@ [ { 'condition': '3', - 'key': 'WD52_07', + 'key': 'WD52_08', 'indexDimValues': date } ] diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue index 815e3c7..8549300 100644 --- a/src/components/Map/MarsMap.vue +++ b/src/components/Map/MarsMap.vue @@ -181,6 +181,10 @@ symbol: { styleOptions: { materialType: 'PolylineGlow', + // materialType: 'LineFlowColor', + // alpha: 0.5, + // percent: 0.1, + // width: 5, // 线宽 glowPower: 0.04, // 发光强度 width: 10, // 线宽 color: '#4ff8ff', diff --git a/src/layout/layoutMap.vue b/src/layout/layoutMap.vue index 4a1a377..139fd37 100644 --- a/src/layout/layoutMap.vue +++ b/src/layout/layoutMap.vue @@ -39,8 +39,8 @@ padding-right:10px; bottom:0px; left:0px; - background-color:#000000; - color:#ffffff; + background-color:#0F3F8D; + color:#0F3F8D; line-height:2 } diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/threat.js b/src/api/threat.js new file mode 100644 index 0000000..bebd145 --- /dev/null +++ b/src/api/threat.js @@ -0,0 +1,65 @@ +/** + * 隐患专题 + */ +import request from '@/utils/request' +import { getSignTimeStamp } from '@/utils/mathUtils' + +// 水保隐患 +export function getWaterThreat() { + const { sign, username, timestamp } = getSignTimeStamp() + return request({ + url: 'http://172.26.2.128:9001/factdata/index/getData', + method: 'post', + data: { + 'showField': 'WD01_03,WD54_03,WD56_03,DES01,DES02,DES03,DES04,DES04,DES05,DES06,DES07,DES08,DES09,DES10', + 'indexId': '07D36AD4AE93444185EE571C032A8658', + 'type': 0, + 'distinct': true, + 'conditionList': [ + [ + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '734AFA44DDC745009F4C27AABA1127F0', + 'key': 'WD56_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '5F356EF944164C548A835D5C6481AAE0', + 'key': 'WD54_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22' + ], + 'condition': '7', + 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', + 'key': 'WD01_03' + } + + ] + ], + 'pageNo': null, + 'pageSize': null, + 'sign': sign, + 'name': username, + 'time': timestamp + } + }) +} diff --git a/src/api/weather.js b/src/api/weather.js index a4e8b65..0beebbb 100644 --- a/src/api/weather.js +++ b/src/api/weather.js @@ -52,7 +52,7 @@ [ { 'condition': '3', - 'key': 'WD52_07', + 'key': 'WD52_08', 'indexDimValues': date } ] diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue index 815e3c7..8549300 100644 --- a/src/components/Map/MarsMap.vue +++ b/src/components/Map/MarsMap.vue @@ -181,6 +181,10 @@ symbol: { styleOptions: { materialType: 'PolylineGlow', + // materialType: 'LineFlowColor', + // alpha: 0.5, + // percent: 0.1, + // width: 5, // 线宽 glowPower: 0.04, // 发光强度 width: 10, // 线宽 color: '#4ff8ff', diff --git a/src/layout/layoutMap.vue b/src/layout/layoutMap.vue index 4a1a377..139fd37 100644 --- a/src/layout/layoutMap.vue +++ b/src/layout/layoutMap.vue @@ -39,8 +39,8 @@ padding-right:10px; bottom:0px; left:0px; - background-color:#000000; - color:#ffffff; + background-color:#0F3F8D; + color:#0F3F8D; line-height:2 } diff --git a/src/permission.js b/src/permission.js index 1bca28c..8be90f6 100644 --- a/src/permission.js +++ b/src/permission.js @@ -8,7 +8,7 @@ NProgress.configure({ showSpinner: false })// NProgress configuration -const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/routeTopic', '/full/waterThreat', '/full/sinkThreat', '/full/vip', '/full/weather', '/full/needTopic', '/full/supplyTopic', '/full/pipeOverview', '/full/overview'] // 不重定向白名单 +const whiteList = ['/login', '/404', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/routeTopic', '/full/waterThreat', '/full/sinkThreat', '/full/vip', '/full/weather', '/full/needTopic', '/full/supplyTopic', '/full/pipeOverview', '/full/overview'] // 不重定向白名单 // 全局钩子 router.beforeEach((to, from, next) => { NProgress.start() // 加载进度条 diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/threat.js b/src/api/threat.js new file mode 100644 index 0000000..bebd145 --- /dev/null +++ b/src/api/threat.js @@ -0,0 +1,65 @@ +/** + * 隐患专题 + */ +import request from '@/utils/request' +import { getSignTimeStamp } from '@/utils/mathUtils' + +// 水保隐患 +export function getWaterThreat() { + const { sign, username, timestamp } = getSignTimeStamp() + return request({ + url: 'http://172.26.2.128:9001/factdata/index/getData', + method: 'post', + data: { + 'showField': 'WD01_03,WD54_03,WD56_03,DES01,DES02,DES03,DES04,DES04,DES05,DES06,DES07,DES08,DES09,DES10', + 'indexId': '07D36AD4AE93444185EE571C032A8658', + 'type': 0, + 'distinct': true, + 'conditionList': [ + [ + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '734AFA44DDC745009F4C27AABA1127F0', + 'key': 'WD56_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '5F356EF944164C548A835D5C6481AAE0', + 'key': 'WD54_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22' + ], + 'condition': '7', + 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', + 'key': 'WD01_03' + } + + ] + ], + 'pageNo': null, + 'pageSize': null, + 'sign': sign, + 'name': username, + 'time': timestamp + } + }) +} diff --git a/src/api/weather.js b/src/api/weather.js index a4e8b65..0beebbb 100644 --- a/src/api/weather.js +++ b/src/api/weather.js @@ -52,7 +52,7 @@ [ { 'condition': '3', - 'key': 'WD52_07', + 'key': 'WD52_08', 'indexDimValues': date } ] diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue index 815e3c7..8549300 100644 --- a/src/components/Map/MarsMap.vue +++ b/src/components/Map/MarsMap.vue @@ -181,6 +181,10 @@ symbol: { styleOptions: { materialType: 'PolylineGlow', + // materialType: 'LineFlowColor', + // alpha: 0.5, + // percent: 0.1, + // width: 5, // 线宽 glowPower: 0.04, // 发光强度 width: 10, // 线宽 color: '#4ff8ff', diff --git a/src/layout/layoutMap.vue b/src/layout/layoutMap.vue index 4a1a377..139fd37 100644 --- a/src/layout/layoutMap.vue +++ b/src/layout/layoutMap.vue @@ -39,8 +39,8 @@ padding-right:10px; bottom:0px; left:0px; - background-color:#000000; - color:#ffffff; + background-color:#0F3F8D; + color:#0F3F8D; line-height:2 } diff --git a/src/permission.js b/src/permission.js index 1bca28c..8be90f6 100644 --- a/src/permission.js +++ b/src/permission.js @@ -8,7 +8,7 @@ NProgress.configure({ showSpinner: false })// NProgress configuration -const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/routeTopic', '/full/waterThreat', '/full/sinkThreat', '/full/vip', '/full/weather', '/full/needTopic', '/full/supplyTopic', '/full/pipeOverview', '/full/overview'] // 不重定向白名单 +const whiteList = ['/login', '/404', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/routeTopic', '/full/waterThreat', '/full/sinkThreat', '/full/vip', '/full/weather', '/full/needTopic', '/full/supplyTopic', '/full/pipeOverview', '/full/overview'] // 不重定向白名单 // 全局钩子 router.beforeEach((to, from, next) => { NProgress.start() // 加载进度条 diff --git a/src/utils/mathUtils.js b/src/utils/mathUtils.js index e681358..a744dcd 100644 --- a/src/utils/mathUtils.js +++ b/src/utils/mathUtils.js @@ -7,11 +7,11 @@ return index } -export function getSignTimeStamp(){ +export function getSignTimeStamp() { const username = 'admin' - const key= 'packingdata' + const key = 'packingdata' const timestamp = new Date().getTime().toString() - const str = username+key+timestamp + const str = username + key + timestamp const sign = md5.base64(str) - return {sign, username, timestamp} + return { sign, username, timestamp } } diff --git a/src/api/needSupply.js b/src/api/needSupply.js index 112ac9a..cca1e27 100644 --- a/src/api/needSupply.js +++ b/src/api/needSupply.js @@ -34,7 +34,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_01', - 'value': ['20210419'] + 'value': [date] }, { 'leftSymbolList': [ @@ -68,7 +68,7 @@ } // 各用户供需数据 -export function getUserSupply(params) { +export function getUserSupply(date) { const { sign, username, timestamp } = getSignTimeStamp() return request({ url: 'http://172.26.2.128:9001/factdata/index/getData', @@ -83,7 +83,7 @@ 'condition': '1', 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', 'key': 'WD01_03', - 'value': ['2021-04-19'] + 'value': [date] } ] ], diff --git a/src/api/pipe.js b/src/api/pipe.js index e546790..5d0b3d2 100644 --- a/src/api/pipe.js +++ b/src/api/pipe.js @@ -38,7 +38,7 @@ url: 'http://172.26.2.128:9001/factdata/index/getData', method: 'post', data: { - 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12', + 'showField': 'WD60_03,WD60_04,WD60_05,WD60_06,WD60_08,WD60_09,WD60_10,WD60_11,WD60_12,WD60_13', 'dimId': '459DEBAD30C14366AA65C957BBA76B09', 'type': 1, 'conditionList': [ diff --git a/src/api/threat.js b/src/api/threat.js new file mode 100644 index 0000000..bebd145 --- /dev/null +++ b/src/api/threat.js @@ -0,0 +1,65 @@ +/** + * 隐患专题 + */ +import request from '@/utils/request' +import { getSignTimeStamp } from '@/utils/mathUtils' + +// 水保隐患 +export function getWaterThreat() { + const { sign, username, timestamp } = getSignTimeStamp() + return request({ + url: 'http://172.26.2.128:9001/factdata/index/getData', + method: 'post', + data: { + 'showField': 'WD01_03,WD54_03,WD56_03,DES01,DES02,DES03,DES04,DES04,DES05,DES06,DES07,DES08,DES09,DES10', + 'indexId': '07D36AD4AE93444185EE571C032A8658', + 'type': 0, + 'distinct': true, + 'conditionList': [ + [ + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '734AFA44DDC745009F4C27AABA1127F0', + 'key': 'WD56_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22', + '23' + ], + 'condition': '7', + 'dimId': '5F356EF944164C548A835D5C6481AAE0', + 'key': 'WD54_03' + }, + { + 'leftSymbolList': [ + '21' + ], + 'rightSymbolList': [ + '22' + ], + 'condition': '7', + 'dimId': 'YEAR8MONTH8DAY66PACKINGDATA99DAY', + 'key': 'WD01_03' + } + + ] + ], + 'pageNo': null, + 'pageSize': null, + 'sign': sign, + 'name': username, + 'time': timestamp + } + }) +} diff --git a/src/api/weather.js b/src/api/weather.js index a4e8b65..0beebbb 100644 --- a/src/api/weather.js +++ b/src/api/weather.js @@ -52,7 +52,7 @@ [ { 'condition': '3', - 'key': 'WD52_07', + 'key': 'WD52_08', 'indexDimValues': date } ] diff --git a/src/components/Map/MarsMap.vue b/src/components/Map/MarsMap.vue index 815e3c7..8549300 100644 --- a/src/components/Map/MarsMap.vue +++ b/src/components/Map/MarsMap.vue @@ -181,6 +181,10 @@ symbol: { styleOptions: { materialType: 'PolylineGlow', + // materialType: 'LineFlowColor', + // alpha: 0.5, + // percent: 0.1, + // width: 5, // 线宽 glowPower: 0.04, // 发光强度 width: 10, // 线宽 color: '#4ff8ff', diff --git a/src/layout/layoutMap.vue b/src/layout/layoutMap.vue index 4a1a377..139fd37 100644 --- a/src/layout/layoutMap.vue +++ b/src/layout/layoutMap.vue @@ -39,8 +39,8 @@ padding-right:10px; bottom:0px; left:0px; - background-color:#000000; - color:#ffffff; + background-color:#0F3F8D; + color:#0F3F8D; line-height:2 } diff --git a/src/permission.js b/src/permission.js index 1bca28c..8be90f6 100644 --- a/src/permission.js +++ b/src/permission.js @@ -8,7 +8,7 @@ NProgress.configure({ showSpinner: false })// NProgress configuration -const whiteList = ['/login', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/routeTopic', '/full/waterThreat', '/full/sinkThreat', '/full/vip', '/full/weather', '/full/needTopic', '/full/supplyTopic', '/full/pipeOverview', '/full/overview'] // 不重定向白名单 +const whiteList = ['/login', '/404', 'config/baseconfig', '/full/storageTopic', '/full/waterThreat', '/full/highConsequence', '/full/constructionThreat', '/full/routeTopic', '/full/waterThreat', '/full/sinkThreat', '/full/vip', '/full/weather', '/full/needTopic', '/full/supplyTopic', '/full/pipeOverview', '/full/overview'] // 不重定向白名单 // 全局钩子 router.beforeEach((to, from, next) => { NProgress.start() // 加载进度条 diff --git a/src/utils/mathUtils.js b/src/utils/mathUtils.js index e681358..a744dcd 100644 --- a/src/utils/mathUtils.js +++ b/src/utils/mathUtils.js @@ -7,11 +7,11 @@ return index } -export function getSignTimeStamp(){ +export function getSignTimeStamp() { const username = 'admin' - const key= 'packingdata' + const key = 'packingdata' const timestamp = new Date().getTime().toString() - const str = username+key+timestamp + const str = username + key + timestamp const sign = md5.base64(str) - return {sign, username, timestamp} + return { sign, username, timestamp } } diff --git a/src/views/maps/components/highConsequenceDialog.vue b/src/views/maps/components/highConsequenceDialog.vue index 678f027..1fc624a 100644 --- a/src/views/maps/components/highConsequenceDialog.vue +++ b/src/views/maps/components/highConsequenceDialog.vue @@ -4,7 +4,7 @@ * @Date: 2021-04-13 14:07:44 -->