generated from cyj/evo_tech
修改
This commit is contained in:
parent
173eff6713
commit
501f348dfb
@ -74,3 +74,14 @@ export function gethistory(deviceId) {
|
||||
// }
|
||||
})
|
||||
}
|
||||
|
||||
//获取上传固件记录
|
||||
export function getgjhis(version) {
|
||||
return request({
|
||||
url: `iot/ota/meta`,
|
||||
method: 'get',
|
||||
params:{
|
||||
version
|
||||
}
|
||||
})
|
||||
}
|
||||
@ -47,4 +47,4 @@ export function equguiji(deviceId,start,end) {
|
||||
end
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@ -513,12 +513,27 @@
|
||||
</el-tab-pane>
|
||||
<el-tab-pane label="固件升级" style="padding: 25px;">
|
||||
<div style="width: 100%;margin-bottom: 30px;padding: 25px;border-radius: 12px;box-shadow: 0 0 20px -5px rgba(84, 151, 232, 0.5);">
|
||||
<el-upload
|
||||
<!-- <el-upload
|
||||
class="upload-demo"
|
||||
drag
|
||||
action="https://run.mocky.io/v3/9d059bf9-4660-45f2-925d-ce80ad6c4d15"
|
||||
multiple
|
||||
> -->
|
||||
|
||||
<!--:on-success="handleSuc"
|
||||
:before-upload="beforeAvatarUpload"
|
||||
-->
|
||||
<el-upload
|
||||
drag
|
||||
:headers="{
|
||||
Authorization:Token
|
||||
}"
|
||||
:data="{version:1}"
|
||||
class="upload-demo"
|
||||
:action="uploadUrl"
|
||||
|
||||
>
|
||||
|
||||
<el-icon class="el-icon--upload"><upload-filled /></el-icon>
|
||||
<div class="el-upload__text">
|
||||
文件拖拽到这儿 或者 <em>点击上传</em>
|
||||
@ -819,9 +834,12 @@ import {
|
||||
addDevices,
|
||||
updateDevices,
|
||||
getreadata,
|
||||
gethistory
|
||||
gethistory,
|
||||
getgjhis
|
||||
} from "@/api/devices/devices"
|
||||
|
||||
import { getToken } from '@/utils/auth'
|
||||
|
||||
import * as echarts from 'echarts'
|
||||
import { nextTick } from "vue"
|
||||
|
||||
@ -877,6 +895,10 @@ const data = reactive({
|
||||
|
||||
const { queryParams, form, rules } = toRefs(data)
|
||||
|
||||
const Token = `Bearer ${getToken()}`
|
||||
|
||||
const uploadUrl = `${import.meta.env.VITE_APP_BASE_API}/iot/ota/upload`
|
||||
|
||||
/** 查询BBOX管理列表 */
|
||||
function getList() {
|
||||
loading.value = true
|
||||
@ -1577,7 +1599,12 @@ let cflist = ref([])
|
||||
})
|
||||
})
|
||||
|
||||
}else if(n.index == 6){
|
||||
}else if(n.index == 3){
|
||||
//获取上传固件记录
|
||||
getgjhis(1).then(rps => {
|
||||
|
||||
})
|
||||
}else if(n.index == 5){
|
||||
//月充放时长
|
||||
nextTick(() => {
|
||||
dcyxztchart(dcyxChart.value,['2025-02','2025-03','2025-04','2025-05','2025-06','2025-07','2025-08','2025-09','2025-10','2025-11','2025-12','2026-01'],[60,80,76,90,89,79,100,95,60,80,76,90,],'电池运行状态','#2363a5','h')
|
||||
|
||||
Loading…
Reference in New Issue
Block a user