From a7938fbc431502c0a631f188b6e8d7ae5e67a3d1 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期四, 06 一月 2022 18:27:07 +0800 Subject: [PATCH] 2022-01-06 --- src/views/billprint/index.jsx | 28 +++++++++++++++++++++------- 1 files changed, 21 insertions(+), 7 deletions(-) diff --git a/src/views/billprint/index.jsx b/src/views/billprint/index.jsx index 7307a3d..a3764b8 100644 --- a/src/views/billprint/index.jsx +++ b/src/views/billprint/index.jsx @@ -17,12 +17,14 @@ // 閫氱敤缁勪欢 const AntvBarAndLine = asyncComponent(() => import('@/tabviews/custom/components/chart/antv-bar-line')) const AntvPie = asyncComponent(() => import('@/tabviews/custom/components/chart/antv-pie')) +const AntvDashboard = asyncComponent(() => import('@/tabviews/custom/components/chart/antv-dashboard')) +const AntvScatter = asyncComponent(() => import('@/tabviews/custom/components/chart/antv-scatter')) const DataCard = asyncComponent(() => import('@/tabviews/custom/components/card/data-card')) const PropCard = asyncComponent(() => import('@/tabviews/custom/components/card/prop-card')) const TableCard = asyncComponent(() => import('@/tabviews/custom/components/card/table-card')) const NormalTable = asyncComponent(() => import('@/tabviews/custom/components/table/normal-table')) -const BraftEditor = asyncComponent(() => import('@/tabviews/custom/components/editor/braft-editor')) const SandBox = asyncComponent(() => import('@/tabviews/custom/components/code/sand-box')) +const TimeLine = asyncComponent(() => import('@/tabviews/custom/components/timeline/normal-timeline')) class BillPrint extends Component { state = { @@ -591,6 +593,18 @@ <AntvPie config={item} initdata={item.data} mainSearch={[]} menuType="" /> </Col> ) + } else if (item.type === 'scatter') { + return ( + <Col span={item.width} key={item.uuid}> + <AntvScatter config={item} initdata={item.data} mainSearch={[]} menuType="" /> + </Col> + ) + } else if (item.type === 'dashboard') { + return ( + <Col span={item.width} key={item.uuid}> + <AntvDashboard config={item} initdata={item.data} mainSearch={[]} menuType="" /> + </Col> + ) } else if (item.type === 'card' && item.subtype === 'datacard') { return ( <Col span={item.width} key={item.uuid}> @@ -615,18 +629,18 @@ <NormalTable config={item} initdata={item.data} mainSearch={[]} menuType="" /> </Col> ) - } else if (item.type === 'editor') { - return ( - <Col span={item.width} key={item.uuid}> - <BraftEditor config={item} initdata={item.data} mainSearch={[]} menuType="" /> - </Col> - ) } else if (item.type === 'code') { return ( <Col span={item.width} key={item.uuid}> <SandBox config={item} initdata={item.data} mainSearch={[]} menuType="" /> </Col> ) + } else if (item.type === 'timeline') { + return ( + <Col span={item.width} key={item.uuid}> + <TimeLine config={item} initdata={item.data} menuType="" /> + </Col> + ) } else { return null } -- Gitblit v1.8.0