--日志板块
This commit is contained in:
@@ -509,6 +509,38 @@ export default {
|
|||||||
save:'Save',
|
save:'Save',
|
||||||
noChange:'There is no change in the alarm forwarding interface settings.',
|
noChange:'There is no change in the alarm forwarding interface settings.',
|
||||||
forwardSet:'Alarm forwarding interface setting',
|
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: {
|
monitor: {
|
||||||
@@ -742,6 +774,49 @@ export default {
|
|||||||
codeTip:'Please enter the position code correctly',
|
codeTip:'Please enter the position code correctly',
|
||||||
nameTip:'Please enter the position name correctly',
|
nameTip:'Please enter the position name correctly',
|
||||||
delSure:'Confirm to delete the data item with post number [{postId}]?',
|
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?',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -511,6 +511,38 @@ export default {
|
|||||||
forwardSet:'告警前转接口设置',
|
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: {
|
monitor: {
|
||||||
session: {
|
session: {
|
||||||
userName: "登录账号",
|
userName: "登录账号",
|
||||||
@@ -742,6 +774,49 @@ export default {
|
|||||||
codeTip:'请正确输入岗位编码',
|
codeTip:'请正确输入岗位编码',
|
||||||
nameTip:'请正确输入岗位名称',
|
nameTip:'请正确输入岗位名称',
|
||||||
delSure:'确认删除岗位编号为 【{postId}】 的数据项?',
|
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}】 数据项?',
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -428,7 +428,6 @@ onMounted(() => {
|
|||||||
<a-form
|
<a-form
|
||||||
name="modalStateFrom"
|
name="modalStateFrom"
|
||||||
layout="horizontal"
|
layout="horizontal"
|
||||||
:label-col="{ span: 4 }"
|
|
||||||
>
|
>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
:label="t('views.configManage.license.neType')"
|
:label="t('views.configManage.license.neType')"
|
||||||
|
|||||||
@@ -449,6 +449,10 @@ function fnModalCancel() {
|
|||||||
* @param row 网元编号ID
|
* @param row 网元编号ID
|
||||||
*/
|
*/
|
||||||
function fnRecordDelete(row: Record<string, any>) {
|
function fnRecordDelete(row: Record<string, any>) {
|
||||||
|
message.success({
|
||||||
|
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
||||||
|
duration: 2,
|
||||||
|
});
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: t('views.configManage.neManage.delSure', { msg: row.neName }),
|
content: t('views.configManage.neManage.delSure', { msg: row.neName }),
|
||||||
@@ -458,7 +462,7 @@ function fnRecordDelete(row: Record<string, any>) {
|
|||||||
delNeInfo(row).then(res => {
|
delNeInfo(row).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: t('common.deleteText ') }),
|
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -83,38 +83,38 @@ let tableColumns: ColumnsType = [
|
|||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '网元类型',
|
title: t('views.logManage.alarm.type'),
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警网元标识',
|
title: t('views.logManage.alarm.neId'),
|
||||||
dataIndex: 'neId',
|
dataIndex: 'neId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警唯一标识',
|
title: t('views.logManage.alarm.alarmId'),
|
||||||
dataIndex: 'alarmId',
|
dataIndex: 'alarmId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警流水号',
|
title: t('views.logManage.alarm.alarmSeq'),
|
||||||
dataIndex: 'alarmSeq',
|
dataIndex: 'alarmSeq',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警编号',
|
title: t('views.logManage.alarm.alarmCode'),
|
||||||
dataIndex: 'alarmCode',
|
dataIndex: 'alarmCode',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '原始告警级别',
|
title: t('views.logManage.alarm.alarmStatus'),
|
||||||
dataIndex: 'alarmStatus',
|
dataIndex: 'alarmStatus',
|
||||||
key: 'alarmStatus',
|
key: 'alarmStatus',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警产生时间',
|
title: t('views.logManage.alarm.eventTime'),
|
||||||
dataIndex: 'eventTime',
|
dataIndex: 'eventTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -123,7 +123,7 @@ let tableColumns: ColumnsType = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '记录时间',
|
title: t('views.logManage.alarm.logTime'),
|
||||||
dataIndex: 'logTime',
|
dataIndex: 'logTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -212,28 +212,26 @@ onMounted(() => {
|
|||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="网元类型" name="neType">
|
<a-form-item :label="t('views.logManage.alarm.type')" name="neType">
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
v-model:value="queryParams.neType"
|
v-model:value="queryParams.neType"
|
||||||
:options="useNeInfoStore().getNeSelectOtions"
|
:options="useNeInfoStore().getNeSelectOtions"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="查询网元类型"
|
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="告警状态" name="status">
|
<a-form-item :label="t('views.logManage.alarm.status')" name="status">
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.status"
|
v-model:value="queryParams.status"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请选择告警状态"
|
|
||||||
:options="dict.alarmStatus"
|
:options="dict.alarmStatus"
|
||||||
>
|
>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="8" :md="12" :xs="24">
|
<a-col :lg="8" :md="12" :xs="24">
|
||||||
<a-form-item label="记录时间" name="queryRangePicker">
|
<a-form-item :label="t('views.logManage.alarm.logTime')" name="queryRangePicker">
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="queryRangePicker"
|
v-model:value="queryRangePicker"
|
||||||
allow-clear
|
allow-clear
|
||||||
@@ -241,7 +239,6 @@ onMounted(() => {
|
|||||||
show-time
|
show-time
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
:placeholder="['记录开始', '记录结束']"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -81,49 +81,49 @@ let tableColumns: ColumnsType = [
|
|||||||
width: 3,
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '网元类型',
|
title: t('views.logManage.forwarding.type'),
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 4,
|
width: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警网元标识',
|
title: t('views.logManage.forwarding.neId'),
|
||||||
dataIndex: 'neId',
|
dataIndex: 'neId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 5,
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警唯一标识',
|
title: t('views.logManage.forwarding.alarmId'),
|
||||||
dataIndex: 'alarmId',
|
dataIndex: 'alarmId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 5,
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警流水号',
|
title: t('views.logManage.forwarding.alarmSeq'),
|
||||||
dataIndex: 'alarmSeq',
|
dataIndex: 'alarmSeq',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 4,
|
width: 4,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警前转对象',
|
title: t('views.logManage.forwarding.alarmObj'),
|
||||||
dataIndex: 'toUser',
|
dataIndex: 'toUser',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 5,
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警标题',
|
title: t('views.logManage.forwarding.alarmTitle'),
|
||||||
dataIndex: 'alarmTitle',
|
dataIndex: 'alarmTitle',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 5,
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警内容',
|
title: t('views.logManage.forwarding.alarmInfo'),
|
||||||
dataIndex: 'operResult',
|
dataIndex: 'operResult',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 6,
|
width: 6,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '告警产生时间',
|
title: t('views.logManage.forwarding.eventTime'),
|
||||||
dataIndex: 'eventTime',
|
dataIndex: 'eventTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -133,7 +133,7 @@ let tableColumns: ColumnsType = [
|
|||||||
width: 5,
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '记录时间',
|
title: t('views.logManage.forwarding.logTime'),
|
||||||
dataIndex: 'logTime',
|
dataIndex: 'logTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -223,17 +223,16 @@ onMounted(() => {
|
|||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="网元类型" name="neType">
|
<a-form-item :label="t('views.logManage.forwarding.type')" name="neType">
|
||||||
<a-auto-complete
|
<a-auto-complete
|
||||||
v-model:value="queryParams.neType"
|
v-model:value="queryParams.neType"
|
||||||
:options="useNeInfoStore().getNeSelectOtions"
|
:options="useNeInfoStore().getNeSelectOtions"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="查询网元类型"
|
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="8" :md="12" :xs="24">
|
<a-col :lg="8" :md="12" :xs="24">
|
||||||
<a-form-item label="记录时间" name="queryRangePicker">
|
<a-form-item :label="t('views.logManage.forwarding.logTime')" name="queryRangePicker">
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="queryRangePicker"
|
v-model:value="queryRangePicker"
|
||||||
allow-clear
|
allow-clear
|
||||||
@@ -241,7 +240,6 @@ onMounted(() => {
|
|||||||
show-time
|
show-time
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
:placeholder="['记录开始', '记录结束']"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -70,38 +70,38 @@ let tableColumns: ColumnsType = [
|
|||||||
width: 2,
|
width: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '登录账号',
|
title: t('views.logManage.mml.account'),
|
||||||
dataIndex: 'user',
|
dataIndex: 'user',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 3,
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'IP地址',
|
title: t('views.logManage.mml.ip'),
|
||||||
dataIndex: 'ip',
|
dataIndex: 'ip',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 3,
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '网元类型',
|
title: t('views.logManage.mml.type'),
|
||||||
dataIndex: 'neType',
|
dataIndex: 'neType',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 3,
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '网元唯一标识',
|
title: t('views.logManage.mml.neId'),
|
||||||
dataIndex: 'neId',
|
dataIndex: 'neId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 3,
|
width: 3,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'MML',
|
title: t('views.logManage.mml.MML'),
|
||||||
dataIndex: 'mml',
|
dataIndex: 'mml',
|
||||||
key: 'mml',
|
key: 'mml',
|
||||||
align: 'left',
|
align: 'left',
|
||||||
width: 5,
|
width: 5,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '记录时间',
|
title: t('views.logManage.mml.logTime'),
|
||||||
dataIndex: 'logTime',
|
dataIndex: 'logTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -183,16 +183,15 @@ onMounted(() => {
|
|||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="登录账号" name="accountName">
|
<a-form-item :label="t('views.logManage.mml.account')" name="accountName">
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.accountName"
|
v-model:value="queryParams.accountName"
|
||||||
:allow-clear="true"
|
:allow-clear="true"
|
||||||
placeholder="查询登录账号"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="8" :md="12" :xs="24">
|
<a-col :lg="8" :md="12" :xs="24">
|
||||||
<a-form-item label="记录时间" name="queryRangePicker">
|
<a-form-item :label="t('views.logManage.mml.logTime')" name="queryRangePicker">
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="queryRangePicker"
|
v-model:value="queryRangePicker"
|
||||||
allow-clear
|
allow-clear
|
||||||
@@ -200,7 +199,6 @@ onMounted(() => {
|
|||||||
show-time
|
show-time
|
||||||
value-format="YYYY-MM-DD HH:mm:ss"
|
value-format="YYYY-MM-DD HH:mm:ss"
|
||||||
format="YYYY-MM-DD HH:mm:ss"
|
format="YYYY-MM-DD HH:mm:ss"
|
||||||
:placeholder="['记录开始', '记录结束']"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
|
|||||||
@@ -368,7 +368,7 @@ function fnRecordDelete(deptId: string | number) {
|
|||||||
hide();
|
hide();
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: t('common.deleteText ') }),
|
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
fnGetList();
|
fnGetList();
|
||||||
|
|||||||
@@ -98,48 +98,48 @@ let tableState: TabeStateType = reactive({
|
|||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
{
|
||||||
title: '日志编号',
|
title: t('views.system.log.login.operId'),
|
||||||
dataIndex: 'loginId',
|
dataIndex: 'loginId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '登录账号',
|
title: t('views.system.log.login.account'),
|
||||||
dataIndex: 'userName',
|
dataIndex: 'userName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '登录地址',
|
title: t('views.system.log.login.loginIp'),
|
||||||
dataIndex: 'ipaddr',
|
dataIndex: 'ipaddr',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '登录地点',
|
title: t('views.system.log.login.loginLoc'),
|
||||||
dataIndex: 'loginLocation',
|
dataIndex: 'loginLocation',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作系统',
|
title: t('views.system.log.login.os'),
|
||||||
dataIndex: 'os',
|
dataIndex: 'os',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '浏览器',
|
title: t('views.system.log.login.browser'),
|
||||||
dataIndex: 'browser',
|
dataIndex: 'browser',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '登录状态',
|
title: t('views.system.log.login.status'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '登录信息',
|
title: t('views.system.log.login.info'),
|
||||||
dataIndex: 'msg',
|
dataIndex: 'msg',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '登录时间',
|
title: t('views.system.log.login.loginTime'),
|
||||||
dataIndex: 'loginTime',
|
dataIndex: 'loginTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -167,7 +167,7 @@ let tablePagination = reactive({
|
|||||||
showSizeChanger: true,
|
showSizeChanger: true,
|
||||||
/**数据总数 */
|
/**数据总数 */
|
||||||
total: 0,
|
total: 0,
|
||||||
showTotal: (total: number) => `总共 ${total} 条`,
|
showTotal: (total: number) => t('common.tablePaginationTotal', { total }),
|
||||||
onChange: (page: number, pageSize: number) => {
|
onChange: (page: number, pageSize: number) => {
|
||||||
tablePagination.current = page;
|
tablePagination.current = page;
|
||||||
tablePagination.pageSize = pageSize;
|
tablePagination.pageSize = pageSize;
|
||||||
@@ -192,6 +192,7 @@ function fnTableSelectedRows(
|
|||||||
_: (string | number)[],
|
_: (string | number)[],
|
||||||
rows: Record<string, string>[]
|
rows: Record<string, string>[]
|
||||||
) {
|
) {
|
||||||
|
//debugger
|
||||||
tableState.selectedRowKeys = rows.map(item => item.loginId);
|
tableState.selectedRowKeys = rows.map(item => item.loginId);
|
||||||
// 针对单个登录账号解锁
|
// 针对单个登录账号解锁
|
||||||
if (rows.length === 1) {
|
if (rows.length === 1) {
|
||||||
@@ -206,14 +207,14 @@ function fnRecordDelete() {
|
|||||||
const ids = tableState.selectedRowKeys.join(',');
|
const ids = tableState.selectedRowKeys.join(',');
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认删除访问编号为 【${ids}】 的数据项吗?`,
|
content: t('views.system.log.login.browser', { ids: ids }),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'delSysLogLogin';
|
const key = 'delSysLogLogin';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
delSysLogLogin(ids).then(res => {
|
delSysLogLogin(ids).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `删除成功`,
|
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
||||||
key,
|
key,
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
@@ -234,14 +235,16 @@ function fnRecordDelete() {
|
|||||||
function fnCleanList() {
|
function fnCleanList() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认清空所有登录日志数据项?`,
|
content: t('views.system.log.login.delAllSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'cleanSysLogLogin';
|
const key = 'cleanSysLogLogin';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
cleanSysLogLogin().then(res => {
|
cleanSysLogLogin().then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `清空成功`,
|
content: t('common.msgSuccess', {
|
||||||
|
msg: t('views.system.log.login.delAll'),
|
||||||
|
}),
|
||||||
key,
|
key,
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
@@ -263,14 +266,16 @@ function fnUnlock() {
|
|||||||
const username = tableState.selectedUserName;
|
const username = tableState.selectedUserName;
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认解锁用户 【${username}】 数据项?`,
|
content: t('views.system.log.login.unlockSure', { username }),
|
||||||
onOk() {
|
onOk() {
|
||||||
const hide = message.loading(t('common.loading'), 0);
|
const hide = message.loading(t('common.loading'), 0);
|
||||||
unlock(username).then(res => {
|
unlock(username).then(res => {
|
||||||
hide();
|
hide();
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `${username} 解锁成功`,
|
content: t('views.system.log.login.unlockSure', {
|
||||||
|
userName: username,
|
||||||
|
}),
|
||||||
duration: 3,
|
duration: 3,
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
@@ -288,14 +293,16 @@ function fnUnlock() {
|
|||||||
function fnExportList() {
|
function fnExportList() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认根据搜索条件导出xlsx表格文件吗?`,
|
content: t('views.system.user.exportSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'exportSysLogLogin';
|
const key = 'exportSysLogLogin';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
exportSysLogLogin(toRaw(queryParams)).then(res => {
|
exportSysLogLogin(toRaw(queryParams)).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `已完成导出`,
|
content: t('common.msgSuccess', {
|
||||||
|
msg: t('views.system.user.export'),
|
||||||
|
}),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -316,7 +323,7 @@ function fnExportList() {
|
|||||||
function fnGetList(pageNum?: number) {
|
function fnGetList(pageNum?: number) {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
if(pageNum){
|
if (pageNum) {
|
||||||
queryParams.pageNum = pageNum;
|
queryParams.pageNum = pageNum;
|
||||||
}
|
}
|
||||||
if (!queryRangePicker.value) {
|
if (!queryRangePicker.value) {
|
||||||
@@ -360,44 +367,52 @@ onMounted(() => {
|
|||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="登录地址" name="ipaddr">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.login.loginIp')"
|
||||||
|
name="ipaddr"
|
||||||
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.ipaddr"
|
v-model:value="queryParams.ipaddr"
|
||||||
allow-clear
|
allow-clear
|
||||||
:maxlength="128"
|
:maxlength="128"
|
||||||
placeholder="请输入登录地址"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="登录账号" name="userName">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.login.account')"
|
||||||
|
name="userName"
|
||||||
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.userName"
|
v-model:value="queryParams.userName"
|
||||||
allow-clear
|
allow-clear
|
||||||
:maxlength="30"
|
:maxlength="30"
|
||||||
placeholder="请输入登录账号"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="登录状态" name="status">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.login.status')"
|
||||||
|
name="status"
|
||||||
|
>
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.status"
|
v-model:value="queryParams.status"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请选择登录状态"
|
|
||||||
:options="dict.sysCommonStatus"
|
:options="dict.sysCommonStatus"
|
||||||
>
|
>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="登录时间" name="queryRangePicker">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.login.loginTime')"
|
||||||
|
name="queryRangePicker"
|
||||||
|
>
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="queryRangePicker"
|
v-model:value="queryRangePicker"
|
||||||
allow-clear
|
allow-clear
|
||||||
bordered
|
bordered
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
:placeholder="['登录开始', '登录结束']"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -407,11 +422,11 @@ onMounted(() => {
|
|||||||
<a-space :size="8">
|
<a-space :size="8">
|
||||||
<a-button type="primary" @click.prevent="fnGetList(1)">
|
<a-button type="primary" @click.prevent="fnGetList(1)">
|
||||||
<template #icon><SearchOutlined /></template>
|
<template #icon><SearchOutlined /></template>
|
||||||
搜索</a-button
|
{{ t('common.search') }}</a-button
|
||||||
>
|
>
|
||||||
<a-button type="default" @click.prevent="fnQueryReset">
|
<a-button type="default" @click.prevent="fnQueryReset">
|
||||||
<template #icon><ClearOutlined /></template>
|
<template #icon><ClearOutlined /></template>
|
||||||
重置</a-button
|
{{ t('common.reset') }}</a-button
|
||||||
>
|
>
|
||||||
</a-space>
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -431,7 +446,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['system:log:login:unlock']"
|
v-perms:has="['system:log:login:unlock']"
|
||||||
>
|
>
|
||||||
<template #icon><UnlockOutlined /></template>
|
<template #icon><UnlockOutlined /></template>
|
||||||
解锁
|
{{ t('views.system.log.login.unlock') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="default"
|
type="default"
|
||||||
@@ -441,7 +456,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['system:log:login:remove']"
|
v-perms:has="['system:log:login:remove']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
删除
|
{{ t('common.deleteText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@@ -450,7 +465,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['system:log:login:remove']"
|
v-perms:has="['system:log:login:remove']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
清空
|
{{ t('views.system.log.operate.delAll') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@@ -458,7 +473,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['system:log:login:export']"
|
v-perms:has="['system:log:login:export']"
|
||||||
>
|
>
|
||||||
<template #icon><ExportOutlined /></template>
|
<template #icon><ExportOutlined /></template>
|
||||||
导出
|
{{ t('common.export') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -467,31 +482,31 @@ onMounted(() => {
|
|||||||
<template #extra>
|
<template #extra>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>搜索栏</template>
|
<template #title>{{ t('common.searchBarText') }}</template>
|
||||||
<a-switch
|
<a-switch
|
||||||
v-model:checked="tableState.seached"
|
v-model:checked="tableState.seached"
|
||||||
checked-children="显"
|
:checked-children="t('common.switch.show')"
|
||||||
un-checked-children="隐"
|
:un-checked-children="t('common.switch.hide')"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>表格斑马纹</template>
|
<template #title>{{ t('common.zebra') }}</template>
|
||||||
<a-switch
|
<a-switch
|
||||||
v-model:checked="tableState.striped"
|
v-model:checked="tableState.striped"
|
||||||
checked-children="开"
|
:checked-children="t('common.switch.show')"
|
||||||
un-checked-children="关"
|
:un-checked-children="t('common.switch.hide')"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>刷新</template>
|
<template #title>{{ t('common.reloadText') }}</template>
|
||||||
<a-button type="text" @click.prevent="fnGetList()">
|
<a-button type="text" @click.prevent="fnGetList()">
|
||||||
<template #icon><ReloadOutlined /></template>
|
<template #icon><ReloadOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip placement="topRight">
|
<a-tooltip placement="topRight">
|
||||||
<template #title>密度</template>
|
<template #title>{{ t('common.sizeText') }}</template>
|
||||||
<a-dropdown placement="bottomRight" trigger="click">
|
<a-dropdown placement="bottomRight" trigger="click">
|
||||||
<a-button type="text">
|
<a-button type="text">
|
||||||
<template #icon><ColumnHeightOutlined /></template>
|
<template #icon><ColumnHeightOutlined /></template>
|
||||||
@@ -501,9 +516,15 @@ onMounted(() => {
|
|||||||
:selected-keys="[tableState.size as string]"
|
:selected-keys="[tableState.size as string]"
|
||||||
@click="fnTableSize"
|
@click="fnTableSize"
|
||||||
>
|
>
|
||||||
<a-menu-item key="default">默认</a-menu-item>
|
<a-menu-item key="default"
|
||||||
<a-menu-item key="middle">中等</a-menu-item>
|
>{{ t('common.size.default') }}
|
||||||
<a-menu-item key="small">紧凑</a-menu-item>
|
</a-menu-item>
|
||||||
|
<a-menu-item key="middle"
|
||||||
|
>{{ t('common.size.middle') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="small"
|
||||||
|
>{{ t('common.size.small') }}
|
||||||
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
|
|||||||
@@ -100,44 +100,44 @@ let tableState: TabeStateType = reactive({
|
|||||||
/**表格字段列 */
|
/**表格字段列 */
|
||||||
let tableColumns: ColumnsType = [
|
let tableColumns: ColumnsType = [
|
||||||
{
|
{
|
||||||
title: '日志编号',
|
title: t('views.system.log.operate.operId'),
|
||||||
dataIndex: 'operId',
|
dataIndex: 'operId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '模块名称',
|
title: t('views.system.log.operate.moduleName'),
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '业务类型',
|
title: t('views.system.log.operate.workType'),
|
||||||
dataIndex: 'businessType',
|
dataIndex: 'businessType',
|
||||||
key: 'businessType',
|
key: 'businessType',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作人员',
|
title: t('views.system.log.operate.operUser'),
|
||||||
dataIndex: 'operName',
|
dataIndex: 'operName',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '请求方式',
|
title: t('views.system.log.operate.requestMe'),
|
||||||
dataIndex: 'requestMethod',
|
dataIndex: 'requestMethod',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '请求主机',
|
title: t('views.system.log.operate.host'),
|
||||||
dataIndex: 'operIp',
|
dataIndex: 'operIp',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作状态',
|
title: t('views.system.log.operate.operStatus'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作日期',
|
title: t('views.system.log.operate.operDate'),
|
||||||
dataIndex: 'operTime',
|
dataIndex: 'operTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
@@ -146,7 +146,7 @@ let tableColumns: ColumnsType = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '消耗时间',
|
title: t('views.system.log.operate.operId'),
|
||||||
dataIndex: 'costTime',
|
dataIndex: 'costTime',
|
||||||
key: 'costTime',
|
key: 'costTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
@@ -155,7 +155,7 @@ let tableColumns: ColumnsType = [
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '操作',
|
title: t('common.operate'),
|
||||||
key: 'operId',
|
key: 'operId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
},
|
},
|
||||||
@@ -179,7 +179,7 @@ let tablePagination = reactive({
|
|||||||
showSizeChanger: true,
|
showSizeChanger: true,
|
||||||
/**数据总数 */
|
/**数据总数 */
|
||||||
total: 0,
|
total: 0,
|
||||||
showTotal: (total: number) => `总共 ${total} 条`,
|
showTotal: (total: number) => t('common.tablePaginationTotal', { total }),
|
||||||
onChange: (page: number, pageSize: number) => {
|
onChange: (page: number, pageSize: number) => {
|
||||||
tablePagination.current = page;
|
tablePagination.current = page;
|
||||||
tablePagination.pageSize = pageSize;
|
tablePagination.pageSize = pageSize;
|
||||||
@@ -243,7 +243,7 @@ let modalState: ModalStateType = reactive({
|
|||||||
*/
|
*/
|
||||||
function fnModalVisibleByVive(row: Record<string, string>) {
|
function fnModalVisibleByVive(row: Record<string, string>) {
|
||||||
modalState.from = Object.assign(modalState.from, row);
|
modalState.from = Object.assign(modalState.from, row);
|
||||||
modalState.title = '操作日志信息';
|
modalState.title = t('views.system.log.operate.logInfo');
|
||||||
modalState.visibleByView = true;
|
modalState.visibleByView = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -259,14 +259,14 @@ function fnRecordDelete() {
|
|||||||
const ids = tableState.selectedRowKeys.join(',');
|
const ids = tableState.selectedRowKeys.join(',');
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认删除访问编号为 【${ids}】 的数据项吗?`,
|
content: t('views.system.log.operate.delSure', { ids: ids }),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'delSysLogOperate';
|
const key = 'delSysLogOperate';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
delSysLogOperate(ids).then(res => {
|
delSysLogOperate(ids).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: '删除成功',
|
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -287,14 +287,14 @@ function fnRecordDelete() {
|
|||||||
function fnCleanList() {
|
function fnCleanList() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认清空所有登录日志数据项?`,
|
content: t('views.system.log.operate.delAllSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'cleanSysLogOperate';
|
const key = 'cleanSysLogOperate';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
cleanSysLogOperate().then(res => {
|
cleanSysLogOperate().then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: '清空成功',
|
content: t('views.system.log.operate.delAllSuss'),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -315,14 +315,16 @@ function fnCleanList() {
|
|||||||
function fnExportList() {
|
function fnExportList() {
|
||||||
Modal.confirm({
|
Modal.confirm({
|
||||||
title: t('common.tipTitle'),
|
title: t('common.tipTitle'),
|
||||||
content: `确认根据搜索条件导出xlsx表格文件吗?`,
|
content: t('views.system.user.exportSure'),
|
||||||
onOk() {
|
onOk() {
|
||||||
const key = 'exportSysLogOperate';
|
const key = 'exportSysLogOperate';
|
||||||
message.loading({ content: t('common.loading'), key });
|
message.loading({ content: t('common.loading'), key });
|
||||||
exportSysLogOperate(toRaw(queryParams)).then(res => {
|
exportSysLogOperate(toRaw(queryParams)).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: `已完成导出`,
|
content: t('common.msgSuccess', {
|
||||||
|
msg: t('views.system.user.export'),
|
||||||
|
}),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
@@ -343,7 +345,7 @@ function fnExportList() {
|
|||||||
function fnGetList(pageNum?: number) {
|
function fnGetList(pageNum?: number) {
|
||||||
if (tableState.loading) return;
|
if (tableState.loading) return;
|
||||||
tableState.loading = true;
|
tableState.loading = true;
|
||||||
if(pageNum){
|
if (pageNum) {
|
||||||
queryParams.pageNum = pageNum;
|
queryParams.pageNum = pageNum;
|
||||||
}
|
}
|
||||||
if (!queryRangePicker.value) {
|
if (!queryRangePicker.value) {
|
||||||
@@ -393,53 +395,60 @@ onMounted(() => {
|
|||||||
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
<a-form :model="queryParams" name="queryParams" layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="操作模块" name="title">
|
<a-form-item
|
||||||
<a-input
|
:label="t('views.system.log.operate.operModule')"
|
||||||
v-model:value="queryParams.title"
|
name="title"
|
||||||
allow-clear
|
>
|
||||||
placeholder="请输入操作模块"
|
<a-input v-model:value="queryParams.title" allow-clear></a-input>
|
||||||
></a-input>
|
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="操作人员" name="operName">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.operate.operUser')"
|
||||||
|
name="operName"
|
||||||
|
>
|
||||||
<a-input
|
<a-input
|
||||||
v-model:value="queryParams.operName"
|
v-model:value="queryParams.operName"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请输入操作人员"
|
|
||||||
></a-input>
|
></a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="业务类型" name="businessType">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.operate.workType')"
|
||||||
|
name="businessType"
|
||||||
|
>
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.businessType"
|
v-model:value="queryParams.businessType"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请选择业务类型"
|
|
||||||
:options="dict.sysBusinessType"
|
:options="dict.sysBusinessType"
|
||||||
>
|
>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="操作状态" name="status">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.operate.operStatus')"
|
||||||
|
name="status"
|
||||||
|
>
|
||||||
<a-select
|
<a-select
|
||||||
v-model:value="queryParams.status"
|
v-model:value="queryParams.status"
|
||||||
allow-clear
|
allow-clear
|
||||||
placeholder="请选择操作状态"
|
|
||||||
:options="dict.sysCommonStatus"
|
:options="dict.sysCommonStatus"
|
||||||
>
|
>
|
||||||
</a-select>
|
</a-select>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="6" :md="12" :xs="24">
|
<a-col :lg="6" :md="12" :xs="24">
|
||||||
<a-form-item label="操作时间" name="queryRangePicker">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.operate.operTime')"
|
||||||
|
name="queryRangePicker"
|
||||||
|
>
|
||||||
<a-range-picker
|
<a-range-picker
|
||||||
v-model:value="queryRangePicker"
|
v-model:value="queryRangePicker"
|
||||||
allow-clear
|
allow-clear
|
||||||
bordered
|
bordered
|
||||||
value-format="YYYY-MM-DD"
|
value-format="YYYY-MM-DD"
|
||||||
:placeholder="['操作开始', '操作结束']"
|
|
||||||
style="width: 100%"
|
style="width: 100%"
|
||||||
></a-range-picker>
|
></a-range-picker>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -449,11 +458,11 @@ onMounted(() => {
|
|||||||
<a-space :size="8">
|
<a-space :size="8">
|
||||||
<a-button type="primary" @click.prevent="fnGetList(1)">
|
<a-button type="primary" @click.prevent="fnGetList(1)">
|
||||||
<template #icon><SearchOutlined /></template>
|
<template #icon><SearchOutlined /></template>
|
||||||
搜索</a-button
|
{{ t('common.search') }}</a-button
|
||||||
>
|
>
|
||||||
<a-button type="default" @click.prevent="fnQueryReset">
|
<a-button type="default" @click.prevent="fnQueryReset">
|
||||||
<template #icon><ClearOutlined /></template>
|
<template #icon><ClearOutlined /></template>
|
||||||
重置</a-button
|
{{ t('common.reset') }}</a-button
|
||||||
>
|
>
|
||||||
</a-space>
|
</a-space>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -474,7 +483,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['system:log:operate:remove']"
|
v-perms:has="['system:log:operate:remove']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
删除
|
{{ t('common.deleteText') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@@ -483,7 +492,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['system:log:operate:remove']"
|
v-perms:has="['system:log:operate:remove']"
|
||||||
>
|
>
|
||||||
<template #icon><DeleteOutlined /></template>
|
<template #icon><DeleteOutlined /></template>
|
||||||
清空
|
{{ t('views.system.log.operate.delAll') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
<a-button
|
<a-button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
@@ -491,7 +500,7 @@ onMounted(() => {
|
|||||||
v-perms:has="['system:log:operate:export']"
|
v-perms:has="['system:log:operate:export']"
|
||||||
>
|
>
|
||||||
<template #icon><ExportOutlined /></template>
|
<template #icon><ExportOutlined /></template>
|
||||||
导出
|
{{ t('common.export') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-space>
|
</a-space>
|
||||||
</template>
|
</template>
|
||||||
@@ -500,31 +509,31 @@ onMounted(() => {
|
|||||||
<template #extra>
|
<template #extra>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>搜索栏</template>
|
<template #title>{{ t('common.searchBarText') }}</template>
|
||||||
<a-switch
|
<a-switch
|
||||||
v-model:checked="tableState.seached"
|
v-model:checked="tableState.seached"
|
||||||
checked-children="显"
|
:checked-children="t('common.switch.show')"
|
||||||
un-checked-children="隐"
|
:un-checked-children="t('common.switch.hide')"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>表格斑马纹</template>
|
<template #title>{{ t('common.zebra') }}</template>
|
||||||
<a-switch
|
<a-switch
|
||||||
v-model:checked="tableState.striped"
|
v-model:checked="tableState.striped"
|
||||||
checked-children="开"
|
:checked-children="t('common.switch.show')"
|
||||||
un-checked-children="关"
|
:un-checked-children="t('common.switch.hide')"
|
||||||
size="small"
|
size="small"
|
||||||
/>
|
/>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>刷新</template>
|
<template #title>{{ t('common.reloadText') }}</template>
|
||||||
<a-button type="text" @click.prevent="fnGetList()">
|
<a-button type="text" @click.prevent="fnGetList()">
|
||||||
<template #icon><ReloadOutlined /></template>
|
<template #icon><ReloadOutlined /></template>
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
<a-tooltip placement="topRight">
|
<a-tooltip placement="topRight">
|
||||||
<template #title>密度</template>
|
<template #title>{{ t('common.sizeText') }}</template>
|
||||||
<a-dropdown placement="bottomRight" trigger="click">
|
<a-dropdown placement="bottomRight" trigger="click">
|
||||||
<a-button type="text">
|
<a-button type="text">
|
||||||
<template #icon><ColumnHeightOutlined /></template>
|
<template #icon><ColumnHeightOutlined /></template>
|
||||||
@@ -534,9 +543,15 @@ onMounted(() => {
|
|||||||
:selected-keys="[tableState.size as string]"
|
:selected-keys="[tableState.size as string]"
|
||||||
@click="fnTableSize"
|
@click="fnTableSize"
|
||||||
>
|
>
|
||||||
<a-menu-item key="default">默认</a-menu-item>
|
<a-menu-item key="default"
|
||||||
<a-menu-item key="middle">中等</a-menu-item>
|
>{{ t('common.size.default') }}
|
||||||
<a-menu-item key="small">紧凑</a-menu-item>
|
</a-menu-item>
|
||||||
|
<a-menu-item key="middle"
|
||||||
|
>{{ t('common.size.middle') }}
|
||||||
|
</a-menu-item>
|
||||||
|
<a-menu-item key="small"
|
||||||
|
>{{ t('common.size.small') }}
|
||||||
|
</a-menu-item>
|
||||||
</a-menu>
|
</a-menu>
|
||||||
</template>
|
</template>
|
||||||
</a-dropdown>
|
</a-dropdown>
|
||||||
@@ -574,14 +589,13 @@ onMounted(() => {
|
|||||||
<template v-if="column.key === 'operId'">
|
<template v-if="column.key === 'operId'">
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>查看详情</template>
|
<template #title>{{ t('common.viewText') }}</template>
|
||||||
<a-button
|
<a-button
|
||||||
type="link"
|
type="link"
|
||||||
@click.prevent="fnModalVisibleByVive(record)"
|
@click.prevent="fnModalVisibleByVive(record)"
|
||||||
v-perms:has="['system:log:operate:query']"
|
v-perms:has="['system:log:operate:query']"
|
||||||
>
|
>
|
||||||
<template #icon><ProfileOutlined /></template>
|
<template #icon><ProfileOutlined /></template>
|
||||||
详情
|
|
||||||
</a-button>
|
</a-button>
|
||||||
</a-tooltip>
|
</a-tooltip>
|
||||||
</a-space>
|
</a-space>
|
||||||
@@ -600,21 +614,21 @@ onMounted(() => {
|
|||||||
<a-form layout="horizontal">
|
<a-form layout="horizontal">
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="日志编号" name="operId">
|
<a-form-item :label="t('views.system.log.operate.operId')" name="operId">
|
||||||
{{ modalState.from.operId }}
|
{{ modalState.from.operId }}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="执行状态" name="status">
|
<a-form-item :label="t('views.system.log.operate.operStatus')" name="status">
|
||||||
<a-tag :color="+modalState.from.status ? 'success' : 'error'">
|
<a-tag :color="+modalState.from.status ? 'success' : 'error'">
|
||||||
{{ ['失败', '正常'][+modalState.from.status] }}
|
{{ [t('views.system.log.operate.fail'),t('views.system.log.operate.suss')][+modalState.from.status] }}
|
||||||
</a-tag>
|
</a-tag>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="业务类型" name="businessType">
|
<a-form-item :label="t('views.system.log.operate.workType')" name="businessType">
|
||||||
{{ modalState.from.title }} /
|
{{ modalState.from.title }} /
|
||||||
<DictTag
|
<DictTag
|
||||||
:options="dict.sysBusinessType"
|
:options="dict.sysBusinessType"
|
||||||
@@ -623,7 +637,7 @@ onMounted(() => {
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="操作人员" name="operName">
|
<a-form-item :label="t('views.system.log.operate.operUser')" name="operName">
|
||||||
{{ modalState.from.operName }} / {{ modalState.from.operIp }} /
|
{{ modalState.from.operName }} / {{ modalState.from.operIp }} /
|
||||||
{{ modalState.from.operLocation }}
|
{{ modalState.from.operLocation }}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
@@ -631,13 +645,13 @@ onMounted(() => {
|
|||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="请求地址" name="operUrl">
|
<a-form-item :label="t('views.system.log.operate.RequestIp')" name="operUrl">
|
||||||
{{ modalState.from.requestMethod }} -
|
{{ modalState.from.requestMethod }} -
|
||||||
{{ modalState.from.operUrl }}
|
{{ modalState.from.operUrl }}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="操作时间" name="operTime">
|
<a-form-item :label="t('views.system.log.operate.operTime')" name="operTime">
|
||||||
<span v-if="+modalState.from.operTime > 0">
|
<span v-if="+modalState.from.operTime > 0">
|
||||||
{{ parseDateToStr(+modalState.from.operTime) }}
|
{{ parseDateToStr(+modalState.from.operTime) }}
|
||||||
</span>
|
</span>
|
||||||
@@ -646,35 +660,33 @@ onMounted(() => {
|
|||||||
</a-row>
|
</a-row>
|
||||||
<a-row :gutter="16">
|
<a-row :gutter="16">
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="请求耗时" name="costTime">
|
<a-form-item :label="t('views.system.log.operate.useTime')" name="costTime">
|
||||||
{{ modalState.from.costTime }} ms
|
{{ modalState.from.costTime }} ms
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
<a-col :lg="12" :md="12" :xs="24">
|
<a-col :lg="12" :md="12" :xs="24">
|
||||||
<a-form-item label="操作方法" name="method">
|
<a-form-item :label="t('views.system.log.operate.operMe')" name="method">
|
||||||
{{ modalState.from.method }}
|
{{ modalState.from.method }}
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
</a-row>
|
</a-row>
|
||||||
<a-form-item label="请求参数" name="operParam">
|
<a-form-item :label="t('views.system.log.operate.reqParam')" name="operParam">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
v-model:value="modalState.from.operParam"
|
v-model:value="modalState.from.operParam"
|
||||||
:auto-size="{ minRows: 2, maxRows: 6 }"
|
:auto-size="{ minRows: 2, maxRows: 6 }"
|
||||||
placeholder="请求参数"
|
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item label="操作信息" name="operMsg">
|
<a-form-item :label="t('views.system.log.operate.operInfo')" name="operMsg">
|
||||||
<a-textarea
|
<a-textarea
|
||||||
v-model:value="modalState.from.operMsg"
|
v-model:value="modalState.from.operMsg"
|
||||||
:auto-size="{ minRows: 2, maxRows: 6 }"
|
:auto-size="{ minRows: 2, maxRows: 6 }"
|
||||||
placeholder="操作信息"
|
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-button key="cancel" @click="fnModalCancel">关闭</a-button>
|
<a-button key="cancel" @click="fnModalCancel">{{t('common.cancel')}}</a-button>
|
||||||
</template>
|
</template>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ function fnRecordDelete(postId: string = '0') {
|
|||||||
delPost(postId).then(res => {
|
delPost(postId).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: t('common.deleteText ') }),
|
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -654,7 +654,7 @@ function fnRecordDelete(roleId: string = '0') {
|
|||||||
delRole(roleId).then(res => {
|
delRole(roleId).then(res => {
|
||||||
if (res.code === RESULT_CODE_SUCCESS) {
|
if (res.code === RESULT_CODE_SUCCESS) {
|
||||||
message.success({
|
message.success({
|
||||||
content: t('common.msgSuccess', { msg: t('common.deleteText ') }),
|
content: t('common.msgSuccess', { msg: t('common.deleteText') }),
|
||||||
key,
|
key,
|
||||||
duration: 2,
|
duration: 2,
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user