|
@@ -22,7 +22,8 @@ const handleColumns = (columns: any, status?: string) => {
|
|
|
title: item.title,
|
|
title: item.title,
|
|
|
field: item.field,
|
|
field: item.field,
|
|
|
sortable: true,
|
|
sortable: true,
|
|
|
- minWidth: 120
|
|
|
|
|
|
|
+ minWidth: 120,
|
|
|
|
|
+ showOverflow: true
|
|
|
}
|
|
}
|
|
|
// 设置插槽
|
|
// 设置插槽
|
|
|
if (item.type === 'status' && status !== 'all') {
|
|
if (item.type === 'status' && status !== 'all') {
|
|
@@ -64,7 +65,7 @@ const getTableColumns = async () => {
|
|
|
tableData.value.columns = [
|
|
tableData.value.columns = [
|
|
|
{ type: 'checkbox', width: 50, fixed: 'left' },
|
|
{ type: 'checkbox', width: 50, fixed: 'left' },
|
|
|
...handleColumns(res.data.OperationTableColumns),
|
|
...handleColumns(res.data.OperationTableColumns),
|
|
|
- { title: 'Action', width: 102, fixed: 'right', slots: { default: 'action' } }
|
|
|
|
|
|
|
+ { title: 'Action', width: 106, fixed: 'right', slots: { default: 'action' } }
|
|
|
]
|
|
]
|
|
|
tableOriginColumnsField.value = res.data.OperationTableColumns
|
|
tableOriginColumnsField.value = res.data.OperationTableColumns
|
|
|
}
|
|
}
|
|
@@ -160,7 +161,6 @@ const tableData = ref<VxeGridProps<any>>({
|
|
|
columns: [],
|
|
columns: [],
|
|
|
data: [],
|
|
data: [],
|
|
|
scrollY: { enabled: true, oSize: 20, gt: 30 },
|
|
scrollY: { enabled: true, oSize: 20, gt: 30 },
|
|
|
- stripe: true,
|
|
|
|
|
emptyText: ' ',
|
|
emptyText: ' ',
|
|
|
showHeaderOverflow: true,
|
|
showHeaderOverflow: true,
|
|
|
showOverflow: true,
|
|
showOverflow: true,
|
|
@@ -379,7 +379,7 @@ defineExpose({
|
|
|
<!-- action操作栏的插槽 -->
|
|
<!-- action操作栏的插槽 -->
|
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
|
<el-button
|
|
<el-button
|
|
|
- style="height: 24px; padding: 8px 4px; font-size: 12px"
|
|
|
|
|
|
|
+ style="height: 24px; padding: 8px 4px; padding-left: 5px; font-size: 12px"
|
|
|
@click="handleLogDetail(row)"
|
|
@click="handleLogDetail(row)"
|
|
|
>
|
|
>
|
|
|
<span
|
|
<span
|