From 99bbb5434d62754da2b09541e1e1e2e67034d5ab Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Wed, 15 Jan 2025 10:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=80=9A=E9=81=93=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E6=A0=91=E9=97=AE=E9=A2=98=E3=80=81=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E5=B7=A6=E4=BE=A7=E6=A0=91=E6=B5=8B=E8=AF=95=E9=A1=B9=E7=B1=BB?= =?UTF-8?q?=E5=88=AB=E6=B8=85=E7=A9=BA=E3=80=81=E7=82=B9=E5=87=BB=E5=B7=A6?= =?UTF-8?q?=E4=BE=A7=E6=A0=91=E8=B5=8B=E5=80=BCScriptType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/dataCheckSingleChannelSingleTestPopup.vue | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index b3eb09d..0ad163a 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -140,6 +140,7 @@ const currentCheckItem = ref("") const checkList = reactive<{ value: string, label: string }[]>([]) let deviceId: string = '' +let originScriptType: string | null = null let scriptType: string | null = null // 通道下拉列表 @@ -187,6 +188,7 @@ const handleNodeClick = async (data: any) => { checkIndex.value = data.index currentScriptTypeName.value = data.scriptTypeName currentDesc.value = data.sourceDesc + scriptType = data.scriptType ?? scriptType if (checkIndex.value) { await updateTableData() @@ -203,12 +205,14 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => { scriptId: checkStore.scriptId, devId: deviceId, devNum: formContent.chnNum + '', - scriptType, + scriptType:originScriptType, code: parseInt(checkStore.planCode) }) updateTreeFly(resTreeDataTemp, 4) updateTreeFly(resTreeDataTemp, 2) + treeDataAll.length = 0 + Object.assign(treeDataAll, resTreeDataTemp) defaultOperate() @@ -321,6 +325,8 @@ const updateTableData = async () => { resCheckResult = (resCheckResult == null || resCheckResult == undefined ? {} : resCheckResult) setCheckResultData(resCheckResult) setRawData(resRawData) + checkList.length = 0 + currentCheckItem.value = '' } else // if (resTableData.resultData.get('电压幅值') || resTableData.resultData.get('持续时间')) { // let tempCheckList = [] @@ -394,6 +400,7 @@ const doCurrentCheckItemUpdate = (newVal: string)=>{ const open = async (_deviceId: string, chnNum: string, _scriptType: string | null) => { deviceId = _deviceId + originScriptType = _scriptType scriptType = _scriptType // 发起后端请求,查询详细信息 当chnNum为-1时,查询所有通道号