|
@@ -14,8 +14,10 @@
|
|
|
rowKey="key"
|
|
rowKey="key"
|
|
|
:data-source="tableList">
|
|
:data-source="tableList">
|
|
|
<!-- 额外的展开行 -->
|
|
<!-- 额外的展开行 -->
|
|
|
- <template #expandedRowRender="{ }">
|
|
|
|
|
- <BtnList :btnList="forDataBtn" />
|
|
|
|
|
|
|
+ <template #expandedRowRender="{ record }">
|
|
|
|
|
+ <BtnList :selectedData="record"
|
|
|
|
|
+ :btnList="forDataBtn"
|
|
|
|
|
+ @onClick="btnClick" />
|
|
|
</template>
|
|
</template>
|
|
|
<template #warehousetype="{ text }">
|
|
<template #warehousetype="{ text }">
|
|
|
<span>{{ getWareHouseTypeName(text) }}</span>
|
|
<span>{{ getWareHouseTypeName(text) }}</span>
|
|
@@ -60,7 +62,7 @@ export default defineComponent({
|
|
|
// 表头数据
|
|
// 表头数据
|
|
|
const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
const { columns, registerColumn, updateColumn, filteredInfo } = getTableColumns();
|
|
|
// 表格事件
|
|
// 表格事件
|
|
|
- const { expandedRowKeys, selectedRow, Rowclick } = getTableEvent<ErmcpWareHouseInfo>({});
|
|
|
|
|
|
|
+ const { expandedRowKeys, selectedRow, Rowclick, btnClick } = getTableEvent<ErmcpWareHouseInfo>({});
|
|
|
// 表格操作按钮列表
|
|
// 表格操作按钮列表
|
|
|
const { commonBtn, forDataBtn } = getBtnList('warehouse_info_normal', true);
|
|
const { commonBtn, forDataBtn } = getBtnList('warehouse_info_normal', true);
|
|
|
// 表格列表数据
|
|
// 表格列表数据
|
|
@@ -93,6 +95,7 @@ export default defineComponent({
|
|
|
getWareHouseTypeName,
|
|
getWareHouseTypeName,
|
|
|
gerWareHouseStatusName,
|
|
gerWareHouseStatusName,
|
|
|
queryTable,
|
|
queryTable,
|
|
|
|
|
+ btnClick,
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
});
|
|
});
|