From fb64bcf1fab18b33d21470c83f28d4cda8d309ce Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期三, 26 十月 2022 12:15:59 +0800 Subject: [PATCH] 2022-10-26 --- src/views/billprint/index.jsx | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/views/billprint/index.jsx b/src/views/billprint/index.jsx index c64ce5d..4d32fa7 100644 --- a/src/views/billprint/index.jsx +++ b/src/views/billprint/index.jsx @@ -262,7 +262,11 @@ if (component.search) component.search = [] component.data = [] // 鍒濆鍖栨暟鎹负绌� - if (component.type === 'table' && component.subtype === 'normaltable') { + if (component.subtype === 'tablecard') { // 鍏煎 + component.type = 'card' + } + + if (component.type === 'table') { let getColumns = (cols) => { return cols.map(item => { if (item.type === 'colspan') { @@ -720,7 +724,7 @@ <PropCard config={item} initdata={item.data} mainSearch={[]} /> </Col> ) - } else if (item.type === 'table' && item.subtype === 'tablecard') { + } else if (item.type === 'card' && item.subtype === 'tablecard') { return ( <Col span={item.width} key={item.uuid}> <TableCard config={item} initdata={item.data} mainSearch={[]}/> -- Gitblit v1.8.0