diff --git a/src/views/system/post/index.vue b/src/views/system/post/index.vue index c83c3377..f9d4d878 100644 --- a/src/views/system/post/index.vue +++ b/src/views/system/post/index.vue @@ -88,33 +88,39 @@ let tableColumns: ColumnsType = [ { title: t('views.system.post.positionId'), dataIndex: 'postId', - align: 'center', + align: 'left', + width: 150, }, { title: t('views.system.post.positionName'), dataIndex: 'postName', align: 'left', + width: 200, }, { title: t('views.system.post.positionCode'), dataIndex: 'postCode', align: 'left', + width: 200, }, { title: t('views.system.post.positionSort'), dataIndex: 'postSort', align: 'left', + width: 150, }, { title: t('views.system.post.positionStatus'), dataIndex: 'status', key: 'status', align: 'center', + width: 150, }, { title: t('views.system.post.createTime'), dataIndex: 'createTime', align: 'center', + width: 150, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value); @@ -123,7 +129,7 @@ let tableColumns: ColumnsType = [ { title: t('common.operate'), key: 'postId', - align: 'center', + align: 'left', }, ]; @@ -585,7 +591,7 @@ onMounted(() => { :size="tableState.size" :row-class-name="fnTableStriped" :pagination="tablePagination" - :scroll="{ x: true }" + :scroll="{ x: tableColumns.length * 120 }" :row-selection="{ type: 'checkbox', selectedRowKeys: tableState.selectedRowKeys, @@ -641,7 +647,7 @@ onMounted(() => { :title="modalState.title" @cancel="fnModalCancel" > - + { - - {{ modalState.from.remark }} + +