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

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

View File

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