From 5cad6a594bcd720e17869ab263f90d7e329e349c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=BD=A6=E6=B3=BD?= Date: Wed, 1 Feb 2023 14:20:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=BF=97=E4=B8=AD=E5=BF=83-=E6=93=8D?= =?UTF-8?q?=E4=BD=9C=E6=97=A5=E8=AE=B0-=E5=88=97=E5=AE=BD=E5=8F=AF?= =?UTF-8?q?=E6=8B=96=E6=8B=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/views/system/LogList.vue | 27 +++++++++++++++++++-------- 1 file changed, 19 insertions(+), 8 deletions(-) diff --git a/jero-web/src/views/system/LogList.vue b/jero-web/src/views/system/LogList.vue index eb44eb1b1..1af8ea7fe 100644 --- a/jero-web/src/views/system/LogList.vue +++ b/jero-web/src/views/system/LogList.vue @@ -53,6 +53,7 @@ ref="table" size="middle" rowKey="id" + :components="drag(columns,'columns')" :columns="columns" :dataSource="dataSource" :pagination="ipagination" @@ -76,10 +77,11 @@ import { filterObj } from '@/utils/util'; import { JeroListMixin } from '@/mixins/JeroListMixin' import JEllipsis from '@/components/jero/JEllipsis' + import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header' export default { name: "LogList", - mixins:[JeroListMixin], + mixins:[JeroListMixin, ResizeHeader, ResizeColumnProvide], components: { JEllipsis }, @@ -103,38 +105,44 @@ align:"left", customRender:function (t,r,index) { return parseInt(index)+1; - } + }, + width: 40 }, { title: this.$t('LogContent'), align:"left", dataIndex: 'logContent', scopedSlots: { customRender: 'logContent' }, - sorter: true + sorter: true, + width: 270 }, { title: this.$t('OperatorID'), dataIndex: 'userid', align:"left", - sorter: true + sorter: true, + width: 121 }, { title: this.$t('OperatorName'), dataIndex: 'username', align:"left", - sorter: true + sorter: true, + width: 141 }, { title: 'IP', dataIndex: 'ip', align:"left", - sorter: true + sorter: true, + width: 93 }, { title: this.$t('ElapsedTime'), dataIndex: 'costTime', align:"left", - sorter: true + sorter: true, + width: 136 }, { title: this.$t('LogType'), @@ -149,12 +157,14 @@ } },*/ align:"left", + width: 95 }, { title: this.$t('createTime'), dataIndex: 'createTime', align:"left", - sorter: true + sorter: true, + width: 199 } ], operateColumn: @@ -162,6 +172,7 @@ title: this.$t('OperationType'), dataIndex: 'operateType_dictText', align:"left", + width: 95 }, labelCol: { xs: { span: 1 },