|
@ -1,4 +1,4 @@ |
|
|
import { getMonthesDate, getRealtimeData } from 'apis/index'; |
|
|
import { getMonthsDate, getRealtimeData } from 'apis/index'; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
namespaced: true, |
|
|
namespaced: true, |
|
@ -52,9 +52,9 @@ export default { |
|
|
|
|
|
|
|
|
actions: { |
|
|
actions: { |
|
|
// 获取积分电量数据
|
|
|
// 获取积分电量数据
|
|
|
async getMonthesDate({ commit }, params) { |
|
|
async getMonthsDate({ commit }, params) { |
|
|
try { |
|
|
try { |
|
|
const data = await getMonthesDate(params); |
|
|
const data = await getMonthsDate(params); |
|
|
commit('setElectricData', data.powers || null); |
|
|
commit('setElectricData', data.powers || null); |
|
|
commit('setCorrosionData', data.corrosions || null); |
|
|
commit('setCorrosionData', data.corrosions || null); |
|
|
commit('setMoistTimeData', data.humids || null); |
|
|
commit('setMoistTimeData', data.humids || null); |
|
|