Merge remote-tracking branch 'origin/main' into practical-training
This commit is contained in:
@@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network EMS"
|
|||||||
VITE_APP_CODE = "CN EMS"
|
VITE_APP_CODE = "CN EMS"
|
||||||
|
|
||||||
# 应用版本
|
# 应用版本
|
||||||
VITE_APP_VERSION = "2.240617.1"
|
VITE_APP_VERSION = "2.240619.1"
|
||||||
|
|
||||||
# 接口基础URL地址-不带/后缀
|
# 接口基础URL地址-不带/后缀
|
||||||
VITE_API_BASE_URL = "/omc-api"
|
VITE_API_BASE_URL = "/omc-api"
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network EMS"
|
|||||||
VITE_APP_CODE = "CN EMS"
|
VITE_APP_CODE = "CN EMS"
|
||||||
|
|
||||||
# 应用版本
|
# 应用版本
|
||||||
VITE_APP_VERSION = "2.240617.1"
|
VITE_APP_VERSION = "2.240619.1"
|
||||||
|
|
||||||
# 接口基础URL地址-不带/后缀
|
# 接口基础URL地址-不带/后缀
|
||||||
VITE_API_BASE_URL = "/omc-api"
|
VITE_API_BASE_URL = "/omc-api"
|
||||||
|
|||||||
@@ -25,8 +25,10 @@ export async function listBase5G(query: Record<string, any>) {
|
|||||||
data.total = rows.length;
|
data.total = rows.length;
|
||||||
data.rows = rows;
|
data.rows = rows;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 模拟数据
|
// 模拟数据
|
||||||
// data.rows =[{"address":"192.168.1.137:38412","id":"217","name":"attach-enb-100000-20","ueNum":0}]
|
// data.rows = [{"address":"192.168.1.137:38412","id":"217","name":"attach-enb-100000-20","ueNum":0}]
|
||||||
|
// data.rows = [{address: "192.168.8.223", id: 257, name: "SmallCell", ueNum: 0}]
|
||||||
|
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -31,36 +31,55 @@ export async function listUEInfoBySMF(query: Record<string, any>) {
|
|||||||
// data.code = RESULT_CODE_SUCCESS;
|
// data.code = RESULT_CODE_SUCCESS;
|
||||||
// data.rows = [
|
// data.rows = [
|
||||||
// {
|
// {
|
||||||
// imsi: 'imsi-460002082101038',
|
// imsi: 'imsi-460000100000090',
|
||||||
// msisdn: 'msisdn-12307550000',
|
// msisdn: 'msisdn-12307550090',
|
||||||
// pduSessionInfo: [
|
// pduSessionInfo: [
|
||||||
// {
|
// {
|
||||||
// activeTime: '2024-05-08 11:08:22',
|
// activeTime: '2024-06-19 14:35:26',
|
||||||
// dnn: 'ims',
|
// dnn: 'ims',
|
||||||
// ipv4: '10.10.86.2',
|
// ipv4: '10.10.48.8',
|
||||||
// ipv6: '',
|
|
||||||
// pduSessionID: 5,
|
|
||||||
// ranN3IP: '192.168.5.100',
|
|
||||||
// sstSD: '1-000001',
|
|
||||||
// tai: '46000-001124',
|
|
||||||
// upState: 'Active',
|
|
||||||
// upfN3IP: '192.168.14.201',
|
|
||||||
// },
|
|
||||||
// {
|
|
||||||
// activeTime: '2024-05-08 11:08:23',
|
|
||||||
// dnn: 'cmnet',
|
|
||||||
// ipv4: '10.10.86.201',
|
|
||||||
// ipv6: '',
|
// ipv6: '',
|
||||||
// pduSessionID: 6,
|
// pduSessionID: 6,
|
||||||
// ranN3IP: '192.168.5.100',
|
// ranN3IP: '192.168.1.137',
|
||||||
// sstSD: '1-000001',
|
// sstSD: '1-000001',
|
||||||
// tai: '46000-001124',
|
// tai: '46000-001124',
|
||||||
// upState: 'Active',
|
// upState: 'Active',
|
||||||
// upfN3IP: '192.168.14.201',
|
// upfN3IP: '192.168.1.161',
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// activeTime: '2024-06-19 14:35:26',
|
||||||
|
// dnn: 'cmnet',
|
||||||
|
// ipv4: '10.10.48.9',
|
||||||
|
// ipv6: '2001:4860:4860::/64',
|
||||||
|
// pduSessionID: 7,
|
||||||
|
// ranN3IP: '192.168.1.137',
|
||||||
|
// sstSD: '1-000001',
|
||||||
|
// tai: '46000-001124',
|
||||||
|
// upState: 'Active',
|
||||||
|
// upfN3IP: '192.168.1.161',
|
||||||
// },
|
// },
|
||||||
// ],
|
// ],
|
||||||
// ratType: 'NR',
|
// ratType: 'NR',
|
||||||
// },
|
// },
|
||||||
|
// {
|
||||||
|
// imsi: 'imsi-460602072701180',
|
||||||
|
// msisdn: 'msisdn-123460600080',
|
||||||
|
// pduSessionInfo: [
|
||||||
|
// {
|
||||||
|
// activeTime: '2024-06-19 14:31:09',
|
||||||
|
// dnn: 'cmnet',
|
||||||
|
// ipv4: '10.10.48.4',
|
||||||
|
// ipv6: '',
|
||||||
|
// pduSessionID: 5,
|
||||||
|
// ranN3IP: '192.168.8.223',
|
||||||
|
// sstSD: '1-000001',
|
||||||
|
// tai: '46060-0001',
|
||||||
|
// upState: 'Active',
|
||||||
|
// upfN3IP: '192.168.1.161',
|
||||||
|
// },
|
||||||
|
// ],
|
||||||
|
// ratType: 'EUTRAN',
|
||||||
|
// },
|
||||||
// ];
|
// ];
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ function fnUpload(up: UploadRequestOption) {
|
|||||||
:keyboard="false"
|
:keyboard="false"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
:confirm-loading="props.loading"
|
:confirm-loading="props.loading"
|
||||||
:footer="null"
|
:footer="false"
|
||||||
@cancel="fnModalClose"
|
@cancel="fnModalClose"
|
||||||
>
|
>
|
||||||
<a-space :size="8" direction="vertical" style="width: 100%">
|
<a-space :size="8" direction="vertical" style="width: 100%">
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ watch(
|
|||||||
:keyboard="false"
|
:keyboard="false"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
:footer="null"
|
:footer="false"
|
||||||
>
|
>
|
||||||
<!-- 表格搜索栏 -->
|
<!-- 表格搜索栏 -->
|
||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
|
|||||||
@@ -23,13 +23,16 @@ const queue = new PQueue({ concurrency: 1, autoStart: true });
|
|||||||
|
|
||||||
/**字典数据 */
|
/**字典数据 */
|
||||||
let dict: {
|
let dict: {
|
||||||
/**UE 事件类型MME */
|
/**UE 事件认证代码类型 */
|
||||||
ueEventTypeMME: DictType[];
|
ueAauthCode: DictType[];
|
||||||
/**UE 事件结果MME */
|
/**UE 事件类型 */
|
||||||
ueEventResultMME: DictType[];
|
ueEventType: DictType[];
|
||||||
|
/**UE 事件CM状态 */
|
||||||
|
ueEventCmState: DictType[];
|
||||||
} = reactive({
|
} = reactive({
|
||||||
ueEventTypeMME: [],
|
ueAauthCode: [],
|
||||||
ueEventResultMME: [],
|
ueEventType: [],
|
||||||
|
ueEventCmState: [],
|
||||||
});
|
});
|
||||||
|
|
||||||
/**开始结束时间 */
|
/**开始结束时间 */
|
||||||
@@ -40,7 +43,7 @@ let queryParams = reactive({
|
|||||||
/**网元类型 */
|
/**网元类型 */
|
||||||
neType: 'MME',
|
neType: 'MME',
|
||||||
neId: '001',
|
neId: '001',
|
||||||
eventType: '',
|
eventType: 'auth-result',
|
||||||
imsi: '',
|
imsi: '',
|
||||||
sortField: 'timestamp',
|
sortField: 'timestamp',
|
||||||
sortOrder: 'desc',
|
sortOrder: 'desc',
|
||||||
@@ -56,9 +59,9 @@ let queryParams = reactive({
|
|||||||
|
|
||||||
/**查询参数重置 */
|
/**查询参数重置 */
|
||||||
function fnQueryReset() {
|
function fnQueryReset() {
|
||||||
eventTypes.value = [];
|
eventTypes.value = ['auth-result'];
|
||||||
queryParams = Object.assign(queryParams, {
|
queryParams = Object.assign(queryParams, {
|
||||||
eventType: '',
|
eventType: 'auth-result',
|
||||||
imsi: '',
|
imsi: '',
|
||||||
startTime: '',
|
startTime: '',
|
||||||
endTime: '',
|
endTime: '',
|
||||||
@@ -72,7 +75,7 @@ function fnQueryReset() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**记录类型 */
|
/**记录类型 */
|
||||||
const eventTypes = ref<string[]>([]);
|
const eventTypes = ref<string[]>(['auth-result']);
|
||||||
|
|
||||||
/**查询记录类型变更 */
|
/**查询记录类型变更 */
|
||||||
function fnQueryEventTypeChange(value: any) {
|
function fnQueryEventTypeChange(value: any) {
|
||||||
@@ -397,15 +400,19 @@ function wsMessage(res: Record<string, any>) {
|
|||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
// 初始字典数据
|
// 初始字典数据
|
||||||
Promise.allSettled([
|
Promise.allSettled([
|
||||||
getDict('ue_event_mme_type'),
|
getDict('ue_auth_code'),
|
||||||
getDict('ue_event_mme_result'),
|
getDict('ue_event_type'),
|
||||||
|
getDict('ue_event_cm_state'),
|
||||||
])
|
])
|
||||||
.then(resArr => {
|
.then(resArr => {
|
||||||
if (resArr[0].status === 'fulfilled') {
|
if (resArr[0].status === 'fulfilled') {
|
||||||
dict.ueEventTypeMME = resArr[0].value;
|
dict.ueAauthCode = resArr[0].value;
|
||||||
}
|
}
|
||||||
if (resArr[1].status === 'fulfilled') {
|
if (resArr[1].status === 'fulfilled') {
|
||||||
dict.ueEventResultMME = resArr[1].value;
|
dict.ueEventType = resArr[1].value;
|
||||||
|
}
|
||||||
|
if (resArr[2].status === 'fulfilled') {
|
||||||
|
dict.ueEventCmState = resArr[2].value;
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
@@ -439,7 +446,7 @@ onBeforeUnmount(() => {
|
|||||||
<a-select
|
<a-select
|
||||||
v-model:value="eventTypes"
|
v-model:value="eventTypes"
|
||||||
mode="multiple"
|
mode="multiple"
|
||||||
:options="dict.ueEventTypeMME"
|
:options="dict.ueEventType"
|
||||||
:placeholder="t('common.selectPlease')"
|
:placeholder="t('common.selectPlease')"
|
||||||
@change="fnQueryEventTypeChange"
|
@change="fnQueryEventTypeChange"
|
||||||
></a-select>
|
></a-select>
|
||||||
@@ -595,13 +602,24 @@ onBeforeUnmount(() => {
|
|||||||
>
|
>
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'eventType'">
|
<template v-if="column.key === 'eventType'">
|
||||||
<DictTag :options="dict.ueEventTypeMME" :value="record.eventType" />
|
<DictTag :options="dict.ueEventType" :value="record.eventType" />
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'result'">
|
<template v-if="column.key === 'result'">
|
||||||
<DictTag
|
<span v-if="record.eventType === 'auth-result'">
|
||||||
:options="dict.ueEventResultMME"
|
<DictTag
|
||||||
:value="record.eventJSON.result"
|
:options="dict.ueAauthCode"
|
||||||
/>
|
:value="record.eventJSON.result"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
<span v-if="record.eventType === 'detach'">
|
||||||
|
<span>{{ t('views.dashboard.ue.resultOk') }}</span>
|
||||||
|
</span>
|
||||||
|
<span v-if="record.eventType === 'cm-state'">
|
||||||
|
<DictTag
|
||||||
|
:options="dict.ueEventCmState"
|
||||||
|
:value="record.eventJSON.result"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
</template>
|
</template>
|
||||||
<template v-if="column.key === 'id'">
|
<template v-if="column.key === 'id'">
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
@@ -641,17 +659,25 @@ onBeforeUnmount(() => {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ t('views.dashboard.ue.eventType') }}: </span>
|
<span>{{ t('views.dashboard.ue.eventType') }}: </span>
|
||||||
<DictTag
|
<DictTag :options="dict.ueEventType" :value="record.eventType" />
|
||||||
:options="dict.ueEventTypeMME"
|
|
||||||
:value="record.eventType"
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<span>{{ t('views.dashboard.ue.result') }}: </span>
|
<span>{{ t('views.dashboard.ue.result') }}: </span>
|
||||||
<DictTag
|
<span v-if="record.eventType === 'auth-result'">
|
||||||
:options="dict.ueEventResultMME"
|
<DictTag
|
||||||
:value="record.eventJSON.result"
|
:options="dict.ueAauthCode"
|
||||||
/>
|
:value="record.eventJSON.result"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
|
<span v-if="record.eventType === 'detach'">
|
||||||
|
{{ t('views.dashboard.ue.resultOK') }}
|
||||||
|
</span>
|
||||||
|
<span v-if="record.eventType === 'cm-state'">
|
||||||
|
<DictTag
|
||||||
|
:options="dict.ueEventCmState"
|
||||||
|
:value="record.eventJSON.result"
|
||||||
|
/>
|
||||||
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@@ -19,18 +19,12 @@ let dict: {
|
|||||||
ueEventType: DictType[];
|
ueEventType: DictType[];
|
||||||
/**UE 事件CM状态 */
|
/**UE 事件CM状态 */
|
||||||
ueEventCmState: DictType[];
|
ueEventCmState: DictType[];
|
||||||
/**UE 事件类型MME */
|
|
||||||
ueEventTypeMME: DictType[];
|
|
||||||
/**UE 事件结果MME */
|
|
||||||
ueEventResultMME: DictType[];
|
|
||||||
} = reactive({
|
} = reactive({
|
||||||
cdrSipCode: [],
|
cdrSipCode: [],
|
||||||
cdrCallType: [],
|
cdrCallType: [],
|
||||||
ueAauthCode: [],
|
ueAauthCode: [],
|
||||||
ueEventType: [],
|
ueEventType: [],
|
||||||
ueEventCmState: [],
|
ueEventCmState: [],
|
||||||
ueEventTypeMME: [],
|
|
||||||
ueEventResultMME: [],
|
|
||||||
});
|
});
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(() => {
|
||||||
@@ -41,8 +35,6 @@ onMounted(() => {
|
|||||||
getDict('ue_auth_code'),
|
getDict('ue_auth_code'),
|
||||||
getDict('ue_event_type'),
|
getDict('ue_event_type'),
|
||||||
getDict('ue_event_cm_state'),
|
getDict('ue_event_cm_state'),
|
||||||
getDict('ue_event_mme_type'),
|
|
||||||
getDict('ue_event_mme_result'),
|
|
||||||
]).then(resArr => {
|
]).then(resArr => {
|
||||||
if (resArr[0].status === 'fulfilled') {
|
if (resArr[0].status === 'fulfilled') {
|
||||||
dict.cdrSipCode = resArr[0].value;
|
dict.cdrSipCode = resArr[0].value;
|
||||||
@@ -59,12 +51,6 @@ onMounted(() => {
|
|||||||
if (resArr[4].status === 'fulfilled') {
|
if (resArr[4].status === 'fulfilled') {
|
||||||
dict.ueEventCmState = resArr[4].value;
|
dict.ueEventCmState = resArr[4].value;
|
||||||
}
|
}
|
||||||
if (resArr[5].status === 'fulfilled') {
|
|
||||||
dict.ueEventTypeMME = resArr[5].value;
|
|
||||||
}
|
|
||||||
if (resArr[6].status === 'fulfilled') {
|
|
||||||
dict.ueEventResultMME = resArr[6].value;
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
@@ -173,6 +159,7 @@ onMounted(() => {
|
|||||||
TAC ID: <span>{{ item.data.tacID }}</span>
|
TAC ID: <span>{{ item.data.tacID }}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div v-if="item.type === 'auth-result'">
|
<div v-if="item.type === 'auth-result'">
|
||||||
{{ t('views.dashboard.overview.userActivity.result') }}:
|
{{ t('views.dashboard.overview.userActivity.result') }}:
|
||||||
<span>
|
<span>
|
||||||
@@ -200,7 +187,7 @@ onMounted(() => {
|
|||||||
<div>
|
<div>
|
||||||
{{ t('views.dashboard.overview.userActivity.type') }}:
|
{{ t('views.dashboard.overview.userActivity.type') }}:
|
||||||
<span>
|
<span>
|
||||||
<DictTag :options="dict.ueEventTypeMME" :value="item.type" />
|
<DictTag :options="dict.ueEventType" :value="item.type" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
@@ -216,7 +203,7 @@ onMounted(() => {
|
|||||||
|
|
||||||
<div class="card-ue-w33" v-if="item.type === 'auth-result'">
|
<div class="card-ue-w33" v-if="item.type === 'auth-result'">
|
||||||
<div>
|
<div>
|
||||||
GNB ID: <span>{{ item.data.gNBID }}</span>
|
ENB ID: <span>{{ item.data.eNBID }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
Cell ID: <span>{{ item.data.cellID }}</span>
|
Cell ID: <span>{{ item.data.cellID }}</span>
|
||||||
@@ -228,20 +215,17 @@ onMounted(() => {
|
|||||||
<div v-if="item.type === 'auth-result'">
|
<div v-if="item.type === 'auth-result'">
|
||||||
{{ t('views.dashboard.overview.userActivity.result') }}:
|
{{ t('views.dashboard.overview.userActivity.result') }}:
|
||||||
<span>
|
<span>
|
||||||
<DictTag :options="dict.ueAauthCode" :value="item.data.authCode" />
|
<DictTag :options="dict.ueAauthCode" :value="item.data.result" />
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="item.type === 'detach'">
|
<div v-if="item.type === 'detach'">
|
||||||
{{ t('views.dashboard.overview.userActivity.result') }}:
|
{{ t('views.dashboard.overview.userActivity.result') }}:
|
||||||
<span>{{ t('views.dashboard.overview.userActivity.resultOK') }}</span>
|
<span>{{ t('views.dashboard.overview.userActivity.resultOK') }}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-ue-w33">
|
<div class="card-ue-w33" v-if="item.type === 'cm-state'">
|
||||||
{{ t('views.dashboard.overview.userActivity.result') }}:
|
{{ t('views.dashboard.overview.userActivity.result') }}:
|
||||||
<span>
|
<span>
|
||||||
<DictTag
|
<DictTag :options="dict.ueEventCmState" :value="item.data.result" />
|
||||||
:options="dict.ueEventResultMME"
|
|
||||||
:value="item.data.result"
|
|
||||||
/>
|
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -199,9 +199,10 @@ export default function useWS() {
|
|||||||
*
|
*
|
||||||
* 指标UPF (GroupID:12)
|
* 指标UPF (GroupID:12)
|
||||||
* AMF_UE会话事件(GroupID:1010)
|
* AMF_UE会话事件(GroupID:1010)
|
||||||
|
* MME_UE会话事件(GroupID:1011)
|
||||||
* IMS_CDR会话事件(GroupID:1005)
|
* IMS_CDR会话事件(GroupID:1005)
|
||||||
*/
|
*/
|
||||||
subGroupID: '12,1010,1005',
|
subGroupID: '12,1010,1011,1005',
|
||||||
},
|
},
|
||||||
onmessage: wsMessage,
|
onmessage: wsMessage,
|
||||||
onerror: wsError,
|
onerror: wsError,
|
||||||
|
|||||||
@@ -1054,7 +1054,8 @@ onMounted(() => {
|
|||||||
:visible="modalState.helpShowView"
|
:visible="modalState.helpShowView"
|
||||||
:title="modalState.title"
|
:title="modalState.title"
|
||||||
:confirm-loading="modalState.confirmLoading"
|
:confirm-loading="modalState.confirmLoading"
|
||||||
:footer="null"
|
:body-style="{ padding: '0px' }"
|
||||||
|
:footer="false"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
>
|
>
|
||||||
<a-table
|
<a-table
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ function fnFormLogSetFinish() {
|
|||||||
|
|
||||||
/**告警前转接口对象信息状态 */
|
/**告警前转接口对象信息状态 */
|
||||||
let forwardState: ModalStateType = reactive({
|
let forwardState: ModalStateType = reactive({
|
||||||
title:t('views.faultManage.faultSetting.forwardSet'),
|
title: t('views.faultManage.faultSetting.forwardSet'),
|
||||||
from: {
|
from: {
|
||||||
interface: 'email',
|
interface: 'email',
|
||||||
emailObj: [],
|
emailObj: [],
|
||||||
@@ -128,11 +128,15 @@ function fnFormForwardFinish() {
|
|||||||
forwardStateFrom.validate().then(() => {
|
forwardStateFrom.validate().then(() => {
|
||||||
forwardState.confirmLoading = true;
|
forwardState.confirmLoading = true;
|
||||||
const from = toRaw(forwardState.from);
|
const from = toRaw(forwardState.from);
|
||||||
console.log(from);
|
|
||||||
updateForwardSet(from)
|
updateForwardSet(from)
|
||||||
.then(res => {
|
.then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success( t('common.msgSuccess', { msg: t('views.faultManage.faultSetting.save')}), 3);
|
message.success(
|
||||||
|
t('common.msgSuccess', {
|
||||||
|
msg: t('views.faultManage.faultSetting.save'),
|
||||||
|
}),
|
||||||
|
3
|
||||||
|
);
|
||||||
} else {
|
} else {
|
||||||
message.warning(t('views.faultManage.faultSetting.noChange'), 3);
|
message.warning(t('views.faultManage.faultSetting.noChange'), 3);
|
||||||
}
|
}
|
||||||
@@ -158,7 +162,6 @@ onMounted(() => {
|
|||||||
if (resArr[1].status === 'fulfilled') {
|
if (resArr[1].status === 'fulfilled') {
|
||||||
const result = resArr[1].value;
|
const result = resArr[1].value;
|
||||||
if (result.code === RESULT_CODE_SUCCESS) {
|
if (result.code === RESULT_CODE_SUCCESS) {
|
||||||
console.log(result.data);
|
|
||||||
let finalData: any = {
|
let finalData: any = {
|
||||||
emailObj: result.data[0]['to_user'],
|
emailObj: result.data[0]['to_user'],
|
||||||
smsObj: result.data[1]['to_user'],
|
smsObj: result.data[1]['to_user'],
|
||||||
@@ -273,12 +276,11 @@ onMounted(() => {
|
|||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
<a-form
|
<a-form name="forwardState" layout="horizontal" autocomplete="off">
|
||||||
name="forwardState"
|
<a-form-item
|
||||||
layout="horizontal"
|
:label="t('views.faultManage.faultSetting.interfaceType')"
|
||||||
autocomplete="off"
|
name="interface"
|
||||||
>
|
>
|
||||||
<a-form-item :label="t('views.faultManage.faultSetting.interfaceType')" name="interface">
|
|
||||||
<a-input value="Email" allow-clear disabled></a-input>
|
<a-input value="Email" allow-clear disabled></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
@@ -292,7 +294,10 @@ onMounted(() => {
|
|||||||
:token-separators="[',']"
|
:token-separators="[',']"
|
||||||
></a-select>
|
></a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="t('views.faultManage.faultSetting.interfaceType')" name="interface">
|
<a-form-item
|
||||||
|
:label="t('views.faultManage.faultSetting.interfaceType')"
|
||||||
|
name="interface"
|
||||||
|
>
|
||||||
<a-input value="SMS" allow-clear disabled></a-input>
|
<a-input value="SMS" allow-clear disabled></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
|
|||||||
@@ -826,6 +826,7 @@ onMounted(() => {
|
|||||||
<!-- 详情框 -->
|
<!-- 详情框 -->
|
||||||
<ProModal
|
<ProModal
|
||||||
:drag="true"
|
:drag="true"
|
||||||
|
:width="800"
|
||||||
:body-style="{ height: '520px', overflowY: 'scroll' }"
|
:body-style="{ height: '520px', overflowY: 'scroll' }"
|
||||||
:keyboard="false"
|
:keyboard="false"
|
||||||
:mask-closable="false"
|
:mask-closable="false"
|
||||||
|
|||||||
@@ -139,8 +139,7 @@ function fnGetList(refresh: boolean = false) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
.then(hasNeList => {
|
.then(hasNeList => {
|
||||||
if (!hasNeList) return;
|
if (!hasNeList) return;
|
||||||
console.log(graphG6Data)
|
|
||||||
if (refresh) {
|
if (refresh) {
|
||||||
// graphG6.value.get('canvas').set('localRefresh', true);
|
// graphG6.value.get('canvas').set('localRefresh', true);
|
||||||
graphG6.value.destroy();
|
graphG6.value.destroy();
|
||||||
|
|||||||
@@ -173,9 +173,7 @@ export default function useEdge() {
|
|||||||
edge.type = 'loop';
|
edge.type = 'loop';
|
||||||
}
|
}
|
||||||
// 不存在fontWeight会触发异常
|
// 不存在fontWeight会触发异常
|
||||||
if(!edge.labelCfg.style.fontWeight){
|
if(!edge.labelCfg.style.fontWeight){
|
||||||
console.log(edge)
|
|
||||||
debugger
|
|
||||||
edge.labelCfg.style.fontWeight = 500
|
edge.labelCfg.style.fontWeight = 500
|
||||||
}
|
}
|
||||||
// 存在更新,新增id是#不监听变化
|
// 存在更新,新增id是#不监听变化
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ export default function useGraph() {
|
|||||||
</div>`;
|
</div>`;
|
||||||
},
|
},
|
||||||
handleMenuClick(target, item) {
|
handleMenuClick(target, item) {
|
||||||
console.log(target, item);
|
// console.log(target, item);
|
||||||
const targetId = target.id;
|
const targetId = target.id;
|
||||||
switch (targetId) {
|
switch (targetId) {
|
||||||
case 'create-edge':
|
case 'create-edge':
|
||||||
@@ -223,7 +223,7 @@ export default function useGraph() {
|
|||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
handleMenuClick(target, item) {
|
handleMenuClick(target, item) {
|
||||||
console.log(target, item);
|
// console.log(target, item);
|
||||||
const targetId = target.id;
|
const targetId = target.id;
|
||||||
switch (targetId) {
|
switch (targetId) {
|
||||||
case 'edit':
|
case 'edit':
|
||||||
@@ -302,7 +302,7 @@ export default function useGraph() {
|
|||||||
`;
|
`;
|
||||||
},
|
},
|
||||||
handleMenuClick(target, item) {
|
handleMenuClick(target, item) {
|
||||||
console.log(target, item);
|
// console.log(target, item);
|
||||||
const targetId = target.id;
|
const targetId = target.id;
|
||||||
switch (targetId) {
|
switch (targetId) {
|
||||||
case 'edit':
|
case 'edit':
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ function fnGetList(pageNum?: number) {
|
|||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
listNSSFAMF().then(res => {
|
listNSSFAMF().then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
if (res.code === RESULT_CODE_SUCCESS && Array.isArray(res.rows)) {
|
||||||
console.log(res.rows);
|
|
||||||
// 取消勾选
|
// 取消勾选
|
||||||
if (tableState.selectedRowKeys.length > 0) {
|
if (tableState.selectedRowKeys.length > 0) {
|
||||||
tableState.selectedRowKeys = [];
|
tableState.selectedRowKeys = [];
|
||||||
|
|||||||
@@ -300,7 +300,6 @@ function fnModalVisibleByEdit(row?: Record<string, any>) {
|
|||||||
sessRules = [sessRules];
|
sessRules = [sessRules];
|
||||||
}
|
}
|
||||||
modalState.from.sessRules = sessRules;
|
modalState.from.sessRules = sessRules;
|
||||||
console.log(modalState.from);
|
|
||||||
|
|
||||||
modalState.title = t('views.neUser.pcf.updateTitle', {
|
modalState.title = t('views.neUser.pcf.updateTitle', {
|
||||||
imsi: row.imsi,
|
imsi: row.imsi,
|
||||||
@@ -327,7 +326,6 @@ function fnModalOk() {
|
|||||||
const from = JSON.parse(JSON.stringify(modalState.from));
|
const from = JSON.parse(JSON.stringify(modalState.from));
|
||||||
from.neId = queryParams.neId || '-';
|
from.neId = queryParams.neId || '-';
|
||||||
from.rfsp = Number(from.rfsp) || 0;
|
from.rfsp = Number(from.rfsp) || 0;
|
||||||
console.log(from);
|
|
||||||
let pccRules = modalState.from.pccRules;
|
let pccRules = modalState.from.pccRules;
|
||||||
if (Array.isArray(pccRules)) {
|
if (Array.isArray(pccRules)) {
|
||||||
pccRules = pccRules.join('|');
|
pccRules = pccRules.join('|');
|
||||||
|
|||||||
@@ -413,7 +413,7 @@ onMounted(() => {
|
|||||||
:visible="modalState.visibleByView"
|
:visible="modalState.visibleByView"
|
||||||
:title="modalState.title"
|
:title="modalState.title"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
:footer="null"
|
:footer="false"
|
||||||
>
|
>
|
||||||
<a-form layout="horizontal" labelAlign="left" :labelWrap="false">
|
<a-form layout="horizontal" labelAlign="left" :labelWrap="false">
|
||||||
<a-row :gutter="8">
|
<a-row :gutter="8">
|
||||||
|
|||||||
@@ -301,7 +301,6 @@ function fnModalVisibleByVive(row: Record<string, string>) {
|
|||||||
* @param dictCode 数据编号id, 不传为新增
|
* @param dictCode 数据编号id, 不传为新增
|
||||||
*/
|
*/
|
||||||
function fnModalVisibleByEdit(dictCode?: string | number, record?: any) {
|
function fnModalVisibleByEdit(dictCode?: string | number, record?: any) {
|
||||||
console.log(record);
|
|
||||||
if (!dictCode) {
|
if (!dictCode) {
|
||||||
modalStateFrom.resetFields();
|
modalStateFrom.resetFields();
|
||||||
modalState.from.dictType = queryParams.dictType;
|
modalState.from.dictType = queryParams.dictType;
|
||||||
|
|||||||
@@ -117,7 +117,6 @@ function fnSaveAcount() {
|
|||||||
// 发送保存
|
// 发送保存
|
||||||
state.confirmLoading = true;
|
state.confirmLoading = true;
|
||||||
bootloaderAccount(state.username, state.password).then(res => {
|
bootloaderAccount(state.username, state.password).then(res => {
|
||||||
console.log(res);
|
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success(t('common.operateOk'));
|
message.success(t('common.operateOk'));
|
||||||
} else {
|
} else {
|
||||||
@@ -158,7 +157,6 @@ function fnSaveSystem() {
|
|||||||
// 发送保存
|
// 发送保存
|
||||||
state.confirmLoading = true;
|
state.confirmLoading = true;
|
||||||
Promise.all(reqArr).then(resArr => {
|
Promise.all(reqArr).then(resArr => {
|
||||||
console.log(resArr);
|
|
||||||
message.success(t('views.system.quickStart.sysSaveOk'));
|
message.success(t('views.system.quickStart.sysSaveOk'));
|
||||||
state.confirmLoading = false;
|
state.confirmLoading = false;
|
||||||
});
|
});
|
||||||
@@ -206,7 +204,6 @@ function fnCheckAppNameOverflow() {
|
|||||||
if (!container) return;
|
if (!container) return;
|
||||||
const text: HTMLDivElement | null = container.querySelector('.marquee');
|
const text: HTMLDivElement | null = container.querySelector('.marquee');
|
||||||
if (!text) return;
|
if (!text) return;
|
||||||
console.log(text.offsetWidth, container.offsetWidth);
|
|
||||||
if (text.offsetWidth > container.offsetWidth) {
|
if (text.offsetWidth > container.offsetWidth) {
|
||||||
text.classList.add('app-name_scrollable');
|
text.classList.add('app-name_scrollable');
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
@@ -28,7 +28,6 @@ let state: StateType = reactive({
|
|||||||
|
|
||||||
/**上传前检查或转换压缩 */
|
/**上传前检查或转换压缩 */
|
||||||
function fnBeforeUpload(file: FileType) {
|
function fnBeforeUpload(file: FileType) {
|
||||||
console.log(file.type);
|
|
||||||
if (state.loading) return false;
|
if (state.loading) return false;
|
||||||
const isType = ['application/pdf'].includes(file.type);
|
const isType = ['application/pdf'].includes(file.type);
|
||||||
if (!isType) {
|
if (!isType) {
|
||||||
|
|||||||
@@ -539,7 +539,7 @@ onMounted(() => {
|
|||||||
:drag="true"
|
:drag="true"
|
||||||
:width="800"
|
:width="800"
|
||||||
:visible="modalState.visibleByView"
|
:visible="modalState.visibleByView"
|
||||||
:footer="null"
|
:footer="false"
|
||||||
:maskClosable="false"
|
:maskClosable="false"
|
||||||
:keyboard="false"
|
:keyboard="false"
|
||||||
:title="t('views.traceManage.pcap.textLogMsg')"
|
:title="t('views.traceManage.pcap.textLogMsg')"
|
||||||
|
|||||||
Reference in New Issue
Block a user