左下角切换模式,模拟式编辑

This commit is contained in:
sjl
2025-11-05 09:45:46 +08:00
parent e7c93d03aa
commit f6b4979e7c
2 changed files with 14 additions and 3 deletions

View File

@@ -72,7 +72,15 @@ const handelOpen = async (item: string, key: string) => {
// 强制刷新页面
await tabsStore.closeMultipleTab()
await initDynamicRouter()
// 只有当目标路径与当前路径不同时才跳转
if (router.currentRoute.value.path !== '/home/index') {
await router.push({ path: '/home/index' })
} else {
// 如果已在目标页面,手动触发组件更新
window.location.reload() // 或者采用其他方式刷新数据
}
}
</script>
<style scoped lang="scss">

View File

@@ -964,7 +964,7 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan:
}
}
} else {
;[
[
pqSource_Result,
PqScript_Result,
PqErrSys_Result,
@@ -1040,9 +1040,12 @@ const open = async (sign: string, data: Plan.ReqPlan, currentMode: string, plan:
formContent.devIds = boundData.map((i: any) => i.id) // 已绑定设备id集合
}
handleDataSourceChange()
if (mode.value === '比对式'){
handleTestItemChange(false)
}
}
pqToArray() //将对象转为数组
//比对式检测项下拉框