Commit 375e6a1b by Jaxon

fix(商品上架): 调整表格列宽和操作列固定属性

- 将业务场景列宽度从150px增加到180px以显示完整内容
- 在货架产品表格中设置操作列不固定并增加垂直内边距

feat(d2-table): 修改d2-table组件操作列的fixed属性为动态配置,避免固定右侧时影响布局
1 parent 14a1615a
......@@ -296,7 +296,7 @@
</template>
<el-table-column v-if="tableParams.tableOption"
:align="tableParams.tableOption.align || 'center'"
fixed="right"
:fixed="tableParams.tableOption.fixed || 'right'"
label="操作"
:width="tableParams.tableOption.width || 'auto'">
<template #default="scope">
......
......@@ -31,7 +31,7 @@
</d2-table-header>
<d2-table ref="tableRef" v-bind="table">
<template #auth-button="{ scope }">
<div>
<div style="padding:21px 0">
<!-- 查看 handleDetail -->
<span style="margin-right: 10px">
<auth-button :data="scope" :show-btn-ids="['9031803']" />
......@@ -88,7 +88,7 @@ export default {
tableParams: {
btnId: nanoid(),
listName: "list",
tableOption: { width: "170" },
tableOption: { width: "170", fixed: false },
// shelManageTableColumn
tableColumns: shelfProductTableColumn,
},
......
......@@ -65,7 +65,7 @@ export const shelfProductTableColumn = [
{
label: "业务场景",
prop: "baseSceneCode",
width: "150px",
width: "180px",
formatter: (row) => {
return sceneTypeOptions.find(item => item.value === row.baseSceneCode)?.label || "-";
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!