日志中心-操作日记-列宽可拖拽

This commit is contained in:
刘彦泽
2023-02-01 14:20:30 +08:00
parent a82604c65f
commit 5cad6a594b
+19 -8
View File
@@ -53,6 +53,7 @@
ref="table" ref="table"
size="middle" size="middle"
rowKey="id" rowKey="id"
:components="drag(columns,'columns')"
:columns="columns" :columns="columns"
:dataSource="dataSource" :dataSource="dataSource"
:pagination="ipagination" :pagination="ipagination"
@@ -76,10 +77,11 @@
import { filterObj } from '@/utils/util'; import { filterObj } from '@/utils/util';
import { JeroListMixin } from '@/mixins/JeroListMixin' import { JeroListMixin } from '@/mixins/JeroListMixin'
import JEllipsis from '@/components/jero/JEllipsis' import JEllipsis from '@/components/jero/JEllipsis'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: "LogList", name: "LogList",
mixins:[JeroListMixin], mixins:[JeroListMixin, ResizeHeader, ResizeColumnProvide],
components: { components: {
JEllipsis JEllipsis
}, },
@@ -103,38 +105,44 @@
align:"left", align:"left",
customRender:function (t,r,index) { customRender:function (t,r,index) {
return parseInt(index)+1; return parseInt(index)+1;
} },
width: 40
}, },
{ {
title: this.$t('LogContent'), title: this.$t('LogContent'),
align:"left", align:"left",
dataIndex: 'logContent', dataIndex: 'logContent',
scopedSlots: { customRender: 'logContent' }, scopedSlots: { customRender: 'logContent' },
sorter: true sorter: true,
width: 270
}, },
{ {
title: this.$t('OperatorID'), title: this.$t('OperatorID'),
dataIndex: 'userid', dataIndex: 'userid',
align:"left", align:"left",
sorter: true sorter: true,
width: 121
}, },
{ {
title: this.$t('OperatorName'), title: this.$t('OperatorName'),
dataIndex: 'username', dataIndex: 'username',
align:"left", align:"left",
sorter: true sorter: true,
width: 141
}, },
{ {
title: 'IP', title: 'IP',
dataIndex: 'ip', dataIndex: 'ip',
align:"left", align:"left",
sorter: true sorter: true,
width: 93
}, },
{ {
title: this.$t('ElapsedTime'), title: this.$t('ElapsedTime'),
dataIndex: 'costTime', dataIndex: 'costTime',
align:"left", align:"left",
sorter: true sorter: true,
width: 136
}, },
{ {
title: this.$t('LogType'), title: this.$t('LogType'),
@@ -149,12 +157,14 @@
} }
},*/ },*/
align:"left", align:"left",
width: 95
}, },
{ {
title: this.$t('createTime'), title: this.$t('createTime'),
dataIndex: 'createTime', dataIndex: 'createTime',
align:"left", align:"left",
sorter: true sorter: true,
width: 199
} }
], ],
operateColumn: operateColumn:
@@ -162,6 +172,7 @@
title: this.$t('OperationType'), title: this.$t('OperationType'),
dataIndex: 'operateType_dictText', dataIndex: 'operateType_dictText',
align:"left", align:"left",
width: 95
}, },
labelCol: { labelCol: {
xs: { span: 1 }, xs: { span: 1 },