diff --git a/src/i18n/locales/en-US.ts b/src/i18n/locales/en-US.ts index 921006d0..de83799e 100644 --- a/src/i18n/locales/en-US.ts +++ b/src/i18n/locales/en-US.ts @@ -509,6 +509,38 @@ export default { save:'Save', noChange:'There is no change in the alarm forwarding interface settings.', forwardSet:'Alarm forwarding interface setting', + }, + }, + logManage:{ + alarm:{ + type:'NE Type', + neId:'NE UID', + alarmId:'Alarm ID', + alarmSeq:'Sequece Number', + alarmCode:'Alarm Code', + alarmStatus:'Severity', + eventTime:'Event Time', + logTime:'Recording Time', + status:'Status', + }, + mml:{ + account:'Account', + ip:'IP', + type:'NE Type', + neId:'NE ID', + MML:'MML', + logTime:'Log Time' + }, + forwarding:{ + type:'NE Type', + neId:'NE UID', + alarmId:'Alarm ID', + alarmSeq:'Sequece Number', + alarmObj:'Object', + alarmTitle:'Alarm Title', + alarmInfo:'Alarm Content', + eventTime:'Generation time', + logTime:'Record Time' } }, monitor: { @@ -742,6 +774,49 @@ export default { codeTip:'Please enter the position code correctly', nameTip:'Please enter the position name correctly', delSure:'Confirm to delete the data item with post number [{postId}]?', + }, + log:{ + operate:{ + operId:'Log Number', + moduleName:'Module Name', + workType:'Business Type', + operUser:'Operator', + requestMe:'Request Method', + host:'Request Host', + operStatus:'Operation Status', + operDate:'Operation Date', + useTime:'Consumption Time', + logInfo:'Operation Log Information', + delSure:'Are you sure to delete the data item with access number [{ids}]?', + delAllSure:'Confirm to clear all login log data items?', + delAllSuss:'Cleared successfully', + operModule:'Operation module', + operTime:'operation time', + delAll:'Clear', + fail:'Failed', + suss:'Normal', + RequestIp:'Request Address', + operMe:'Operation Method', + reqParam:'Request Parameter', + operInfo:'Operation Information', + }, + login:{ + operId:'Log ID', + account:'Login Account', + loginIp:'Login Address', + loginLoc:'Login Location', + os:'operating System', + browser:'Browser', + status:'Status', + info:'Login Information', + loginTime:'Login Time', + delSure:'Are you sure to delete the data item with access number [{ids}]?', + delAllSure:'Confirm to clear all login log data items?', + delAll:'Clear', + unlock:'Unlock', + unlockSuss:'{userName} unlocked successfully', + unlockSure:'Confirm to unlock user [{username}] data item?', + } } }, }, diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index 9e1e2878..19de75f0 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -511,6 +511,38 @@ export default { forwardSet:'告警前转接口设置', } }, + logManage:{ + alarm:{ + type:'网元类型', + neId:'告警网元标识', + alarmId:'告警唯一标识', + alarmSeq:'告警流水号', + alarmCode:'告警编号', + alarmStatus:'原始告警级别', + eventTime:'告警产生时间', + logTime:'记录时间', + status:'告警状态' + }, + mml:{ + account:'登录账号', + ip:'IP地址', + type:'网元类型', + neId:'网元唯一标识', + MML:'MML', + logTime:'log Time' + }, + forwarding:{ + type:'网元类型', + neId:'告警网元标识', + alarmId:'告警唯一标识', + alarmSeq:'告警流水号', + alarmObj:'告警前转对象', + alarmTitle:'告警标题', + alarmInfo:'告警内容', + eventTime:'告警产生时间', + logTime:'记录时间' + } + }, monitor: { session: { userName: "登录账号", @@ -742,6 +774,49 @@ export default { codeTip:'请正确输入岗位编码', nameTip:'请正确输入岗位名称', delSure:'确认删除岗位编号为 【{postId}】 的数据项?', + }, + log:{ + operate:{ + operId:'日志编号', + moduleName:'模块名称', + workType:'业务类型', + operUser:'操作人员', + requestMe:'请求方式', + host:'请求主机', + operStatus:'操作状态', + operDate:'操作日期', + useTime:'消耗时间', + logInfo:'操作日志信息', + delSure:'确认删除访问编号为 【{ids}】 的数据项吗?', + delAllSure:'确认清空所有登录日志数据项?', + delAllSuss:'清空成功', + operModule:'操作模块', + operTime:'操作时间', + delAll:'清空', + fail:'失败', + suss:'正常', + RequestIp:'请求地址', + operMe:'操作方法', + reqParam:'请求参数', + operInfo:'操作信息', + }, + login:{ + operId:'日志编号', + account:'登录账号', + loginIp:'登录地址', + loginLoc:'登录地点', + os:'操作系统', + browser:'浏览器', + status:'登录状态', + info:'登录信息', + loginTime:'登录时间', + delSure:'确认删除访问编号为 【{ids}】 的数据项吗?', + delAllSure:'确认清空所有登录日志数据项?', + delAll:'清空', + unlock:'解锁', + unlockSuss:'{userName} 解锁成功', + unlockSure:'确认解锁用户 【{username}】 数据项?', + } } }, }, diff --git a/src/views/configManage/license/index.vue b/src/views/configManage/license/index.vue index 7cf317d3..ad541337 100644 --- a/src/views/configManage/license/index.vue +++ b/src/views/configManage/license/index.vue @@ -428,7 +428,6 @@ onMounted(() => { ) { + message.success({ + content: t('common.msgSuccess', { msg: t('common.deleteText') }), + duration: 2, + }); Modal.confirm({ title: t('common.tipTitle'), content: t('views.configManage.neManage.delSure', { msg: row.neName }), @@ -458,7 +462,7 @@ function fnRecordDelete(row: Record) { delNeInfo(row).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: t('common.msgSuccess', { msg: t('common.deleteText ') }), + content: t('common.msgSuccess', { msg: t('common.deleteText') }), key, duration: 2, }); diff --git a/src/views/logManage/alarm/index.vue b/src/views/logManage/alarm/index.vue index faea5132..f51d78f9 100644 --- a/src/views/logManage/alarm/index.vue +++ b/src/views/logManage/alarm/index.vue @@ -83,38 +83,38 @@ let tableColumns: ColumnsType = [ align: 'center', }, { - title: '网元类型', + title: t('views.logManage.alarm.type'), dataIndex: 'neType', align: 'center', }, { - title: '告警网元标识', + title: t('views.logManage.alarm.neId'), dataIndex: 'neId', align: 'center', }, { - title: '告警唯一标识', + title: t('views.logManage.alarm.alarmId'), dataIndex: 'alarmId', align: 'center', }, { - title: '告警流水号', + title: t('views.logManage.alarm.alarmSeq'), dataIndex: 'alarmSeq', align: 'center', }, { - title: '告警编号', + title: t('views.logManage.alarm.alarmCode'), dataIndex: 'alarmCode', align: 'center', }, { - title: '原始告警级别', + title: t('views.logManage.alarm.alarmStatus'), dataIndex: 'alarmStatus', key: 'alarmStatus', align: 'center', }, { - title: '告警产生时间', + title: t('views.logManage.alarm.eventTime'), dataIndex: 'eventTime', align: 'center', customRender(opt) { @@ -123,7 +123,7 @@ let tableColumns: ColumnsType = [ }, }, { - title: '记录时间', + title: t('views.logManage.alarm.logTime'), dataIndex: 'logTime', align: 'center', customRender(opt) { @@ -212,28 +212,26 @@ onMounted(() => { - + - + - + { show-time value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss" - :placeholder="['记录开始', '记录结束']" style="width: 100%" > diff --git a/src/views/logManage/forwarding/index.vue b/src/views/logManage/forwarding/index.vue index a887f561..9f6b0ca1 100644 --- a/src/views/logManage/forwarding/index.vue +++ b/src/views/logManage/forwarding/index.vue @@ -81,49 +81,49 @@ let tableColumns: ColumnsType = [ width: 3, }, { - title: '网元类型', + title: t('views.logManage.forwarding.type'), dataIndex: 'neType', align: 'center', width: 4, }, { - title: '告警网元标识', + title: t('views.logManage.forwarding.neId'), dataIndex: 'neId', align: 'center', width: 5, }, { - title: '告警唯一标识', + title: t('views.logManage.forwarding.alarmId'), dataIndex: 'alarmId', align: 'center', width: 5, }, { - title: '告警流水号', + title: t('views.logManage.forwarding.alarmSeq'), dataIndex: 'alarmSeq', align: 'center', width: 4, }, { - title: '告警前转对象', + title: t('views.logManage.forwarding.alarmObj'), dataIndex: 'toUser', align: 'center', width: 5, }, { - title: '告警标题', + title: t('views.logManage.forwarding.alarmTitle'), dataIndex: 'alarmTitle', align: 'left', width: 5, }, { - title: '告警内容', + title: t('views.logManage.forwarding.alarmInfo'), dataIndex: 'operResult', align: 'left', width: 6, }, { - title: '告警产生时间', + title: t('views.logManage.forwarding.eventTime'), dataIndex: 'eventTime', align: 'center', customRender(opt) { @@ -133,7 +133,7 @@ let tableColumns: ColumnsType = [ width: 5, }, { - title: '记录时间', + title: t('views.logManage.forwarding.logTime'), dataIndex: 'logTime', align: 'center', customRender(opt) { @@ -223,17 +223,16 @@ onMounted(() => { - + - + { show-time value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss" - :placeholder="['记录开始', '记录结束']" style="width: 100%" > diff --git a/src/views/logManage/mml/index.vue b/src/views/logManage/mml/index.vue index 4407175e..49c47d4b 100644 --- a/src/views/logManage/mml/index.vue +++ b/src/views/logManage/mml/index.vue @@ -70,38 +70,38 @@ let tableColumns: ColumnsType = [ width: 2, }, { - title: '登录账号', + title: t('views.logManage.mml.account'), dataIndex: 'user', align: 'center', width: 3, }, { - title: 'IP地址', + title: t('views.logManage.mml.ip'), dataIndex: 'ip', align: 'center', width: 3, }, { - title: '网元类型', + title: t('views.logManage.mml.type'), dataIndex: 'neType', align: 'center', width: 3, }, { - title: '网元唯一标识', + title: t('views.logManage.mml.neId'), dataIndex: 'neId', align: 'center', width: 3, }, { - title: 'MML', + title: t('views.logManage.mml.MML'), dataIndex: 'mml', key: 'mml', align: 'left', width: 5, }, { - title: '记录时间', + title: t('views.logManage.mml.logTime'), dataIndex: 'logTime', align: 'center', customRender(opt) { @@ -183,16 +183,15 @@ onMounted(() => { - + - + { show-time value-format="YYYY-MM-DD HH:mm:ss" format="YYYY-MM-DD HH:mm:ss" - :placeholder="['记录开始', '记录结束']" style="width: 100%" > diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 27f2bbf2..7381283c 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -368,7 +368,7 @@ function fnRecordDelete(deptId: string | number) { hide(); if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: t('common.msgSuccess', { msg: t('common.deleteText ') }), + content: t('common.msgSuccess', { msg: t('common.deleteText') }), duration: 2, }); fnGetList(); diff --git a/src/views/system/log/login/index.vue b/src/views/system/log/login/index.vue index ca94b70f..0fc8188e 100644 --- a/src/views/system/log/login/index.vue +++ b/src/views/system/log/login/index.vue @@ -98,48 +98,48 @@ let tableState: TabeStateType = reactive({ /**表格字段列 */ let tableColumns: ColumnsType = [ { - title: '日志编号', + title: t('views.system.log.login.operId'), dataIndex: 'loginId', align: 'center', }, { - title: '登录账号', + title: t('views.system.log.login.account'), dataIndex: 'userName', align: 'center', }, { - title: '登录地址', + title: t('views.system.log.login.loginIp'), dataIndex: 'ipaddr', align: 'center', }, { - title: '登录地点', + title: t('views.system.log.login.loginLoc'), dataIndex: 'loginLocation', align: 'center', }, { - title: '操作系统', + title: t('views.system.log.login.os'), dataIndex: 'os', align: 'center', }, { - title: '浏览器', + title: t('views.system.log.login.browser'), dataIndex: 'browser', align: 'center', }, { - title: '登录状态', + title: t('views.system.log.login.status'), dataIndex: 'status', key: 'status', align: 'center', }, { - title: '登录信息', + title: t('views.system.log.login.info'), dataIndex: 'msg', align: 'center', }, { - title: '登录时间', + title: t('views.system.log.login.loginTime'), dataIndex: 'loginTime', align: 'center', customRender(opt) { @@ -167,7 +167,7 @@ let tablePagination = reactive({ showSizeChanger: true, /**数据总数 */ total: 0, - showTotal: (total: number) => `总共 ${total} 条`, + showTotal: (total: number) => t('common.tablePaginationTotal', { total }), onChange: (page: number, pageSize: number) => { tablePagination.current = page; tablePagination.pageSize = pageSize; @@ -192,6 +192,7 @@ function fnTableSelectedRows( _: (string | number)[], rows: Record[] ) { + //debugger tableState.selectedRowKeys = rows.map(item => item.loginId); // 针对单个登录账号解锁 if (rows.length === 1) { @@ -206,14 +207,14 @@ function fnRecordDelete() { const ids = tableState.selectedRowKeys.join(','); Modal.confirm({ title: t('common.tipTitle'), - content: `确认删除访问编号为 【${ids}】 的数据项吗?`, + content: t('views.system.log.login.browser', { ids: ids }), onOk() { const key = 'delSysLogLogin'; message.loading({ content: t('common.loading'), key }); delSysLogLogin(ids).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: `删除成功`, + content: t('common.msgSuccess', { msg: t('common.deleteText') }), key, duration: 3, }); @@ -234,14 +235,16 @@ function fnRecordDelete() { function fnCleanList() { Modal.confirm({ title: t('common.tipTitle'), - content: `确认清空所有登录日志数据项?`, + content: t('views.system.log.login.delAllSure'), onOk() { const key = 'cleanSysLogLogin'; message.loading({ content: t('common.loading'), key }); cleanSysLogLogin().then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: `清空成功`, + content: t('common.msgSuccess', { + msg: t('views.system.log.login.delAll'), + }), key, duration: 3, }); @@ -263,14 +266,16 @@ function fnUnlock() { const username = tableState.selectedUserName; Modal.confirm({ title: t('common.tipTitle'), - content: `确认解锁用户 【${username}】 数据项?`, + content: t('views.system.log.login.unlockSure', { username }), onOk() { const hide = message.loading(t('common.loading'), 0); unlock(username).then(res => { hide(); if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: `${username} 解锁成功`, + content: t('views.system.log.login.unlockSure', { + userName: username, + }), duration: 3, }); } else { @@ -288,14 +293,16 @@ function fnUnlock() { function fnExportList() { Modal.confirm({ title: t('common.tipTitle'), - content: `确认根据搜索条件导出xlsx表格文件吗?`, + content: t('views.system.user.exportSure'), onOk() { const key = 'exportSysLogLogin'; message.loading({ content: t('common.loading'), key }); exportSysLogLogin(toRaw(queryParams)).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: `已完成导出`, + content: t('common.msgSuccess', { + msg: t('views.system.user.export'), + }), key, duration: 2, }); @@ -316,7 +323,7 @@ function fnExportList() { function fnGetList(pageNum?: number) { if (tableState.loading) return; tableState.loading = true; - if(pageNum){ + if (pageNum) { queryParams.pageNum = pageNum; } if (!queryRangePicker.value) { @@ -360,44 +367,52 @@ onMounted(() => { - + - + - + - + @@ -407,11 +422,11 @@ onMounted(() => { - 搜索 - 重置 @@ -431,7 +446,7 @@ onMounted(() => { v-perms:has="['system:log:login:unlock']" > - 解锁 + {{ t('views.system.log.login.unlock') }} { v-perms:has="['system:log:login:remove']" > - 删除 + {{ t('common.deleteText') }} { v-perms:has="['system:log:login:remove']" > - 清空 + {{ t('views.system.log.operate.delAll') }} { v-perms:has="['system:log:login:export']" > - 导出 + {{ t('common.export') }} @@ -467,31 +482,31 @@ onMounted(() => { diff --git a/src/views/system/log/operate/index.vue b/src/views/system/log/operate/index.vue index dd824fe7..be78e45d 100644 --- a/src/views/system/log/operate/index.vue +++ b/src/views/system/log/operate/index.vue @@ -100,44 +100,44 @@ let tableState: TabeStateType = reactive({ /**表格字段列 */ let tableColumns: ColumnsType = [ { - title: '日志编号', + title: t('views.system.log.operate.operId'), dataIndex: 'operId', align: 'center', }, { - title: '模块名称', + title: t('views.system.log.operate.moduleName'), dataIndex: 'title', align: 'center', }, { - title: '业务类型', + title: t('views.system.log.operate.workType'), dataIndex: 'businessType', key: 'businessType', align: 'center', }, { - title: '操作人员', + title: t('views.system.log.operate.operUser'), dataIndex: 'operName', align: 'center', }, { - title: '请求方式', + title: t('views.system.log.operate.requestMe'), dataIndex: 'requestMethod', align: 'center', }, { - title: '请求主机', + title: t('views.system.log.operate.host'), dataIndex: 'operIp', align: 'center', }, { - title: '操作状态', + title: t('views.system.log.operate.operStatus'), dataIndex: 'status', key: 'status', align: 'center', }, { - title: '操作日期', + title: t('views.system.log.operate.operDate'), dataIndex: 'operTime', align: 'center', customRender(opt) { @@ -146,7 +146,7 @@ let tableColumns: ColumnsType = [ }, }, { - title: '消耗时间', + title: t('views.system.log.operate.operId'), dataIndex: 'costTime', key: 'costTime', align: 'center', @@ -155,7 +155,7 @@ let tableColumns: ColumnsType = [ }, }, { - title: '操作', + title: t('common.operate'), key: 'operId', align: 'center', }, @@ -179,7 +179,7 @@ let tablePagination = reactive({ showSizeChanger: true, /**数据总数 */ total: 0, - showTotal: (total: number) => `总共 ${total} 条`, + showTotal: (total: number) => t('common.tablePaginationTotal', { total }), onChange: (page: number, pageSize: number) => { tablePagination.current = page; tablePagination.pageSize = pageSize; @@ -243,7 +243,7 @@ let modalState: ModalStateType = reactive({ */ function fnModalVisibleByVive(row: Record) { modalState.from = Object.assign(modalState.from, row); - modalState.title = '操作日志信息'; + modalState.title = t('views.system.log.operate.logInfo'); modalState.visibleByView = true; } @@ -259,14 +259,14 @@ function fnRecordDelete() { const ids = tableState.selectedRowKeys.join(','); Modal.confirm({ title: t('common.tipTitle'), - content: `确认删除访问编号为 【${ids}】 的数据项吗?`, + content: t('views.system.log.operate.delSure', { ids: ids }), onOk() { const key = 'delSysLogOperate'; message.loading({ content: t('common.loading'), key }); delSysLogOperate(ids).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: '删除成功', + content: t('common.msgSuccess', { msg: t('common.deleteText') }), key, duration: 2, }); @@ -287,14 +287,14 @@ function fnRecordDelete() { function fnCleanList() { Modal.confirm({ title: t('common.tipTitle'), - content: `确认清空所有登录日志数据项?`, + content: t('views.system.log.operate.delAllSure'), onOk() { const key = 'cleanSysLogOperate'; message.loading({ content: t('common.loading'), key }); cleanSysLogOperate().then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: '清空成功', + content: t('views.system.log.operate.delAllSuss'), key, duration: 2, }); @@ -315,14 +315,16 @@ function fnCleanList() { function fnExportList() { Modal.confirm({ title: t('common.tipTitle'), - content: `确认根据搜索条件导出xlsx表格文件吗?`, + content: t('views.system.user.exportSure'), onOk() { const key = 'exportSysLogOperate'; message.loading({ content: t('common.loading'), key }); exportSysLogOperate(toRaw(queryParams)).then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success({ - content: `已完成导出`, + content: t('common.msgSuccess', { + msg: t('views.system.user.export'), + }), key, duration: 2, }); @@ -343,7 +345,7 @@ function fnExportList() { function fnGetList(pageNum?: number) { if (tableState.loading) return; tableState.loading = true; - if(pageNum){ + if (pageNum) { queryParams.pageNum = pageNum; } if (!queryRangePicker.value) { @@ -393,53 +395,60 @@ onMounted(() => { - - + + - + - + - + - + @@ -449,11 +458,11 @@ onMounted(() => { - 搜索 - 重置 @@ -474,7 +483,7 @@ onMounted(() => { v-perms:has="['system:log:operate:remove']" > - 删除 + {{ t('common.deleteText') }} { v-perms:has="['system:log:operate:remove']" > - 清空 + {{ t('views.system.log.operate.delAll') }} { v-perms:has="['system:log:operate:export']" > - 导出 + {{ t('common.export') }} @@ -500,31 +509,31 @@ onMounted(() => { @@ -574,14 +589,13 @@ onMounted(() => {