From 6b2682b3d3a25e5668ac37b03d622500f788448b Mon Sep 17 00:00:00 2001 From: lai <10633968+laiyujun1@user.noreply.gitee.com> Date: Fri, 1 Aug 2025 15:49:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Ecbc=E7=95=8C=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/cbc/cbe.ts | 75 ++ src/i18n/locales/en-US.ts | 48 + src/i18n/locales/zh-CN.ts | 48 + src/views/cbc/cbe/index.vue | 1711 +++++++++++++++++++++++++++++++++++ 4 files changed, 1882 insertions(+) create mode 100644 src/api/cbc/cbe.ts create mode 100644 src/views/cbc/cbe/index.vue diff --git a/src/api/cbc/cbe.ts b/src/api/cbc/cbe.ts new file mode 100644 index 00000000..07df3200 --- /dev/null +++ b/src/api/cbc/cbe.ts @@ -0,0 +1,75 @@ +import { request } from '@/plugins/http-fetch'; + + + +/** + * CBC列表 + * @param query 查询参数 + * @returns object + */ +export function listCBC(query: Record) { + return request({ + url: `/neData/cbc/message/list`, + method: 'GET', + params: query, + timeout: 30_000, + }); +} + + + +/** + * CBC签约用户新增 + * @param data 签约对象 + * @returns object + */ +export function addCBC(data: Record) { + return request({ + url: `/neData/cbc/message?neId=${data.neId}`, + method: 'POST', + data: data, + timeout: 180_000, + }); +} + + + + +export function updateCBCStatus(data:any) { + return request({ + url: `/neData/cbc/message/${data.id}/${data.status}?neId=${data.neId}`, + method: 'PUT', + timeout: 180_000, + }); +} + + +export function updateCBC(data:any) { + return request({ + url: `/neData/cbc/message/${data.id}?neId=${data.neId}`, + method: 'PUT', + data, + timeout: 180_000, + }); +} + + + +/** + * CBC删除 + * @param data 签约对象 + * @returns object + */ +export function delCBC(neId: string, id: string) { + return request({ + url: `/neData/cbc/message/${id}?neId=${neId}`, + method: 'DELETE', + timeout: 180_000, + }); +} + + + + + + diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 9a238246..cba4fafa 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -357,6 +357,54 @@ export default { description: "No data yet, try refreshing", }, }, + cbc:{ + cbe:{ + neType:'CBC Object', + title: ' CBC Event', + delTip: 'Confirm deletion of the event data item numbered [{num}]?', + eventName: 'Event Name', + startTime: 'Start Time', + endTime: 'End Time', + repetitionPeriod: 'Repetition Period', + numOfBcast: 'Number of Broadcasts', + msgPWSType: 'Message Type', + messageId: 'Message ID', + displayMode: 'Display Mode', + geoScope:' Geographic Scope', + emergencyUserAlert: 'Emergency User Alert', + activatePopup: 'Activate Popup', + warningType: 'Warning Type', + language:' Language', + warningMessageText:' Broadcast Content', + status: 'Status', + warningAreaType: 'Warning Area Type', + taiListTip:'TAI List cannot be empty', + taiSonTip:'TAI List each item MCC, MNC, TAC cannot be empty', + eutraListTip:'EUTRA CellId List cannot be empty', + eutraSonTip:'EUTRA CellId List each item MCC, MNC, CellId cannot be empty', + nrTip:'NR CellId List cannot be empty', + nrSonTip:'NR CellId List each item MCC, MNC, CellId cannot be empty', + areaTip:'Area ID List cannot be empty', + areaSonTip:'Area ID List each item AreaID cannot be empty', + messageIdProfile:'Message ID Profile', + serialNumProfile:'Serial Num Profile', + warningTypeProfile:'Warning Type Profile', + warningMessageProfile:'Warning Message Profile', + etws:'Earthquake and Tsunami Warning System', + cmas:'Commercial Mobile Alert System', + createdAt:'Create Time', + eventNameHelp:'If it is CMAS, the recommended prefix is cmas_xxx. If it is ETWS, the recommended prefix is etws_xxx', + repetitionPeriodHelp:'Unit is seconds', + numOfBcastHelp:'Unit is seconds', + cellListTip:'CellId List cannot be empty', + cellListSonTip:'MCC、MNC、 Cannot be empty, and at least one EUTRA CellId/NR CellId must be filled in', + letupSure:'Do you confirm the status of the broadcast event with the modification number 【{id}】?', + tacHelp:'The TAC value is a decimal string, separated by ";" for multiple TAC values.', + cellIdHelp:'The CellId value is a hexadecimal string, separated by ";" for multiple CellId values.', + areaId:'The areaId value is a hexadecimal string.', + detail:'Detail', + } + }, dashboard: { overview:{ title: "Core Network Dashboard", diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 1cd2327a..0eddc645 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -357,6 +357,54 @@ export default { description: "暂无数据,尝试刷新看看", }, }, + cbc:{ + cbe:{ + neType:'CBC网元对象', + title: '广播事件', + delTip: '确认删除编号为【{num}】的CBC事件吗?', + eventName: '事件名称', + startTime: '开始时间', + endTime: '结束时间', + repetitionPeriod: '广播周期', + numOfBcast: '广播次数', + msgPWSType: '消息类型', + messageId: '消息编号', + displayMode: '显示模式', + geoScope:'广播覆盖范围', + emergencyUserAlert: '紧急用户提示', + activatePopup: '弹窗提示', + warningType: '预警类型标识', + language:'语言', + warningMessageText:'广播内容', + status: '状态', + warningAreaType: '预警区域类型', + taiListTip:'TAI List 不能为空', + taiSonTip:'TAI List 每项的 MCC、MNC、TAC 都不能为空', + eutraListTip:'EUTRA CellId List 不能为空', + eutraSonTip:'EUTRA CellId List 每项的 MCC、MNC、CellId 都不能为空', + nrTip:'NR CellId List 不能为空', + nrSonTip:'NR CellId List 每项的 MCC、MNC、CellId 都不能为空', + areaTip:'Area ID List 不能为空', + areaSonTip:'Area ID List 每项的 AreaID 都不能为空', + messageIdProfile:'消息标识配置', + serialNumProfile:'序列号配置', + warningTypeProfile:'预警类型配置', + warningMessageProfile:'预警消息配置', + etws:'地震海啸预警', + cmas:'公共预警广播', + createdAt:'创建时间', + eventNameHelp:'如果为CMAS,推荐前缀为cmas_xxx,如果为ETWS,推荐前缀为etws_xxx', + repetitionPeriodHelp:'单位是秒', + numOfBcastHelp:'单位是秒', + cellListTip:'CellId List不能为空', + cellListSonTip:'MCC、MNC、不能为空以及EUTRA CellId/NR CellId至少填写一个', + letupSure:'确认修改编号为 【{id}】 的广播事件的状态嘛?', + tacHelp:'TAC值是十进制字符串,通过";"分隔多个TAC值', + cellIdHelp:'CellId值是十六进制字符串,通过";"分隔多个CellId值', + areaId:'areaId值是十六进制字符串', + detail:'详情', + } + }, dashboard: { overview:{ title: "核心网系统看板", diff --git a/src/views/cbc/cbe/index.vue b/src/views/cbc/cbe/index.vue new file mode 100644 index 00000000..0b59d8ad --- /dev/null +++ b/src/views/cbc/cbe/index.vue @@ -0,0 +1,1711 @@ + + + + +