手动检测功能修改、一键检测功能修改(均未完成)

This commit is contained in:
caozehui
2025-02-25 10:17:33 +08:00
parent a0c7f79302
commit 280289af37
11 changed files with 1793 additions and 833 deletions

View File

@@ -206,11 +206,11 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => {
if (newVal) {
// 发起请求,查询该测试项的检测结果
const {data: resTreeDataTemp}: { data: CheckData.TreeItem[] } = await getTreeData({
scriptId: checkStore.scriptId,
scriptId: checkStore.plan.scriptId,
devId: deviceId,
devNum: formContent.chnNum + '',
scriptType: originScriptType,
code: parseInt(checkStore.planCode)
code: parseInt(checkStore.plan.code)
})
updateTreeFly(resTreeDataTemp, 4)
updateTreeFly(resTreeDataTemp, 2)
@@ -278,10 +278,10 @@ const updateTableData = async () => {
// 发起请求,查询该测试项的检测结果
const {data} = await getTableData({
scriptType,
scriptId: checkStore.scriptId,
scriptId: checkStore.plan.scriptId,
devId: deviceId,
devNum: formContent.chnNum + '',
code: parseInt(checkStore.planCode),
code: parseInt(checkStore.plan.code),
index: parseInt(checkIndex.value),
})
@@ -372,7 +372,7 @@ const open = async (_deviceId: string, chnNum: string, _scriptType: string | nul
// 发起后端请求,查询详细信息 当chnNum为-1时查询所有通道号
const {data: resFormContent}: { data: any } = await getFormData({
planId: checkStore.planId,
planId: checkStore.plan.id,
deviceId,
chnNum,
scriptType
@@ -471,10 +471,10 @@ const setCheckResultData = (data: CheckData.ResCheckResult | null) => {
const exportRawDataHandler = () => {
useDownload(exportRawData, '原始数据.xlsx', {
scriptType,
scriptId: checkStore.scriptId,
scriptId: checkStore.plan.scriptId,
devId: deviceId,
devNum: formContent.chnNum + '',
code: parseInt(checkStore.planCode),
code: parseInt(checkStore.plan.code),
index: parseInt(checkIndex.value),
}, false, '.xlsx')
}