diff --git a/src/components/Detail/src/Detail.vue b/src/components/Detail/src/Detail.vue
index b868140a6..cf1629dde 100644
--- a/src/components/Detail/src/Detail.vue
+++ b/src/components/Detail/src/Detail.vue
@@ -13,7 +13,15 @@
-
-
-
@@ -62,6 +65,18 @@ const props = defineProps({
required: true,
default: null
},
+ // 明细列表相关信息
+ detailAllSchemas: {
+ type: Object,
+ required: true,
+ default: null
+ },
+ // 主表API
+ detailApi: {
+ type: Object,
+ required: true,
+ default: null
+ }
})
const isShowDrawer = ref(false)
@@ -170,6 +185,7 @@ const openDetail = async (row: any, titleName: any, titleValue: any, tableName:
tableId: row.id,
tableName: tableName,
}
+ getList() // 加载明细列表
isShowDrawer.value = true
if (row) {
detailLoading.value = true
@@ -206,6 +222,13 @@ const getChangeRecordList = async () => {
changeRecordData.changeRecordList = await DetailApi.getChangeRecordPage(remarksData.data)
}
+
+const { tableObject, tableMethods } = useTable({
+ getListApi: props.detailApi?.getDetasListPage // 在主表API中添加根据主表ID获取明细列表分页方法
+})
+// 获得表格的各种操作
+const { getList } = tableMethods
+