增加ueEVENT 模块
This commit is contained in:
@@ -3,14 +3,17 @@ import { ref, onMounted, markRaw, reactive } from 'vue';
|
||||
import useI18n from '@/hooks/useI18n';
|
||||
import { RESULT_CODE_SUCCESS } from '@/constants/result-constants';
|
||||
import { listUDMSub } from '@/api/neData/udm_sub';
|
||||
import { listUENumBySMF, listUEInfoBySMF } from '@/api/neUser/smf';
|
||||
import { listUEInfoBySMF } from '@/api/neUser/smf';
|
||||
import svgBasefff from '@/assets/svg/basefff.svg';
|
||||
import fourEvent from '@/assets/svg/4gEvent.svg';
|
||||
import fiveEvent from '@/assets/svg/5gEvent.svg';
|
||||
import { listBase5G } from '@/api/neUser/base5G';
|
||||
import { useRouter } from 'vue-router';
|
||||
import { listUENumByIMS } from '@/api/neUser/ims';
|
||||
import { listSMFDataCDR } from '@/api/neData/smf';
|
||||
import { listIMSDataCDR } from '@/api/neData/ims';
|
||||
import { listSysLogOperate } from '@/api/system/log/operate';
|
||||
import { listMMEDataUE } from '@/api/neData/mme';
|
||||
import { listAMFDataUE } from '@/api/neData/amf';
|
||||
const router = useRouter();
|
||||
const { t } = useI18n();
|
||||
|
||||
@@ -34,8 +37,10 @@ type SkimStateType = {
|
||||
smfCdrNum: number;
|
||||
/**IMS CDR数量 */
|
||||
imsCdrNum: number;
|
||||
/**操作日志数量 */
|
||||
operNum: number;
|
||||
/**4G事件数量 */
|
||||
EventNum: number;
|
||||
/**5G事件数量 */
|
||||
gEventNum: number;
|
||||
};
|
||||
|
||||
/**概览状态信息 */
|
||||
@@ -49,7 +54,8 @@ let skimState: SkimStateType = reactive({
|
||||
imsUeNum: 0,
|
||||
smfCdrNum: 0,
|
||||
imsCdrNum: 0,
|
||||
operNum: 0,
|
||||
EventNum: 0,
|
||||
gEventNum: 0,
|
||||
});
|
||||
|
||||
/**获取概览信息 */
|
||||
@@ -86,7 +92,15 @@ async function fnGetSkim() {
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
}),
|
||||
listSysLogOperate({
|
||||
listMMEDataUE({
|
||||
neType: 'MME',
|
||||
neId: '001',
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
}),
|
||||
listAMFDataUE({
|
||||
neType: 'AMF',
|
||||
neId: '001',
|
||||
pageNum: 1,
|
||||
pageSize: 20,
|
||||
}),
|
||||
@@ -147,7 +161,14 @@ async function fnGetSkim() {
|
||||
if (resArr[7].status === 'fulfilled') {
|
||||
const res7 = resArr[7].value;
|
||||
if (res7.code === RESULT_CODE_SUCCESS) {
|
||||
skimState.operNum = res7.total;
|
||||
skimState.EventNum = res7.total;
|
||||
}
|
||||
}
|
||||
|
||||
if (resArr[8].status === 'fulfilled') {
|
||||
const res8 = resArr[8].value;
|
||||
if (res8.code === RESULT_CODE_SUCCESS) {
|
||||
skimState.gEventNum = res8.total;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -324,7 +345,7 @@ onMounted(() => {
|
||||
</a-card>
|
||||
</a-col>
|
||||
|
||||
<!-- 操作日志 -->
|
||||
<!--UE EVENT -->
|
||||
<a-col :lg="8" :md="24" :xs="24">
|
||||
<a-card
|
||||
:bordered="false"
|
||||
@@ -334,17 +355,28 @@ onMounted(() => {
|
||||
>
|
||||
<div style="text-align: center">
|
||||
<span style="font-size: 24px; font-weight: bold; color: #fff">
|
||||
Operate Logs
|
||||
UE EVENT
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<div class="visual">
|
||||
<BarChartOutlined />
|
||||
<div class="detailsLeft">
|
||||
<div class="number" @click="fnToRouter('MmeUE_10017')">
|
||||
<img
|
||||
:src="fourEvent"
|
||||
style="height: 2.5rem; color: #fff; margin-top: -14px"
|
||||
class="spaceButton"
|
||||
/>
|
||||
{{ skimState.EventNum }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="details">
|
||||
<div class="number" @click="fnToRouter('Operate_10018')">
|
||||
<FileTextOutlined class="spaceButton" /> {{ skimState.operNum }}
|
||||
<div class="number" @click="fnToRouter('AmfUE_10016')">
|
||||
<img
|
||||
:src="fiveEvent"
|
||||
style="height: 2.5rem; color: #fff; margin-top: -14px"
|
||||
class="spaceButton"
|
||||
/>
|
||||
3
|
||||
</div>
|
||||
</div>
|
||||
</a-card>
|
||||
|
||||
Reference in New Issue
Block a user