fix: 总览数值累加/基站跳转页面修改

This commit is contained in:
TsMask
2025-02-27 15:33:08 +08:00
parent 82d328e974
commit 88a2167bed
2 changed files with 32 additions and 15 deletions

View File

@@ -30,6 +30,8 @@ import {
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
import saveAs from 'file-saver';
import { readSheet, writeSheet } from '@/utils/execl-utils';
import { useRoute } from 'vue-router';
const route = useRoute();
// 异步加载组件
const HistoryModal = defineAsyncComponent(
() => import('./components/history.vue')
@@ -277,7 +279,7 @@ function fnGetList() {
return;
}
req.then(res => {
if (res.code === RESULT_CODE_SUCCESS) {
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.data)) {
// 取消勾选
if (tableState.selectedRowKeys.length > 0) {
tableState.selectedRowKeys = [];
@@ -666,7 +668,8 @@ onMounted(() => {
});
neCascaderOptions.value = arr;
// 无查询参数neType时 默认选择AMF
const item = arr.find(s => s.value === 'AMF');
const queryNeType = (route.query.neType as string) || 'AMF';
const item = arr.find(s => s.value === queryNeType);
if (item && item.children) {
const info = item.children[0];
neTypeAndId.value = [info.neType, info.neId];