diff --git a/web/public/config/columnList.js b/web/public/config/columnList.js index a8c764d..07dfdbe 100644 --- a/web/public/config/columnList.js +++ b/web/public/config/columnList.js @@ -215,8 +215,8 @@ export const columnList = [ }, { title: '投运时间', - dataIndex: 'touyuntime', - key: 'touyuntime' + dataIndex: 'operation_date', + key: 'operation_date' }, { title: '场站运行模式', diff --git a/web/src/components/ComTable.vue b/web/src/components/ComTable.vue index 1a249d7..9d2e69a 100644 --- a/web/src/components/ComTable.vue +++ b/web/src/components/ComTable.vue @@ -17,7 +17,7 @@ selectedRowKeys: data.selectedRowKeys, onChange: onSelectChange } - : {} + : null " :expanded-row-keys="data.newTableOpt.expand ? data.expandedKeys : null" size="middle" diff --git a/web/src/components/EditCom.vue b/web/src/components/EditCom.vue index bedae7e..abdb397 100644 --- a/web/src/components/EditCom.vue +++ b/web/src/components/EditCom.vue @@ -228,6 +228,7 @@ export default { case 'station': this.detailInfos = stationOptions this.formRules = stationFormRules + this.workModeIdSelect=this.detailInfos[0].ruleForm['work_mode'] break case 'device': diff --git a/web/src/components/Home/Alarm.vue b/web/src/components/Home/Alarm.vue index f2092e7..d4d9273 100644 --- a/web/src/components/Home/Alarm.vue +++ b/web/src/components/Home/Alarm.vue @@ -141,7 +141,7 @@ export default { } }, legend: { - top: 20, + top: 10, textStyle: { color: '#fff' } @@ -150,7 +150,8 @@ export default { left: '3%', right: '4%', bottom: '5%', - containLabel: true + top: '32%', + // containLabel: true }, xAxis: { type: 'category', @@ -192,44 +193,4 @@ export default { } } -.text_Cur { - border-bottom: 1px solid transparent; - border-top: 1px solid transparent; - border-image: linear-gradient(to right, transparent, #1d8a7b, transparent) 1; - padding: 0px 15px; - font-size: 14px; - margin: 3px 0px; - height: 45px; - display: flex; - justify-content: space-between; - align-items: center; - - .mark { - font-size: 16px; - margin-right: 2px; - } - & > div:nth-child(2), - & > div:nth-child(3) { - display: flex; - flex-direction: column; - justify-content: center; - align-items: center; - } - & > div:last-child{ - display: flex; - flex-direction: column; - justify-content: center; - align-items: end; - } - background: linear-gradient( - 90deg, - rgba(0, 186, 173, 0.15) 0%, - rgba(61, 254, 250, 0.15) 49.2%, - rgba(61, 254, 250, 0) 100% - ); - .d { - margin-left: 1px; - font-size: 12px; - } -} diff --git a/web/src/components/Home/Charge.vue b/web/src/components/Home/Charge.vue index 8e4c01b..22272ce 100644 --- a/web/src/components/Home/Charge.vue +++ b/web/src/components/Home/Charge.vue @@ -154,6 +154,8 @@ export default { }, drawLineChart(activeKey) { + console.log(this.$refs.charge) + // const labelCount = Math.floor(500 / 30); this.getChargeData(activeKey) if(this.chargeChart){ this.chargeChart.dispose() @@ -170,7 +172,7 @@ export default { } }, legend: { - top: 20, + top: 10, textStyle: { color: '#fff' } @@ -178,8 +180,9 @@ export default { grid: { left: '3%', right: '4%', - bottom: '5%', - containLabel: true + bottom: '1%', + top: '32%', + // containLabel: true }, xAxis: { type: 'category', @@ -197,10 +200,11 @@ export default { lineStyle: { type: 'dashed', color: '#435463' } }, axisLabel: { - interval: 4, + // margin: 10, + // interval: 60, color: '#fff', - fontSize:12 - + fontSize:12, + // padding: [5, 0, 0, 0] } }, series: this.chargeChartData.ydata @@ -226,37 +230,5 @@ export default { } } -.text_Cur { - border-bottom: 1px solid transparent; - border-top: 1px solid transparent; - border-image: linear-gradient(to right, transparent, #1d8a7b, transparent) 1; - padding: 0px 15px; - font-size: 14px; - margin: 3px 0px; - height: 45px; - display: flex; - justify-content: space-between; - align-items: center; - & > div:last-child { - display: flex; - flex-direction: column; - justify-content: center; - align-items: end; - } - .mark { - font-size: 16px; - margin-right: 2px; - } - background: linear-gradient( - 90deg, - rgba(0, 186, 173, 0.15) 0%, - rgba(61, 254, 250, 0.15) 49.2%, - rgba(61, 254, 250, 0) 100% - ); - .d { - margin-left: 1px; - font-size: 12px; - } -} diff --git a/web/src/components/Home/Energy.vue b/web/src/components/Home/Energy.vue index 8bd47b6..5cde7ed 100644 --- a/web/src/components/Home/Energy.vue +++ b/web/src/components/Home/Energy.vue @@ -147,7 +147,8 @@ export default { left: '3%', right: '4%', bottom: '3%', - containLabel: true + top: '32%', + // containLabel: true }, xAxis: { type: 'category', @@ -165,7 +166,7 @@ export default { lineStyle: { type: 'dashed', color: '#435463' } }, axisLabel: { - interval: 4, + // interval: 4, color: '#fff', fontSize:12 @@ -193,37 +194,4 @@ export default { } } -.text_Cur { - border-bottom: 1px solid transparent; - border-top: 1px solid transparent; - border-image: linear-gradient(to right, transparent, #1d8a7b, transparent) 1; - padding: 0px 15px; - font-size: 14px; - margin: 3px 0px; - height: 45px; - display: flex; - justify-content: space-between; - align-items: center; - & > div:last-child { - display: flex; - flex-direction: column; - justify-content: center; - align-items: end; - } - .mark { - font-size: 16px; - margin-right: 2px; - } - - background: linear-gradient( - 90deg, - rgba(0, 186, 173, 0.15) 0%, - rgba(61, 254, 250, 0.15) 49.2%, - rgba(61, 254, 250, 0) 100% - ); - .d { - margin-left: 1px; - font-size: 12px; - } -} diff --git a/web/src/components/Home/Map.vue b/web/src/components/Home/Map.vue index 7cd98a7..05ff0b4 100644 --- a/web/src/components/Home/Map.vue +++ b/web/src/components/Home/Map.vue @@ -57,8 +57,8 @@ export default { data() { return { - center: [113.5, 33.875], // 默认中心点(河南) - zoom: 10, + center: [112.870000,34.180000], // 默认中心点(河南) + zoom: 12, map: null, currentMarker: {}, showCtrModal: false, @@ -72,12 +72,19 @@ export default { } }, mounted() { - this.initMap() + this.$nextTick(()=>{ + this.initMap() + }) + }, + beforeUnmount() { + if(this.map){ + // this.map.destory() + this.map=null + } }, methods: { init(map) { this.map = map - this.center= [110.404, 40.915] this.getMarkList() }, async getMarkList() { @@ -114,33 +121,27 @@ export default { - // 备用定位方案 - // setFallbackLocation() { - // const fallbackCoords = [116.404, 39.915] // 北京坐标 - // this.center = fallbackCoords - // if (this.map) { - // this.map.setCenter(new T.LngLat(...fallbackCoords)) - // } - // }, + async getSysConfig() { - let sysConfig - try { - const query = {} - const res = await getReq('/', query) - if (res.errcode === 0) { - sysConfig = res.data.value - } else { - throw res - } - } catch (error) { - sysConfig = this.targetKey - } + let sysConfig=this.targetKey + // try { + // const query = {} + // const res = await getReq('/', query) + // if (res.errcode === 0) { + // sysConfig = res.data.value + // } else { + // throw res + // } + // } catch (error) { + // sysConfig = this.targetKey + // } return sysConfig }, async clickArrayMarker(currentVal) { this.changeStationId = currentVal.station_id + this.testVal.name=currentVal.name this.showCtrModal = true } } diff --git a/web/src/components/Home/Map_tianditu.vue b/web/src/components/Home/Map_tianditu.vue index 7db40e7..95b644e 100644 --- a/web/src/components/Home/Map_tianditu.vue +++ b/web/src/components/Home/Map_tianditu.vue @@ -58,7 +58,7 @@ export default { propsInfo: { cabId: '', stationId: '', - stationName: '场站111' + station_name: '场站111' }, showCtrModal: false, mapStyle: { diff --git a/web/src/components/Home/Modal/DisCharge.vue b/web/src/components/Home/Modal/DisCharge.vue index e10d1ea..d5b47db 100644 --- a/web/src/components/Home/Modal/DisCharge.vue +++ b/web/src/components/Home/Modal/DisCharge.vue @@ -165,37 +165,4 @@ export default { } } -.text_Cur { - border-bottom: 1px solid transparent; - border-top: 1px solid transparent; - border-image: linear-gradient(to right, transparent, #1d8a7b, transparent) 1; - padding: 0px 15px; - font-size: 14px; - margin: 3px 0px; - height: 45px; - display: flex; - justify-content: space-between; - align-items: center; - & > div:last-child { - display: flex; - flex-direction: column; - justify-content: center; - align-items: end; - } - .mark { - font-size: 16px; - margin-right: 2px; - } - - background: linear-gradient( - 90deg, - rgba(0, 186, 173, 0.15) 0%, - rgba(61, 254, 250, 0.15) 49.2%, - rgba(61, 254, 250, 0) 100% - ); - .d { - margin-left: 1px; - font-size: 12px; - } -} diff --git a/web/src/components/Home/Modal/EnvInfo.vue b/web/src/components/Home/Modal/EnvInfo.vue index bf617d6..3f36c03 100644 --- a/web/src/components/Home/Modal/EnvInfo.vue +++ b/web/src/components/Home/Modal/EnvInfo.vue @@ -1,5 +1,5 @@