feat: kpi指标跳转指定网元类型

This commit is contained in:
TsMask
2024-04-11 11:54:48 +08:00
parent aca842f8c2
commit 73776ed0f9

View File

@@ -41,7 +41,9 @@ import { writeSheet } from '@/utils/execl-utils';
import saveAs from 'file-saver';
import { generateColorRGBA } from '@/utils/generate-utils';
import { OptionsType, WS } from '@/plugins/ws-websocket';
import { useRoute } from 'vue-router';
const neInfoStore = useNeInfoStore();
const route = useRoute();
const { t, currentLocale } = useI18n();
const ws = new WS();
@@ -592,8 +594,9 @@ onMounted(() => {
});
return;
}
// 默认选择UPF
const item = neCascaderOptions.value.find(s => s.value === 'UPF');
// 无查询参数neType时 默认选择UPF
const queryNeType = (route.query.neType as string) || 'UPF';
const item = neCascaderOptions.value.find(s => s.value === queryNeType);
if (item && item.children) {
const info = item.children[0];
state.neType = [info.neType, info.neId];