style: 接口操作日志管理页面排版
This commit is contained in:
@@ -103,43 +103,51 @@ let tableColumns: ColumnsType = [
|
|||||||
title: t('views.system.log.operate.operId'),
|
title: t('views.system.log.operate.operId'),
|
||||||
dataIndex: 'operId',
|
dataIndex: 'operId',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.operate.moduleName'),
|
title: t('views.system.log.operate.moduleName'),
|
||||||
dataIndex: 'title',
|
dataIndex: 'title',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 200,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.operate.workType'),
|
title: t('views.system.log.operate.workType'),
|
||||||
dataIndex: 'businessType',
|
dataIndex: 'businessType',
|
||||||
key: 'businessType',
|
key: 'businessType',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.operate.operUser'),
|
title: t('views.system.log.operate.operUser'),
|
||||||
dataIndex: 'operName',
|
dataIndex: 'operName',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 120,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.operate.requestMe'),
|
title: t('views.system.log.operate.requestMe'),
|
||||||
dataIndex: 'requestMethod',
|
dataIndex: 'requestMethod',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.operate.host'),
|
title: t('views.system.log.operate.host'),
|
||||||
dataIndex: 'operIp',
|
dataIndex: 'operIp',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.operate.operStatus'),
|
title: t('views.system.log.operate.operStatus'),
|
||||||
dataIndex: 'status',
|
dataIndex: 'status',
|
||||||
key: 'status',
|
key: 'status',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: t('views.system.log.operate.operDate'),
|
title: t('views.system.log.operate.operDate'),
|
||||||
dataIndex: 'operTime',
|
dataIndex: 'operTime',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
width: 150,
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
if (+opt.value <= 0) return '';
|
if (+opt.value <= 0) return '';
|
||||||
return parseDateToStr(+opt.value);
|
return parseDateToStr(+opt.value);
|
||||||
@@ -149,7 +157,8 @@ let tableColumns: ColumnsType = [
|
|||||||
title: t('views.system.log.operate.useTime'),
|
title: t('views.system.log.operate.useTime'),
|
||||||
dataIndex: 'costTime',
|
dataIndex: 'costTime',
|
||||||
key: 'costTime',
|
key: 'costTime',
|
||||||
align: 'center',
|
align: 'right',
|
||||||
|
width: 150,
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
return `${opt.value} ms`;
|
return `${opt.value} ms`;
|
||||||
},
|
},
|
||||||
@@ -157,7 +166,7 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: t('common.operate'),
|
title: t('common.operate'),
|
||||||
key: 'operId',
|
key: 'operId',
|
||||||
align: 'center',
|
align: 'left',
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
@@ -568,7 +577,7 @@ onMounted(() => {
|
|||||||
:data-source="tableState.data"
|
:data-source="tableState.data"
|
||||||
:size="tableState.size"
|
:size="tableState.size"
|
||||||
:row-class-name="fnTableStriped"
|
:row-class-name="fnTableStriped"
|
||||||
:scroll="{ x: true }"
|
:scroll="{ x: tableColumns.length * 150 }"
|
||||||
:pagination="tablePagination"
|
:pagination="tablePagination"
|
||||||
:row-selection="{
|
:row-selection="{
|
||||||
type: 'checkbox',
|
type: 'checkbox',
|
||||||
@@ -611,24 +620,38 @@ onMounted(() => {
|
|||||||
:title="modalState.title"
|
:title="modalState.title"
|
||||||
@cancel="fnModalCancel"
|
@cancel="fnModalCancel"
|
||||||
>
|
>
|
||||||
<a-form layout="horizontal">
|
<a-form layout="horizontal" :label-col="{ span: 6 }" :label-wrap="true">
|
||||||
<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="t('views.system.log.operate.operId')" 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="t('views.system.log.operate.operStatus')" 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'">
|
||||||
{{ [t('views.system.log.operate.fail'),t('views.system.log.operate.suss')][+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="t('views.system.log.operate.workType')" 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"
|
||||||
@@ -637,7 +660,10 @@ 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="t('views.system.log.operate.operUser')" 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>
|
||||||
@@ -645,13 +671,19 @@ 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="t('views.system.log.operate.RequestIp')" 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="t('views.system.log.operate.operTime')" 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>
|
||||||
@@ -660,24 +692,40 @@ 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="t('views.system.log.operate.useTime')" 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="t('views.system.log.operate.operMe')" 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="t('views.system.log.operate.reqParam')" name="operParam">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.operate.reqParam')"
|
||||||
|
name="operParam"
|
||||||
|
:label-col="{ span: 3 }"
|
||||||
|
:label-wrap="true"
|
||||||
|
>
|
||||||
<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 }"
|
||||||
:disabled="true"
|
:disabled="true"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item :label="t('views.system.log.operate.operInfo')" name="operMsg">
|
<a-form-item
|
||||||
|
:label="t('views.system.log.operate.operInfo')"
|
||||||
|
name="operMsg"
|
||||||
|
:label-col="{ span: 3 }"
|
||||||
|
:label-wrap="true"
|
||||||
|
>
|
||||||
<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 }"
|
||||||
@@ -686,7 +734,9 @@ onMounted(() => {
|
|||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-form>
|
</a-form>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<a-button key="cancel" @click="fnModalCancel">{{t('common.cancel')}}</a-button>
|
<a-button key="cancel" @click="fnModalCancel">
|
||||||
|
{{ t('common.cancel') }}
|
||||||
|
</a-button>
|
||||||
</template>
|
</template>
|
||||||
</a-modal>
|
</a-modal>
|
||||||
</PageContainer>
|
</PageContainer>
|
||||||
|
|||||||
Reference in New Issue
Block a user