修复 修改Event Type的label
This commit is contained in:
@@ -25,6 +25,9 @@ const queue = new PQueue({ concurrency: 1, autoStart: true });
|
|||||||
/**网元可选 */
|
/**网元可选 */
|
||||||
let neOtions = ref<Record<string, any>[]>([]);
|
let neOtions = ref<Record<string, any>[]>([]);
|
||||||
|
|
||||||
|
/**event Type */
|
||||||
|
let mmeEventType = ref<DictType[]>([]);
|
||||||
|
|
||||||
/**字典数据 */
|
/**字典数据 */
|
||||||
let dict: {
|
let dict: {
|
||||||
/**UE 事件认证代码类型 */
|
/**UE 事件认证代码类型 */
|
||||||
@@ -415,11 +418,13 @@ onMounted(() => {
|
|||||||
dict.ueAauthCode = resArr[0].value;
|
dict.ueAauthCode = resArr[0].value;
|
||||||
}
|
}
|
||||||
if (resArr[1].status === 'fulfilled') {
|
if (resArr[1].status === 'fulfilled') {
|
||||||
dict.ueEventType = resArr[1].value.map(item => {
|
resArr[1].value.map(item => {
|
||||||
if (item.value === 'cm-state') {
|
const realJson = JSON.parse(JSON.stringify(item));
|
||||||
item.label = item.label.replace('CM', 'ECM');
|
|
||||||
|
if (realJson.value === 'cm-state') {
|
||||||
|
realJson.label = realJson.label.replace('CM', 'ECM');
|
||||||
}
|
}
|
||||||
return item;
|
mmeEventType.value.push(realJson);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
if (resArr[2].status === 'fulfilled') {
|
if (resArr[2].status === 'fulfilled') {
|
||||||
@@ -491,7 +496,7 @@ onBeforeUnmount(() => {
|
|||||||
<a-select
|
<a-select
|
||||||
v-model:value="eventTypes"
|
v-model:value="eventTypes"
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
:options="dict.ueEventType"
|
:options="mmeEventType"
|
||||||
:placeholder="t('common.selectPlease')"
|
:placeholder="t('common.selectPlease')"
|
||||||
@change="fnQueryEventTypeChange"
|
@change="fnQueryEventTypeChange"
|
||||||
></a-select>
|
></a-select>
|
||||||
@@ -648,7 +653,7 @@ onBeforeUnmount(() => {
|
|||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'eventType'">
|
<template v-if="column.key === 'eventType'">
|
||||||
<DictTag :options="dict.ueEventType" :value="record.eventType" />
|
<DictTag :options="mmeEventType" :value="record.eventType" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'result'">
|
<template v-if="column.key === 'result'">
|
||||||
<span v-if="record.eventType === 'auth-result'">
|
<span v-if="record.eventType === 'auth-result'">
|
||||||
@@ -705,7 +710,7 @@ onBeforeUnmount(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ t('views.dashboard.ue.eventType') }}: </span>
|
<span>{{ t('views.dashboard.ue.eventType') }}: </span>
|
||||||
<DictTag :options="dict.ueEventType" :value="record.eventType" />
|
<DictTag :options="mmeEventType" :value="record.eventType" />
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ t('views.dashboard.ue.result') }}: </span>
|
<span>{{ t('views.dashboard.ue.result') }}: </span>
|
||||||
|
|||||||
Reference in New Issue
Block a user