diff --git a/src/views/system/log/operate/index.vue b/src/views/system/log/operate/index.vue index f140d708..9c7786fb 100644 --- a/src/views/system/log/operate/index.vue +++ b/src/views/system/log/operate/index.vue @@ -103,43 +103,51 @@ let tableColumns: ColumnsType = [ title: t('views.system.log.operate.operId'), dataIndex: 'operId', align: 'center', + width: 100, }, { title: t('views.system.log.operate.moduleName'), dataIndex: 'title', - align: 'center', + align: 'left', + width: 200, }, { title: t('views.system.log.operate.workType'), dataIndex: 'businessType', key: 'businessType', - align: 'center', + align: 'left', + width: 120, }, { title: t('views.system.log.operate.operUser'), dataIndex: 'operName', - align: 'center', + align: 'left', + width: 120, }, { title: t('views.system.log.operate.requestMe'), dataIndex: 'requestMethod', - align: 'center', + align: 'left', + width: 150, }, { title: t('views.system.log.operate.host'), dataIndex: 'operIp', align: 'center', + width: 150, }, { title: t('views.system.log.operate.operStatus'), dataIndex: 'status', key: 'status', align: 'center', + width: 150, }, { title: t('views.system.log.operate.operDate'), dataIndex: 'operTime', align: 'center', + width: 150, customRender(opt) { if (+opt.value <= 0) return ''; return parseDateToStr(+opt.value); @@ -149,7 +157,8 @@ let tableColumns: ColumnsType = [ title: t('views.system.log.operate.useTime'), dataIndex: 'costTime', key: 'costTime', - align: 'center', + align: 'right', + width: 150, customRender(opt) { return `${opt.value} ms`; }, @@ -157,7 +166,7 @@ let tableColumns: ColumnsType = [ { title: t('common.operate'), key: 'operId', - align: 'center', + align: 'left', }, ]; @@ -568,7 +577,7 @@ onMounted(() => { :data-source="tableState.data" :size="tableState.size" :row-class-name="fnTableStriped" - :scroll="{ x: true }" + :scroll="{ x: tableColumns.length * 150 }" :pagination="tablePagination" :row-selection="{ type: 'checkbox', @@ -611,24 +620,38 @@ onMounted(() => { :title="modalState.title" @cancel="fnModalCancel" > - + - + {{ modalState.from.operId }} - + - {{ [t('views.system.log.operate.fail'),t('views.system.log.operate.suss')][+modalState.from.status] }} + {{ + [ + t('views.system.log.operate.fail'), + t('views.system.log.operate.suss'), + ][+modalState.from.status] + }} - + {{ modalState.from.title }} / { - + {{ modalState.from.operName }} / {{ modalState.from.operIp }} / {{ modalState.from.operLocation }} @@ -645,13 +671,19 @@ onMounted(() => { - + {{ modalState.from.requestMethod }} - {{ modalState.from.operUrl }} - + {{ parseDateToStr(+modalState.from.operTime) }} @@ -660,24 +692,40 @@ onMounted(() => { - + {{ modalState.from.costTime }} ms - + - + - + {