Commit 2c7b390f by zhaochengxiang

主数据管理

parent 53357dba
......@@ -148,6 +148,113 @@ export const attrs = [
'attr6',
];
export const treeData1 = [
{
title: 'parent 1',
key: '0-0',
children: [
{
title: 'parent 1-0',
key: '0-0-0',
children: [
{
title: 'leaf1',
key: '0-0-0-0',
children: [
{
title: '模版1',
key: '0-0-0-0-0',
},
{
title: '模版2',
key: '0-0-0-0-1',
},
{
title: '模版3',
key: '0-0-0-0-3',
},
]
},
{
title: 'leaf2',
key: '0-0-0-1',
},
{
title: 'leaf3',
key: '0-0-0-2',
},
],
},
{
title: 'parent 1-1',
key: '0-0-1',
children: [
{
title: 'leaf',
key: '0-0-1-0',
},
],
},
{
title: 'parent 1-2',
key: '0-0-2',
children: [
{
title: 'leaf1',
key: '0-0-2-0',
},
{
title: 'leaf2',
key: '0-0-2-1',
},
],
},
{
title: 'parent 1-3',
key: '0-0-3',
children: [
{
title: 'leaf1',
key: '0-0-3-0',
},
{
title: 'leaf2',
key: '0-0-3-1',
},
],
},
{
title: 'parent 1-4',
key: '0-0-4',
children: [
{
title: 'leaf1',
key: '0-0-4-0',
},
{
title: 'leaf2',
key: '0-0-4-1',
},
],
},
{
title: 'parent 1-5',
key: '0-0-5',
children: [
{
title: 'leaf1',
key: '0-0-5-0',
},
{
title: 'leaf2',
key: '0-0-5-1',
},
],
},
],
},
];
export const expandedTableData = [
{
id: '1',
......
......@@ -127,7 +127,7 @@ const ManageTable = (props) => {
</Space>
</Space>
<InputDebounce
placeholder="通过主数据模版名称搜索"
placeholder="通过主数据名称搜索"
allowClear
value={keyword}
onChange={onSearchInputChange}
......
......@@ -3,7 +3,7 @@ import {Tooltip, Spin, AutoComplete, Tree} from 'antd';
import {PlusOutlined, ReloadOutlined} from '@ant-design/icons';
import {highlightSearchContentByTerms} from '../../../../../util';
import {treeData} from '../../Define/Component/Mock';
import {treeData1} from '../../Define/Component/Mock';
import '../../Define/Component/DefineTree.less';
......@@ -40,11 +40,11 @@ const ManageTree = (props) => {
};
const newTreeList = [];
generateList(treeData, newTreeList);
generateList(treeData1, newTreeList);
return newTreeList;
//eslint-disable-next-line react-hooks/exhaustive-deps
}, [treeData])
}, [treeData1])
const onAddClick = () => {
......@@ -140,7 +140,7 @@ const ManageTree = (props) => {
showLine
showIcon={false}
autoExpandParent={autoExpandParent}
treeData={treeData}
treeData={treeData1}
onExpand={onTreeExpand}
onSelect={onTreeSelect}
expandedKeys={expandedKeys}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment