diff --git a/src/views/index/defaultIndex.vue b/src/views/index/defaultIndex.vue index b11977e6..3df040df 100644 --- a/src/views/index/defaultIndex.vue +++ b/src/views/index/defaultIndex.vue @@ -38,12 +38,12 @@ const statusBarChart = ref(null); /**网元状态字典数据 */ let indexColor = ref([ - { label: 'Normal', value: 'normal', elTagType: '', elTagClass: '#91cc75' }, + { label: 'Normal', value: 'normal', tagType: '', tagClass: '#91cc75' }, { label: 'Abnormal', value: 'abnormal', - elTagType: '', - elTagClass: '#ee6666', + tagType: '', + tagClass: '#ee6666', }, ]); @@ -197,7 +197,7 @@ function fnGetList(one: boolean) { orient: 'vertical', left: 'left', }, - color: indexColor.value.map(item => item.elTagClass), + color: indexColor.value.map(item => item.tagClass), series: [ { name: t('views.index.realNeStatus'), diff --git a/src/views/index/moduleInfo.vue b/src/views/index/moduleInfo.vue index 457c1968..4ae27942 100644 --- a/src/views/index/moduleInfo.vue +++ b/src/views/index/moduleInfo.vue @@ -2,7 +2,7 @@ import { ref, onMounted, markRaw, reactive } from 'vue'; import useI18n from '@/hooks/useI18n'; import { RESULT_CODE_SUCCESS } from '@/constants/result-constants'; -import { listSub } from '@/api/neUser/sub'; +import { listUDMSub } from '@/api/neData/udm_sub'; import { listUENumBySMF, listUEInfoBySMF } from '@/api/neUser/smf'; import { listBase5G } from '@/api/neUser/base5G'; import { useRouter } from 'vue-router'; @@ -38,7 +38,7 @@ let skimState: SkimStateType = reactive({ /**获取概览信息 */ async function fnGetSkim() { const resArr = await Promise.allSettled([ - listSub({ + listUDMSub({ neid: '001', pageNum: 1, pageSize: 1, diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index daab4615..fa4863e7 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -1106,7 +1106,6 @@ onMounted(() => { { if (res.code === RESULT_CODE_SUCCESS) { transformFormData(res.data.smData); @@ -607,8 +607,8 @@ function fnModalOk() { .map((item: number) => `${item}`.padStart(2, '0')) .join(''); - const neID = queryParams.neId || '-'; - const result = from.id ? updateSub(neID, from) : addSub(neID, from); + from.neId = queryParams.neId || '-'; + const result = from.id ? updateUDMSub(from) : addUDMSub(from); const hide = message.loading(t('common.loading'), 0); result .then(res => { @@ -695,11 +695,10 @@ function fnBatchModalOk() { .map((item: number) => `${item}`.padStart(2, '0')) .join(''); - const neID = queryParams.neId || '-'; - from.neID = neID; + const hide = message.loading(t('common.loading'), 0); - batchAddSub(from) - .then(res => { + from.neId = queryParams.neId || '-'; + batchAddUDMSub(from, from.num).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ content: t('common.msgSuccess', { msg: modalState.title }), @@ -748,10 +747,9 @@ function fnBatchDelModalOk() { .then(e => { modalState.confirmLoading = true; const from = toRaw(modalState.BatchDelForm); - from.neID = queryParams.neId || '-'; const hide = message.loading(t('common.loading'), 0); - batchDelSub(from) - .then(res => { + const neId = queryParams.neId || '-'; + batchDelUDMSub(neId, from.imsi, from.num).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ content: t('common.msgSuccess', { msg: modalState.title }), @@ -872,7 +870,7 @@ function fnRecordDelete(imsi: string) { onOk() { modalState.loadDataLoading = true; const hide = message.loading(t('common.loading'), 0); - delSub(neID, imsi) + delUDMSub(neID, imsi) .then(res => { if (res.code === RESULT_CODE_SUCCESS) { const msgContent = t('common.msgSuccess', { @@ -953,7 +951,7 @@ function fnExportList(type: string) { if (!neID) return; const key = 'exportSub'; message.loading({ content: t('common.loading'), key }); - exportSub({ + exportUDMSub({ neId: neID, type: type, }).then(res => { @@ -982,7 +980,7 @@ function fnLoadData() { tablePagination.total = 0; tableState.data = []; tableState.loading = true; // 表格loading - loadSub(neID).then(res => { + resetUDMSub(neID).then(res => { if (res.code === RESULT_CODE_SUCCESS) { const num = res.data; notification.success({ @@ -1019,7 +1017,7 @@ function fnGetList(pageNum?: number) { const selectFrom = Object.assign({}, toRaw(queryParams)); - listSub(selectFrom).then(res => { + listUDMSub(selectFrom).then(res => { if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) { // 取消勾选 if (tableState.selectedRowKeys.length > 0) { @@ -1085,7 +1083,7 @@ function fnModalUploadImportUpload(file: File) { formData.append('neId', neID); const hide = message.loading(t('common.loading'), 0); uploadImportState.loading = true; - importSubData(formData) + importUDMSub(formData) .then(res => { uploadImportState.msg = res.msg; }) @@ -1412,7 +1410,7 @@ onMounted(() => { - { - + - { - + - { - + { - { - +