diff --git a/src/views/billing/cdrlrecords/index.vue b/src/views/billing/cdrlrecords/index.vue index 92b5ca2..ea088b5 100644 --- a/src/views/billing/cdrlrecords/index.vue +++ b/src/views/billing/cdrlrecords/index.vue @@ -48,6 +48,7 @@ const expandedRowKeys = ref([]); // 处理展开行变化 function handleExpandChange(expanded: boolean, record: CDRRecord) { + console.log('Expanded: ', expanded, 'Record: ', record); if (expanded) { expandedRowKeys.value = [record.id]; } else { @@ -83,7 +84,7 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT pageNum: 1, pageSize: 5, }, - rowKey: 'cdrlrecords', + rowKey: 'id', columns: () => [ { title: t('page.cdrlrecords.devicename'), @@ -109,7 +110,6 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT width: '30%', align: 'right', customRender(opt) { - console.log(opt) const record = opt.value; return formatTraffic(record); }, @@ -152,7 +152,7 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT :loading="loading" :columns="columns" :data-source="data" - :row-key="(record: CDRRecord) => record.id" + row-key="id" :expanded-row-keys="expandedRowKeys" @expand="handleExpandChange" :pagination="mobilePagination" diff --git a/src/views/billing/packagehistories/index.vue b/src/views/billing/packagehistories/index.vue index e3d06d1..1b5c483 100644 --- a/src/views/billing/packagehistories/index.vue +++ b/src/views/billing/packagehistories/index.vue @@ -153,7 +153,7 @@ const { columns, data, loading, getData, mobilePagination, searchParams } = useT pageNum: 1, pageSize: 5, }, - rowKey: 'packageName', + rowKey: 'id', columns: () => [ { title: t('page.packagehistories.orderdate'), @@ -228,7 +228,7 @@ const formatTraffic = (bytes: number): string => {
-