From d6ac63586bb487c9ed01057de8b3ee9dc9a43626 Mon Sep 17 00:00:00 2001 From: caozehui <2427765068@qq.com> Date: Thu, 27 Feb 2025 14:45:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=88=E5=B9=B6master=E5=88=86=E6=94=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/.env.development | 1 + frontend/.env.production | 2 +- .../dataCheckSingleChannelSingleTestPopup.vue | 7 ++++--- frontend/src/views/home/components/test.vue | 11 +++++------ 4 files changed, 11 insertions(+), 10 deletions(-) diff --git a/frontend/.env.development b/frontend/.env.development index 8f13788..92c4237 100644 --- a/frontend/.env.development +++ b/frontend/.env.development @@ -19,6 +19,7 @@ VITE_API_URL=/api # 开发环境跨域代理,支持配置多个 +#VITE_PROXY=[["/api","http://127.0.0.1:18092/"]] VITE_PROXY=[["/api","http://192.168.1.124:18092/"]] #VITE_PROXY=[["/api","http://192.168.1.125:18092/"]] # VITE_PROXY=[["/api","http://192.168.1.138:8080/"]]张文 diff --git a/frontend/.env.production b/frontend/.env.production index ee07a24..aadfb6c 100644 --- a/frontend/.env.production +++ b/frontend/.env.production @@ -22,5 +22,5 @@ VITE_DROP_CONSOLE=true VITE_PWA=true # 线上环境接口地址 -# VITE_API_URL="/api" # 打包时用 +#VITE_API_URL="/api" # 打包时用 VITE_API_URL="http://192.168.1.125:18092/" diff --git a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue index 156cddf..ce5b750 100644 --- a/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue +++ b/frontend/src/views/home/components/dataCheckSingleChannelSingleTestPopup.vue @@ -193,6 +193,7 @@ const handleNodeClick = async (data: any) => { currentDesc.value = data.sourceDesc scriptType = data.scriptType ?? scriptType + console.log("点击左侧树节点触发事件handleNodeClick", checkIndex.value) if (checkIndex.value) { await updateTableData() activeTab.value = 'resultTab' @@ -244,7 +245,7 @@ watch(() => formContent.chnNum, async (newVal, oldVal) => { watch(currentCheckItem, (newVal, oldVal) => { console.log("当前检测项", newVal); - if (newVal) { + if (newVal!== '') { doCurrentCheckItemUpdate(newVal) } else { activeTab.value = 'resultTab' @@ -272,8 +273,8 @@ const defaultOperate = () => { } const updateTableData = async () => { - // console.log("左侧树被选中的叶子节点checkIndex", checkIndex.value); - if (checkIndex.value) { + console.log("左侧树被选中的叶子节点checkIndex", checkIndex.value); + if (checkIndex.value !== '') { // console.log("更新表格数据"); // 发起请求,查询该测试项的检测结果 const {data} = await getTableData({ diff --git a/frontend/src/views/home/components/test.vue b/frontend/src/views/home/components/test.vue index af88530..3727f90 100644 --- a/frontend/src/views/home/components/test.vue +++ b/frontend/src/views/home/components/test.vue @@ -152,10 +152,10 @@ - + + + + @@ -225,7 +225,7 @@ const testLogList = reactive([{type: 'info', log: '暂无 const testStatus = toRef(props, 'testStatus') const webMsgSend = toRef(props, 'webMsgSend') -const resultDialogVisible = ref(false) +// const resultDialogVisible = ref(false) const scrollContainerRef = ref(); const dataCheckSingleChannelSingleTestPopupRef = ref>() @@ -643,7 +643,6 @@ watch(webMsgSend, function (newValue, oldValue) { } } } - }, {deep: true}) const handleStartItem = (code: string, desc: string | undefined) => {