diff --git a/src/api/configManage/configParam.ts b/src/api/configManage/configParam.ts index 6fd06ea0..fa206d44 100644 --- a/src/api/configManage/configParam.ts +++ b/src/api/configManage/configParam.ts @@ -261,6 +261,7 @@ export async function getParamConfigInfo( title: rule.display, dataIndex: rule.name, align: 'left', + width: 5, }); } result.data.columns = columns; diff --git a/src/views/configManage/configParam/index.vue b/src/views/configManage/configParam/index.vue index aaa0d329..0339c608 100644 --- a/src/views/configManage/configParam/index.vue +++ b/src/views/configManage/configParam/index.vue @@ -69,6 +69,8 @@ function fnTabActiveTopTag(key: string | number) { title: t('common.operate'), key: 'index', align: 'left', + fixed: 'right', + width: 5, }); } } else { @@ -578,6 +580,7 @@ function arrayChildExpand(key: Record, row: Record) { title: rule.display, dataIndex: rule.name, align: 'left', + width: 5, }); } tableState.arrayChildColumns = columns; @@ -585,6 +588,8 @@ function arrayChildExpand(key: Record, row: Record) { title: t('common.operate'), key: 'index', align: 'left', + fixed: 'right', + width: 5, }); // 设置展开key @@ -1217,7 +1222,7 @@ onMounted(() => { :size="tableState.size" :pagination="false" :bordered="true" - :scroll="{ x: true }" + :scroll="{ x: tableState.arrayColumns.length * 200, y: 450 }" :show-expand-column="false" v-model:expanded-row-keys="tableState.arrayChildExpandKeys" > @@ -1373,7 +1378,10 @@ onMounted(() => { :size="tableState.size" :pagination="false" :bordered="true" - :scroll="{ x: true }" + :scroll="{ + x: tableState.arrayChildColumns.length * 200, + y: 450, + }" >