| | |
| | | const route = currentRoute.value |
| | | data.value.printList = JSON.parse(route.query.printList) |
| | | let flowCardCount=data.value.printList.length |
| | | console.log(flowCardCount) |
| | | onMounted(() => { |
| | | // if (id === null || id === undefined || id === '') { |
| | | // return |
| | |
| | | if (res.code == 200) { |
| | | |
| | | produceList.value = deepClone(res.data.data) |
| | | console.log(produceList.value) |
| | | |
| | | } else { |
| | | ElMessage.warning(res.msg) |
| | |
| | | } |
| | | |
| | | |
| | | footer {page-break-after: always;} |
| | | /* 在 .footer 元素后始终插入分页符 */ |
| | | @media print { |
| | | #contentTable {page-break-after: always;} |
| | | } |
| | | |
| | | tbody{display:table-row-group;} |
| | | |
| | | table { page-break-inside:auto; } |
| | | tr { page-break-inside:avoid; } |
| | | td { page-break-inside:avoid; } |
| | | thead { display:table-header-group; } |
| | | thead { display:table-header-group;page-break-inside:avoid; } |
| | | tbody { display:table-row-group;} |
| | | tfoot { display:table-footer-group;page-break-inside:avoid; } |
| | | |
| | | |