mirror of
https://gitee.com/js-yhsec/energy_storage.git
synced 2026-05-27 18:59:26 +08:00
服务管理布局
This commit is contained in:
@@ -93,8 +93,11 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {},
|
mounted() {},
|
||||||
beforeUnmount() {
|
beforeUnmount() {
|
||||||
this.faultChart = null
|
|
||||||
window.removeEventListener('resize', this.handleResize)
|
window.removeEventListener('resize', this.handleResize)
|
||||||
|
if (this.faultChart) {
|
||||||
|
this.faultChart.dispose()
|
||||||
|
this.faultChart = null
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
@@ -130,6 +133,9 @@ export default {
|
|||||||
|
|
||||||
drawLineChart(activeKey) {
|
drawLineChart(activeKey) {
|
||||||
this.getChargeData(activeKey)
|
this.getChargeData(activeKey)
|
||||||
|
if(this.faultChart){
|
||||||
|
this.faultChart.dispose()
|
||||||
|
}
|
||||||
const chartDom = document.getElementById('alarm-chart')
|
const chartDom = document.getElementById('alarm-chart')
|
||||||
let faultChart = this.$echarts.init(chartDom)
|
let faultChart = this.$echarts.init(chartDom)
|
||||||
this.faultChart = faultChart
|
this.faultChart = faultChart
|
||||||
|
|||||||
@@ -154,7 +154,6 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
drawLineChart(activeKey) {
|
drawLineChart(activeKey) {
|
||||||
console.log(this.$refs.charge)
|
|
||||||
// const labelCount = Math.floor(500 / 30);
|
// const labelCount = Math.floor(500 / 30);
|
||||||
this.getChargeData(activeKey)
|
this.getChargeData(activeKey)
|
||||||
if(this.chargeChart){
|
if(this.chargeChart){
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ export default {
|
|||||||
props: {},
|
props: {},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tableData:[],
|
tableData: [],
|
||||||
|
|
||||||
tableOption: {
|
tableOption: {
|
||||||
select: false
|
select: false
|
||||||
@@ -243,10 +243,9 @@ export default {
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.service {
|
.service {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
padding: 0 20px;
|
||||||
.content-table {
|
.content-table {
|
||||||
height: calc(100% - 70px);
|
height: calc(100% - 92px);
|
||||||
padding: 10px;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ module.exports = defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
// 代理前缀,可以自定义(如 '/api')
|
// 代理前缀,可以自定义(如 '/api')
|
||||||
target: 'http://192.168.0.187:19801', // 目标服务器地址
|
target: 'http://192.168.0.187:19800', // 目标服务器地址
|
||||||
changeOrigin: true, // 是否改变请求源(跨域必备)
|
changeOrigin: true, // 是否改变请求源(跨域必备)
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/api': '' // 重写路径,去掉 '/api' 前缀
|
'^/api': '' // 重写路径,去掉 '/api' 前缀
|
||||||
|
|||||||
Reference in New Issue
Block a user