feat: 告警中心仪表盘跳转
This commit is contained in:
parent
b262b50dd6
commit
217b020344
|
@ -128,7 +128,7 @@ const queryList = async (params: any) => {
|
|||
// sorts: [{ name: 'alarmTime', order: 'desc' }],
|
||||
});
|
||||
if (res.status === 200) {
|
||||
|
||||
details.value = res.result.data[0];
|
||||
return {
|
||||
code: res.message,
|
||||
result: {
|
||||
|
@ -178,6 +178,13 @@ const handleSearch = (_params: any) => {
|
|||
const close = () => {
|
||||
visiable.value = false
|
||||
}
|
||||
|
||||
watchEffect(()=>{
|
||||
current.value = details.value;
|
||||
if(route.query.detail && details.value){
|
||||
visiable.value = true;
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<style lang="less" scoped>
|
||||
</style>
|
|
@ -73,7 +73,7 @@ const props = defineProps({
|
|||
});
|
||||
const menuStore = useMenuStore();
|
||||
const jumpDetail = (item:any) =>{
|
||||
menuStore.jumpPage(`rule-engine/Alarm/Log/Detail`,{id:item.id});
|
||||
menuStore.jumpPage(`rule-engine/Alarm/Log/Detail`,{id:item.id},{detail:true});
|
||||
}
|
||||
</script>
|
||||
<style scoped lang="less">
|
||||
|
|
Loading…
Reference in New Issue