fix: 看病栏目添加跳转事件
This commit is contained in:
@@ -9,8 +9,9 @@ import { listBase5G } from '@/api/neUser/base5G';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import useNeInfoStore from '@/store/modules/neinfo';
|
||||
import { useRoute } from 'vue-router';
|
||||
const neInfoStore = useNeInfoStore();
|
||||
|
||||
const route = useRoute();
|
||||
const { t } = useI18n();
|
||||
|
||||
/**网元参数 */
|
||||
@@ -172,7 +173,6 @@ function fnGetList(pageNum?: number) {
|
||||
|
||||
onMounted(() => {
|
||||
// 获取网元网元列表
|
||||
|
||||
neInfoStore
|
||||
.fnNelist()
|
||||
.then(res => {
|
||||
@@ -191,8 +191,11 @@ onMounted(() => {
|
||||
});
|
||||
return;
|
||||
}
|
||||
// 默认选择UPF
|
||||
const item = neCascaderOptions.value.find(s => s.value === 'AMF');
|
||||
// 无查询参数neType时 默认选择AMF
|
||||
const queryNeType = (route.query.neType as string) || 'AMF';
|
||||
const item = neCascaderOptions.value.find(
|
||||
s => s.value === queryNeType
|
||||
);
|
||||
if (item && item.children) {
|
||||
const info = item.children[0];
|
||||
queryParams.neType = [info.neType, info.neId];
|
||||
@@ -200,7 +203,6 @@ onMounted(() => {
|
||||
const info = neCascaderOptions.value[0].children[0];
|
||||
queryParams.neType = [info.neType, info.neId];
|
||||
}
|
||||
console.log(neCascaderOptions.value);
|
||||
}
|
||||
} else {
|
||||
message.warning({
|
||||
|
||||
Reference in New Issue
Block a user