左下角切换模式,模拟式编辑
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
@@ -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() //将对象转为数组
|
||||||
|
|||||||
Reference in New Issue
Block a user