diff --git a/.env.development b/.env.development index d9baabde..0b8d642f 100644 --- a/.env.development +++ b/.env.development @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network OMC" VITE_APP_CODE = "OMC" # 应用版本 -VITE_APP_VERSION = "2.240801" +VITE_APP_VERSION = "2.240809" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/.env.production b/.env.production index 0cbd0c49..3732a1c9 100644 --- a/.env.production +++ b/.env.production @@ -11,7 +11,7 @@ VITE_APP_NAME = "Core Network OMC" VITE_APP_CODE = "OMC" # 应用版本 -VITE_APP_VERSION = "2.240801" +VITE_APP_VERSION = "2.240809" # 接口基础URL地址-不带/后缀 VITE_API_BASE_URL = "/omc-api" diff --git a/src/api/ne/neConfig.ts b/src/api/ne/neConfig.ts new file mode 100644 index 00000000..dcd1e8dd --- /dev/null +++ b/src/api/ne/neConfig.ts @@ -0,0 +1,66 @@ +import { request } from '@/plugins/http-fetch'; + +/** + * 网元参数配置可用属性值列表指定网元类型全部无分页 + * @param query 查询参数 + * @returns object + */ +export function getAllNeConfig(neType: string) { + return request({ + url: `/ne/config/list/${neType}`, + method: 'get', + timeout: 60_000, + }); +} + +/** + * 网元参数配置数据信息 + * @param params 数据 {neType,neId,paramName} + * @returns object + */ +export function getNeConfigData(params: Record) { + return request({ + url: `/ne/config/data`, + params, + method: 'get', + }); +} + +/** + * 网元参数配置数据更新 + * @param data 数据 {neType,neId,paramName:"参数名",paramData:{参数},loc:"层级index仅array"} + * @returns object + */ +export function editNeConfigData(data: Record) { + return request({ + url: `/ne/config/data`, + method: 'put', + data: data, + }); +} + +/** + * 网元参数配置数据新增(array) + * @param data 数据 {neType,neId,paramName:"参数名",paramData:{参数},loc:"层级index"} + * @returns object + */ +export function addNeConfigData(data: Record) { + return request({ + url: `/ne/config/data`, + method: 'post', + data: data, + }); +} + +/** + * 网元参数配置数据删除(array) + * @param params 数据 {neType,neId,paramName:"参数名",loc:"层级index"} + * @returns object + */ +export function delNeConfigData(params: Record) { + return request({ + url: `/ne/config/data`, + method: 'delete', + params, + }); +} diff --git a/src/api/neData/smsc.ts b/src/api/neData/smsc.ts new file mode 100644 index 00000000..a05c233e --- /dev/null +++ b/src/api/neData/smsc.ts @@ -0,0 +1,42 @@ +import { request } from '@/plugins/http-fetch'; + +/** + * 查询SMSC-CDR会话事件 + * @param query 查询参数 + * @returns object + */ +export function listSMSCDataCDR(query: Record) { + return request({ + url: '/neData/smsc/cdr/list', + method: 'get', + params: query, + }); +} + +/** + * SMSC-CDR会话删除 + * @param id 信息ID + * @returns object + */ +export function delSMSCDataCDR(cdrIds: string | number) { + return request({ + url: `/neData/smsc/cdr/${cdrIds}`, + method: 'delete', + timeout: 60_000, + }); +} + +/** + * SMSC-CDR会话列表导出 + * @param data 查询列表条件 + * @returns object + */ +export function exportSMSCDataCDR(data: Record) { + return request({ + url: '/neData/smsc/cdr/export', + method: 'post', + data, + responseType: 'blob', + timeout: 60_000, + }); +} diff --git a/src/components/TerminalSSHView/index.vue b/src/components/TerminalSSHView/index.vue new file mode 100644 index 00000000..33af459b --- /dev/null +++ b/src/components/TerminalSSHView/index.vue @@ -0,0 +1,227 @@ + + + + + diff --git a/src/components/TerminalTelnet/index.vue b/src/components/TerminalTelnet/index.vue index 114bc14b..329907cd 100644 --- a/src/components/TerminalTelnet/index.vue +++ b/src/components/TerminalTelnet/index.vue @@ -155,6 +155,15 @@ function handleRanderXterm(container: HTMLElement | undefined) { // 自适应尺寸 const fitAddon = new FitAddon(); xterm.loadAddon(fitAddon); + // 终端尺寸变化触发 + xterm.onResize(({ cols, rows }) => { + // console.log('尺寸', cols, rows); + ws.send({ + requestId: `telnet_resize_${props.hostId}`, + type: 'telnet_resize', + data: { cols, rows }, + }); + }); // 创建 ResizeObserver 实例 var observer = new ResizeObserver(entries => { @@ -280,7 +289,7 @@ defineExpose({