文件服务下载修改
This commit is contained in:
@@ -24,6 +24,20 @@ export function downLoadDeviceFile(data) {
|
||||
})
|
||||
}
|
||||
|
||||
//获取下载文件的文件路径地址
|
||||
export function downLoadDeviceFilePath(obj) {
|
||||
let form = new FormData()
|
||||
form.append('name', obj.name)
|
||||
form.append('nDid', obj.nDid)
|
||||
return createAxios({
|
||||
url: `/cs-device-boot/deviceFile/getDownloadFilePath`,
|
||||
method: 'POST',
|
||||
headers: {
|
||||
'Content-Type': 'application/x-www-form-urlencoded'
|
||||
},
|
||||
data: form
|
||||
})
|
||||
}
|
||||
//装置重启
|
||||
export function reStartDevice(data) {
|
||||
return createAxios({
|
||||
|
||||
@@ -1,20 +1,20 @@
|
||||
import createAxios from '@/utils/request'
|
||||
|
||||
// 更新问题状态
|
||||
export function auditFeedBack(data:any) {
|
||||
export function auditFeedBack(data: any) {
|
||||
return createAxios({
|
||||
url: '/cs-system-boot/feedback/auditFeedBack',
|
||||
method: 'post',
|
||||
params:data
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//下载文件
|
||||
export function downLoadFile(filePath:any){
|
||||
export function downLoadFile(filePath: any) {
|
||||
return createAxios({
|
||||
url: '/system-boot/file/download',
|
||||
method: 'get',
|
||||
responseType: 'blob',
|
||||
params:{filePath:filePath}
|
||||
responseType: 'blob',
|
||||
params: { filePath: filePath }
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user