|
|
|
|
@ -1,7 +1,7 @@ |
|
|
|
|
<template> |
|
|
|
|
<div class="equipmentAnalyze box"> |
|
|
|
|
<tit :title="'设备日均负载分析'"> |
|
|
|
|
<div class="tit-r" > |
|
|
|
|
<div class="tit-r"> |
|
|
|
|
<span style="color: #fff;">选择时间:</span> |
|
|
|
|
<el-date-picker size="mini" v-model="selectDay" type="date" placeholder="选择月" @change="changeDate" |
|
|
|
|
style="width: 1.3rem;margin-right: 0.26rem;" value-format="yyyy-MM-dd" format="yyyy-MM-dd"> |
|
|
|
|
@ -54,30 +54,37 @@ |
|
|
|
|
import tit from "./tit.vue"; |
|
|
|
|
|
|
|
|
|
import { mapGetters } from "vuex"; |
|
|
|
|
import {getInstrumentDaylyLoad} from "@/api/energySources/energySources" |
|
|
|
|
import { getInstrumentDaylyLoad } from "@/api/energySources/energySources" |
|
|
|
|
export default { |
|
|
|
|
data() { |
|
|
|
|
return { |
|
|
|
|
selectDay: "", |
|
|
|
|
tableData: [] |
|
|
|
|
tableData: [], |
|
|
|
|
timeFun: null |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|
components: { |
|
|
|
|
tit |
|
|
|
|
}, |
|
|
|
|
computed:{ |
|
|
|
|
computed: { |
|
|
|
|
...mapGetters(["userInfo", "permission"]), |
|
|
|
|
}, |
|
|
|
|
created() { |
|
|
|
|
this.selectDay = this.$moment().format('YYYY-MM-DD') |
|
|
|
|
this.getTotalData() |
|
|
|
|
this.timeFun = setInterval(() => { |
|
|
|
|
this.getTotalData() |
|
|
|
|
}, 300000) |
|
|
|
|
}, |
|
|
|
|
beforeDestroyed() { |
|
|
|
|
clearInterval(this.timeFun) |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
changeDate(){ |
|
|
|
|
changeDate() { |
|
|
|
|
this.getTotalData() |
|
|
|
|
}, |
|
|
|
|
getTotalData(){ |
|
|
|
|
getInstrumentDaylyLoad({manufacturerBrand:this.userInfo.dept_name,today:this.selectDay}).then(res =>{ |
|
|
|
|
getTotalData() { |
|
|
|
|
getInstrumentDaylyLoad({ manufacturerBrand: this.userInfo.dept_name, today: this.selectDay }).then(res => { |
|
|
|
|
this.tableData = res.data.data; |
|
|
|
|
// this.yearNum = data.currentYear.toString().split('') |
|
|
|
|
// this.monthNum = data.currentMonth.toString().split('') |
|
|
|
|
@ -110,7 +117,8 @@ export default { |
|
|
|
|
background-color: transparent !important; |
|
|
|
|
border: 0 !important; |
|
|
|
|
} |
|
|
|
|
.equipmentAnalyze /deep/ .el-table td span{ |
|
|
|
|
|
|
|
|
|
.equipmentAnalyze /deep/ .el-table td span { |
|
|
|
|
font-size: 0.14rem !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -130,8 +138,8 @@ export default { |
|
|
|
|
height: 0.24rem !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.equipmentAnalyze /deep/ .el-input__icon{ |
|
|
|
|
line-height: 0.24rem !important; |
|
|
|
|
.equipmentAnalyze /deep/ .el-input__icon { |
|
|
|
|
line-height: 0.24rem !important; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.box { |
|
|
|
|
|