This commit is contained in:
sjl
2025-08-05 10:37:48 +08:00
4 changed files with 53 additions and 8 deletions

View File

@@ -140,7 +140,7 @@
link
:icon='Download'
@click="openDrawer('报告下载', scope.row)"
v-if='form.activeTabs === 3 && form.activeChildTabs === 0 && scope.row.reportState === 1'
v-if='form.activeTabs === 3 && form.activeChildTabs === 0 && (scope.row.reportState === 1 ||scope.row.reportState === 3)'
>报告下载
</el-button>
@@ -630,6 +630,8 @@ const columns = reactive<ColumnProps<Device.ResPqDev>[]>([
return '已生成'
} else if (scope.row.reportState === 2) {
return '未检'
}else if(scope.row.reportState === 3){
return '已上传'
}
return ''
},

View File

@@ -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