系统管理

This commit is contained in:
ym1026
2025-09-05 16:40:35 +08:00
parent c778e4a300
commit c1cce63c85
24 changed files with 2220 additions and 411 deletions

View File

@@ -130,7 +130,7 @@ export default {
async getOnLineList() {
try {
// token: 用户TOKEN
const res = await getReq('/api/queryStatSystem')
const res = await getReq('/queryStatSystem')
if (res.errcode === 0) {
this.deviceInfo.onLine = JSON.parse(JSON.stringify(res.data))
this.deviceInfo.onLine.runDays = getRunDays(res.data.launch_date)
@@ -155,7 +155,7 @@ export default {
stationId: this.stationId,
category: 0
}
const res = await getReq('/api/queryStatTotal', query)
const res = await getReq('/queryStatTotal', query)
if (res.errcode === 0) {
this.deviceInfo.allTotal = res.data
const { income_charge: incomeCharge, income_elect: incomeElect } =
@@ -201,7 +201,7 @@ export default {
end_date: getDateDaysAgo(0)
}
const arr = { 1: 'energy', 2: 'charge', 3: 'pv' }
const res = await getReq('/api/queryStatDayList', query)
const res = await getReq('/queryStatDayList', query)
if (res.errcode === 0) {
this.list.forEach((item) => {
this.deviceInfo[arr[category]] = res.data