From 52f016d3ea05000c1cc3645222d9b3f0a713b0af Mon Sep 17 00:00:00 2001 From: ym1026 <1539963735@qq.com> Date: Fri, 12 Sep 2025 16:27:06 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=84=E6=A8=A1=E5=9D=97=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E7=AD=89=E5=B8=83=E5=B1=80=E4=BC=98=E5=8C=96=EF=BC=8C=E8=BF=90?= =?UTF-8?q?=E8=A1=8C=E5=88=86=E6=9E=90=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/public/config/columnList.js | 4 +- web/src/components/ComTable.vue | 2 +- web/src/components/EditCom.vue | 1 + web/src/components/Home/Alarm.vue | 45 +--- web/src/components/Home/Charge.vue | 48 +--- web/src/components/Home/Energy.vue | 38 +-- web/src/components/Home/Map.vue | 49 ++-- web/src/components/Home/Map_tianditu.vue | 2 +- web/src/components/Home/Modal/DisCharge.vue | 33 --- web/src/components/Home/Modal/EnvInfo.vue | 4 +- .../components/Home/Modal/OperationalInfo.vue | 6 +- web/src/components/Home/Modal/PrefabCabin.vue | 8 +- web/src/components/Home/Modal/Revenue.vue | 33 --- web/src/components/Home/Modal/Utilization.vue | 33 --- web/src/components/Home/Operational.vue | 242 +++++++++++++----- web/src/components/Home/Pv.vue | 40 +-- web/src/components/Home/onLine.vue | 20 +- web/src/components/SearchBox.vue | 2 +- web/src/components/TreeTable.vue | 4 +- .../statisticalAnalysis/energyEchart.vue | 1 + web/src/style/antd.scss | 35 +++ web/src/views/statisticalAnalysis.vue | 4 +- web/src/views/sub/Home.vue | 62 ++--- web/src/views/system/permission.vue | 27 +- web/src/views/system/role.vue | 76 +++--- web/src/views/system/service.vue | 68 +++-- web/src/views/system/station.vue | 43 +++- web/src/views/system/user.vue | 38 ++- 28 files changed, 442 insertions(+), 526 deletions(-) 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 @@