diff --git a/src/views/system/dict/data.vue b/src/views/system/dict/data.vue index 3b15c2f0..99fe89bc 100644 --- a/src/views/system/dict/data.vue +++ b/src/views/system/dict/data.vue @@ -148,32 +148,38 @@ let tableColumns: ColumnsType = [ title: t('views.system.dictData.dictCode'), dataIndex: 'dictCode', align: 'left', + width: 100, }, { title: t('views.system.dictData.dictLabel'), dataIndex: 'dictLabel', align: 'left', + width: 200, }, { title: t('views.system.dictData.dictValue'), dataIndex: 'dictValue', align: 'left', + width: 200, }, { title: t('views.system.dictData.dictSort'), dataIndex: 'dictSort', align: 'left', + width: 100, }, { title: t('views.system.dictData.status'), dataIndex: 'status', key: 'status', align: 'left', + width: 100, }, { title: t('views.system.dictData.createTime'), dataIndex: 'createTime', align: 'left', + width: 150, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value); @@ -182,7 +188,7 @@ let tableColumns: ColumnsType = [ { title: t('common.operate'), key: 'dictCode', - align: 'center', + align: 'left', }, ]; @@ -513,14 +519,13 @@ onMounted(() => { - + { :data-source="tableState.data" :size="tableState.size" :row-class-name="fnTableStriped" - :scroll="{ x: true }" + :scroll="{ x: tableColumns.length * 120 }" :pagination="tablePagination" :row-selection="{ type: 'checkbox', @@ -729,7 +734,7 @@ onMounted(() => { :title="modalState.title" @cancel="fnModalCancel" > - + { - - {{ modalState.from.remark }} + +