待办中心-项目法规任务-列宽可拖拽

This commit is contained in:
刘彦泽
2023-02-06 22:29:20 +08:00
parent 4751e1e816
commit d7db0fa92a
3 changed files with 13 additions and 6 deletions
@@ -8,7 +8,7 @@
<div style="width: 100%"> <div style="width: 100%">
<a-table <a-table
ref="table" ref="table"
:components="drag(columns,'columnsAll')" :components="drag(columnsAll,'columnsAll')"
:loading="loading" :loading="loading"
:pagination="false" :pagination="false"
:scroll="{x: '100%'}" :scroll="{x: '100%'}"
@@ -44,35 +44,35 @@
title: this.$t('OperationContent'), title: this.$t('OperationContent'),
dataIndex: 'taskDefinitionKeyName', dataIndex: 'taskDefinitionKeyName',
align: 'left', align: 'left',
width: '370', width: 370,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('opinion'), title: this.$t('opinion'),
dataIndex: 'approvalOpinion', dataIndex: 'approvalOpinion',
align: 'left', align: 'left',
width: '370', width: 370,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('Operator'), title: this.$t('Operator'),
dataIndex: 'createBy', dataIndex: 'createBy',
align: 'left', align: 'left',
width: '370', width: 370,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('role'), title: this.$t('role'),
dataIndex: 'operatorRoleName', dataIndex: 'operatorRoleName',
align: 'left', align: 'left',
width: '370', width: 370,
ellipsis: true ellipsis: true
}, },
{ {
title: this.$t('OperationTime'), title: this.$t('OperationTime'),
dataIndex: 'createTime', dataIndex: 'createTime',
align: 'left', align: 'left',
width: '370', 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')
@@ -256,4 +256,8 @@
::v-deep .ant-table-body { ::v-deep .ant-table-body {
background: transparent !important; background: transparent !important;
} }
::v-deep .ant-table-placeholder {
margin-top: 8px !important;
}
</style> </style>
@@ -354,4 +354,7 @@
margin-top: 20px; margin-top: 20px;
} }
::v-deep .ant-table-placeholder{
margin-top: 8px !important;
}
</style> </style>