feat: kpi指标跳转指定网元类型
This commit is contained in:
@@ -41,7 +41,9 @@ import { writeSheet } from '@/utils/execl-utils';
|
|||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import { generateColorRGBA } from '@/utils/generate-utils';
|
import { generateColorRGBA } from '@/utils/generate-utils';
|
||||||
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
import { OptionsType, WS } from '@/plugins/ws-websocket';
|
||||||
|
import { useRoute } from 'vue-router';
|
||||||
const neInfoStore = useNeInfoStore();
|
const neInfoStore = useNeInfoStore();
|
||||||
|
const route = useRoute();
|
||||||
const { t, currentLocale } = useI18n();
|
const { t, currentLocale } = useI18n();
|
||||||
const ws = new WS();
|
const ws = new WS();
|
||||||
|
|
||||||
@@ -592,8 +594,9 @@ onMounted(() => {
|
|||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// 默认选择UPF
|
// 无查询参数neType时 默认选择UPF
|
||||||
const item = neCascaderOptions.value.find(s => s.value === 'UPF');
|
const queryNeType = (route.query.neType as string) || 'UPF';
|
||||||
|
const item = neCascaderOptions.value.find(s => s.value === queryNeType);
|
||||||
if (item && item.children) {
|
if (item && item.children) {
|
||||||
const info = item.children[0];
|
const info = item.children[0];
|
||||||
state.neType = [info.neType, info.neId];
|
state.neType = [info.neType, info.neId];
|
||||||
|
|||||||
Reference in New Issue
Block a user