| | |
| | | const detailRef = ref<InstanceType<typeof Detail>>(); |
| | | |
| | | function handleDetail(row: MesPdArchiveApi.Archive) { |
| | | detailRef.value?.open(row.id!); |
| | | detailRef.value?.open(row.productCode!); |
| | | } |
| | | |
| | | async function handleExport() { |
| | | const data = await exportPdArchive(await gridApi.formApi.getValues()); |
| | | downloadFileFromBlobPart({ fileName: '设计归档台账.xls', source: data }); |
| | | downloadFileFromBlobPart({ fileName: '归档台账.xls', source: data }); |
| | | } |
| | | |
| | | const [Grid, gridApi] = useVbenVxeGrid({ |
| | |
| | | <Page auto-content-height> |
| | | <Detail ref="detailRef" /> |
| | | |
| | | <Grid table-title="产品版本归档台账"> |
| | | <Grid table-title="归档台账"> |
| | | <template #toolbar-tools> |
| | | <TableAction |
| | | :actions="[ |
| | |
| | | ]" |
| | | /> |
| | | </template> |
| | | <template #code="{ row }"> |
| | | <Button type="link" @click="handleDetail(row)">{{ row.code }}</Button> |
| | | <template #archiveCode="{ row }"> |
| | | <Button type="link" @click="handleDetail(row)">{{ row.archiveCode }}</Button> |
| | | </template> |
| | | </Grid> |
| | | </Page> |