Merge branch 'lichang' into lite
This commit is contained in:
@@ -788,7 +788,7 @@ export default {
|
|||||||
baseStation: {
|
baseStation: {
|
||||||
list: "List",
|
list: "List",
|
||||||
topology: "Topology",
|
topology: "Topology",
|
||||||
nbName: "RanNodeName",
|
nbName: "RAN Node Name",
|
||||||
ueNum: "UE Number",
|
ueNum: "UE Number",
|
||||||
topologyTitle: "Radio State Graph",
|
topologyTitle: "Radio State Graph",
|
||||||
name: "Name",
|
name: "Name",
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ const useNeListStore = defineStore('ne_list', {
|
|||||||
},
|
},
|
||||||
/**
|
/**
|
||||||
* 含有网元
|
* 含有网元
|
||||||
* @param metaNeType udm|ims|udm+ims
|
* @param metaNeType ['udm', 'ims', 'udm+ims', 'SGWC'] 支持大小写
|
||||||
* @returns boolean
|
* @returns boolean
|
||||||
*/
|
*/
|
||||||
fnHasNe(metaNeType: string[]) {
|
fnHasNe(metaNeType: string[]) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, toRaw } from 'vue';
|
import { onMounted, reactive, ref, toRaw } from 'vue';
|
||||||
import { PageContainer } from 'antdv-pro-layout';
|
import { PageContainer } from 'antdv-pro-layout';
|
||||||
import { SizeType } from 'ant-design-vue/es/config-provider';
|
import { SizeType } from 'ant-design-vue/es/config-provider';
|
||||||
import { ColumnsType } from 'ant-design-vue/es/table';
|
import { ColumnsType } from 'ant-design-vue/es/table';
|
||||||
@@ -8,11 +8,13 @@ import BackupModal from '@/views/ne/neConfigBackup/components/BackupModal.vue';
|
|||||||
import { parseDateToStr } from '@/utils/date-utils';
|
import { parseDateToStr } from '@/utils/date-utils';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
|
import useNeListStore from '@/store/modules/ne_list';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import { delFile, getFile, listFile } from '@/api/tool/file';
|
import { delFile, getFile, listFile } from '@/api/tool/file';
|
||||||
import { parseSizeFromFile } from '@/utils/parse-utils';
|
import { parseSizeFromFile } from '@/utils/parse-utils';
|
||||||
import { pushBackupFTP } from '@/api/neData/backup';
|
import { pushBackupFTP } from '@/api/neData/backup';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
const neListStore = useNeListStore();
|
||||||
|
|
||||||
/**文件来源 */
|
/**文件来源 */
|
||||||
let sourceState = reactive({
|
let sourceState = reactive({
|
||||||
@@ -32,21 +34,25 @@ let sourceState = reactive({
|
|||||||
value: '/cdr/ims_cdr_event',
|
value: '/cdr/ims_cdr_event',
|
||||||
label: t('views.logManage.exportFile.cdrIMS'),
|
label: t('views.logManage.exportFile.cdrIMS'),
|
||||||
path: '/usr/local/omc/backup',
|
path: '/usr/local/omc/backup',
|
||||||
|
neType: 'IMS',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '/cdr/smf_cdr_event',
|
value: '/cdr/smf_cdr_event',
|
||||||
label: t('views.logManage.exportFile.cdrSMF'),
|
label: t('views.logManage.exportFile.cdrSMF'),
|
||||||
path: '/usr/local/omc/backup',
|
path: '/usr/local/omc/backup',
|
||||||
|
neType: 'SMF',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '/cdr/smsc_cdr_event',
|
value: '/cdr/smsc_cdr_event',
|
||||||
label: t('views.logManage.exportFile.cdrSMSC'),
|
label: t('views.logManage.exportFile.cdrSMSC'),
|
||||||
path: '/usr/local/omc/backup',
|
path: '/usr/local/omc/backup',
|
||||||
|
neType: 'SMSC',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '/cdr/sgwc_cdr_event',
|
value: '/cdr/sgwc_cdr_event',
|
||||||
label: t('views.logManage.exportFile.cdrSGWC'),
|
label: t('views.logManage.exportFile.cdrSGWC'),
|
||||||
path: '/usr/local/omc/backup',
|
path: '/usr/local/omc/backup',
|
||||||
|
neType: 'SGWC',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
/**选择value */
|
/**选择value */
|
||||||
@@ -308,6 +314,13 @@ function fnSyncFileToFTP(fileName: string) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
sourceState.list = sourceState.list.filter(item => {
|
||||||
|
if (!item.neType) return true;
|
||||||
|
return neListStore.fnHasNe([item.neType]);
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { reactive, ref, toRaw } from 'vue';
|
import { onMounted, reactive, ref, toRaw } from 'vue';
|
||||||
import { PageContainer } from 'antdv-pro-layout';
|
import { PageContainer } from 'antdv-pro-layout';
|
||||||
import { SizeType } from 'ant-design-vue/es/config-provider';
|
import { SizeType } from 'ant-design-vue/es/config-provider';
|
||||||
import { ColumnsType } from 'ant-design-vue/es/table';
|
import { ColumnsType } from 'ant-design-vue/es/table';
|
||||||
@@ -8,11 +8,13 @@ import BackupModal from '@/views/ne/neConfigBackup/components/BackupModal.vue';
|
|||||||
import { parseDateToStr } from '@/utils/date-utils';
|
import { parseDateToStr } from '@/utils/date-utils';
|
||||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||||
import useI18n from '@/hooks/useI18n';
|
import useI18n from '@/hooks/useI18n';
|
||||||
|
import useNeListStore from '@/store/modules/ne_list';
|
||||||
import saveAs from 'file-saver';
|
import saveAs from 'file-saver';
|
||||||
import { delFile, getFile, listFile } from '@/api/tool/file';
|
import { delFile, getFile, listFile } from '@/api/tool/file';
|
||||||
import { parseSizeFromFile } from '@/utils/parse-utils';
|
import { parseSizeFromFile } from '@/utils/parse-utils';
|
||||||
import { pushBackupFTP } from '@/api/neData/backup';
|
import { pushBackupFTP } from '@/api/neData/backup';
|
||||||
const { t } = useI18n();
|
const { t } = useI18n();
|
||||||
|
const neListStore = useNeListStore();
|
||||||
|
|
||||||
/**文件来源 */
|
/**文件来源 */
|
||||||
let sourceState = reactive({
|
let sourceState = reactive({
|
||||||
@@ -22,21 +24,25 @@ let sourceState = reactive({
|
|||||||
value: '/auth',
|
value: '/auth',
|
||||||
label: t('views.neData.backupData.auth'),
|
label: t('views.neData.backupData.auth'),
|
||||||
path: '/usr/local/omc/backup/udm_data',
|
path: '/usr/local/omc/backup/udm_data',
|
||||||
|
neType: 'UDM',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '/sub',
|
value: '/sub',
|
||||||
label: t('views.neData.backupData.sub'),
|
label: t('views.neData.backupData.sub'),
|
||||||
path: '/usr/local/omc/backup/udm_data',
|
path: '/usr/local/omc/backup/udm_data',
|
||||||
|
neType: 'UDM',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '/voip',
|
value: '/voip',
|
||||||
label: t('views.neData.backupData.voip'),
|
label: t('views.neData.backupData.voip'),
|
||||||
path: '/usr/local/omc/backup/udm_data',
|
path: '/usr/local/omc/backup/udm_data',
|
||||||
|
neType: 'UDM',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
value: '/volte',
|
value: '/volte',
|
||||||
label: t('views.neData.backupData.volte'),
|
label: t('views.neData.backupData.volte'),
|
||||||
path: '/usr/local/omc/backup/udm_data',
|
path: '/usr/local/omc/backup/udm_data',
|
||||||
|
neType: 'UDM+IMS',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
/**选择value */
|
/**选择value */
|
||||||
@@ -298,6 +304,13 @@ function fnSyncFileToFTP(fileName: string) {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onMounted(() => {
|
||||||
|
sourceState.list = sourceState.list.filter(item => {
|
||||||
|
if (!item.neType) return true;
|
||||||
|
return neListStore.fnHasNe([item.neType]);
|
||||||
|
});
|
||||||
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
|
|||||||
Reference in New Issue
Block a user