From a181fc113d024ed34d6b488c65882961bd1de3f4 Mon Sep 17 00:00:00 2001 From: king <18310653075@163.com> Date: 星期二, 02 六月 2020 19:00:57 +0800 Subject: [PATCH] 2020-06-02 --- src/components/tabview/index.jsx | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/components/tabview/index.jsx b/src/components/tabview/index.jsx index 2637efe..25a6af6 100644 --- a/src/components/tabview/index.jsx +++ b/src/components/tabview/index.jsx @@ -18,6 +18,7 @@ const Home = asyncComponent(() => import('@/tabviews/home')) const CommonTable = asyncComponent(() => import('@/tabviews/commontable')) +const TreePage = asyncComponent(() => import('@/tabviews/treepage')) const VerupTable = asyncComponent(() => import('@/tabviews/verupmanage')) const ScriptTable = asyncComponent(() => import('@/tabviews/scriptmanage')) const TabManage = asyncComponent(() => import('@/tabviews/tabmanage')) @@ -102,6 +103,8 @@ return (<Home MenuNo={view.MenuNo} MenuID={view.MenuID} MenuName={view.MenuName} key={view.MenuID}/>) } else if (view.type === 'CommonTable') { return (<CommonTable MenuNo={view.MenuNo} MenuID={view.MenuID} MenuName={view.MenuName} key={view.MenuID} param={view.param}/>) + } else if (view.type === 'TreePage') { + return (<TreePage MenuNo={view.MenuNo} MenuID={view.MenuID} MenuName={view.MenuName} key={view.MenuID}/>) } else if (view.type === 'VerupTable') { return (<VerupTable MenuNo={view.MenuNo} MenuID={view.MenuID} MenuName={view.MenuName} key={view.MenuID}/>) } else if (view.type === 'ScriptTable') { @@ -210,7 +213,7 @@ className="test" tab={ <span className="tab-control"> - {['CommonTable', 'FormTab'].includes(view.type) ? + {['CommonTable', 'FormTab', 'TreePage'].includes(view.type) ? <Icon type="redo" onClick={(e) => {this.refreshTabview(e, view)}}/> : null } <span className="tab-name" onClick={(e) => {this.changeTab(e, view)}}> @@ -224,7 +227,7 @@ key={view.MenuID} > {this.selectcomponent(view)} - {view.type !== 'CommonTable' && view.type !== 'ManageTable' ? + {!['CommonTable', 'TreePage', 'ManageTable'].includes(view.type) ? <Button icon="copy" shape="circle" -- Gitblit v1.8.0