待办中心-法规评估任务-流程历史-列宽可拖拽

This commit is contained in:
刘彦泽
2023-02-01 11:31:32 +08:00
parent 85b5c55172
commit a82604c65f
@@ -8,6 +8,7 @@
<div style="width: 100%"> <div style="width: 100%">
<a-table <a-table
ref="table" ref="table"
:components="drag(columns,'columnsAll')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%'}" :scroll="{x: '100%'}"
@@ -23,6 +24,7 @@
import { getAction, postAction, downloadFile } from '@/api/manage' import { getAction, postAction, downloadFile } from '@/api/manage'
import moment from 'moment' import moment from 'moment'
import { Base64 } from 'js-base64' import { Base64 } from 'js-base64'
import { ResizeHeader, ResizeColumnProvide } from '@/mixins/header'
export default { export default {
name: 'regulatoryCirculationHistory', name: 'regulatoryCirculationHistory',
@@ -32,6 +34,7 @@
default: false default: false
} }
}, },
mixins:[ResizeHeader, ResizeColumnProvide],
data() { data() {
return { return {
dataSource: [], dataSource: [],
@@ -41,35 +44,35 @@
title: this.$t('OperationContent'), title: this.$t('OperationContent'),
dataIndex: 'taskDefinitionKeyName', dataIndex: 'taskDefinitionKeyName',
align: 'left', align: 'left',
width: '20%', width: '370',
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('opinion'), title: this.$t('opinion'),
dataIndex: 'approvalOpinion', dataIndex: 'approvalOpinion',
align: 'left', align: 'left',
width: '20%', width: '370',
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('Operator'), title: this.$t('Operator'),
dataIndex: 'createBy', dataIndex: 'createBy',
align: 'left', align: 'left',
width: '20%', width: '370',
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('role'), title: this.$t('role'),
dataIndex: 'operatorRoleName', dataIndex: 'operatorRoleName',
align: 'left', align: 'left',
width: '20%', width: '370',
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('OperationTime'), title: this.$t('OperationTime'),
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'left', align: 'left',
width: '20%', width: '370',
ellipsis: true, ellipsis: true,
customRender: function(t, r, index) { customRender: function(t, r, index) {
return moment(t).format('YYYY-MM-DD HH:mm:ss') return moment(t).format('YYYY-MM-DD HH:mm:ss')