diff --git a/frontend/src/api/device/report/index.ts b/frontend/src/api/device/report/index.ts index f6fd8db..b6e6da4 100644 --- a/frontend/src/api/device/report/index.ts +++ b/frontend/src/api/device/report/index.ts @@ -43,4 +43,9 @@ export const getPqReportAllVersion = (params:any) => { //被检设备归档 export const documentedPqDev = (ids: string[]) => { return http.post(`/report/documented`, ids) +} + +//上传报告到云端 +export const uploadReportToCloud = (deviceIds: string[]) => { + return http.post(`/report/uploadReportToCloud`, deviceIds) } \ No newline at end of file diff --git a/frontend/src/views/home/components/table.vue b/frontend/src/views/home/components/table.vue index 412ea4f..b4ecd61 100644 --- a/frontend/src/views/home/components/table.vue +++ b/frontend/src/views/home/components/table.vue @@ -582,6 +582,8 @@ const columns = reactive[]>([ return '已生成' } else if (scope.row.reportState === 2) { return '未检' + }else if(scope.row.reportState === 3){ + return '已上传' } return '' }, diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index d52fdec..2a45164 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -730,7 +730,7 @@ const initScriptData = async () => { let response: any = await getBigTestItem({reCheckType: checkStore.reCheckType, planId: checkStore.plan.id, devIds: checkStore.devices.map(item => item.deviceId)}) - let temp = response.data.map(item => { + let temp = response.data.map((item: any) => { return { ...item, scriptName: item.scriptName diff --git a/frontend/src/views/machine/device/index.vue b/frontend/src/views/machine/device/index.vue index ee8a52c..424bc84 100644 --- a/frontend/src/views/machine/device/index.vue +++ b/frontend/src/views/machine/device/index.vue @@ -16,6 +16,7 @@ 导入 + 报告上传 删除 @@ -28,6 +29,8 @@ 删除 + + @@ -38,7 +41,7 @@