diff --git a/src/api/cs-device-boot/fileService.ts b/src/api/cs-device-boot/fileService.ts index e1fa121..c38bd17 100644 --- a/src/api/cs-device-boot/fileService.ts +++ b/src/api/cs-device-boot/fileService.ts @@ -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({ diff --git a/src/api/cs-system-boot/manage.ts b/src/api/cs-system-boot/manage.ts index 666f694..ddf7008 100644 --- a/src/api/cs-system-boot/manage.ts +++ b/src/api/cs-system-boot/manage.ts @@ -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 } }) } \ No newline at end of file diff --git a/src/views/govern/device/fileService/index.vue b/src/views/govern/device/fileService/index.vue index 92d9ec9..a639d73 100644 --- a/src/views/govern/device/fileService/index.vue +++ b/src/views/govern/device/fileService/index.vue @@ -101,9 +101,9 @@ {{ row.type == 'dir' ? '文件夹' : row.type == 'file' ? '文件' : '/' }} - + + {{ row.startTime ? row.startTime : '/' }} + @@ -243,7 +243,7 @@ const isRoot = ref(true) //储存所有点击过的目录 const activePathList: any = ref([]) const nodeClick = (e: any) => { - console.log(e,"------"); + console.log(e, '------') if (e && (e.level == 2 || e.type == 'device')) { loading.value = true nDid.value = e.ndid diff --git a/src/views/govern/device/fileService/popup.vue b/src/views/govern/device/fileService/popup.vue index 0e51fcf..a63832f 100644 --- a/src/views/govern/device/fileService/popup.vue +++ b/src/views/govern/device/fileService/popup.vue @@ -2,38 +2,44 @@