diff --git a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx index d822a8e..fc5f43e 100644 --- a/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx +++ b/web/client/src/sections/humanAffairs/containers/resourceRepository.jsx @@ -1,10 +1,114 @@ import React, { useEffect, useState } from 'react'; import { connect } from 'react-redux'; -import Empty from '../components/empty'; +import { Button, Col, Row, Input, Tree, Space } from '@douyinfe/semi-ui'; +import { IconSearch } from '@douyinfe/semi-icons'; import '../style.less' const ResourceRepository = (props) => { - const { dispatch, actions } = props + const { dispatch, actions } = props; + const treeData = [ + { + label: '亚洲', + value: 'Asia', + key: '0', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + }, + { + label: '北美洲', + value: 'North America', + key: '1', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + }, { + label: '亚洲', + value: 'Asia', + key: '3', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + }, + { + label: '北美洲', + value: 'North America', + key: '4', + children: [ + { + label: '中国', + value: 'China', + key: '0-0', + children: [ + { + label: '北京', + value: 'Beijing', + key: '0-0-0', + }, + { + label: '上海', + value: 'Shanghai', + key: '0-0-1', + }, + ], + }, + ], + } + ]; + + const style = { + width: 260, + height: 420, + border: '1px solid var(--semi-color-border)' + }; return ( <> @@ -24,7 +128,35 @@ const ResourceRepository = (props) => {
RESOURCE REPOSITORY
- + + {/* 左侧 */} + + +
+ } showClear placeholder="请输入"> + + + {/* 右侧内容 */} + + + + + + 当前文件夹:公司培训资源/人力资源部2/2022-11 + + + + } showClear placeholder="文件名称、更新时间"> + + + +
+ +
@@ -36,6 +168,7 @@ function mapStateToProps(state) { return { user: auth.user, actions: global.actions, + clientHeight: global.clientHeight, }; } diff --git a/web/client/src/sections/humanAffairs/style.less b/web/client/src/sections/humanAffairs/style.less index a1290ea..e4bf3ca 100644 --- a/web/client/src/sections/humanAffairs/style.less +++ b/web/client/src/sections/humanAffairs/style.less @@ -7,3 +7,15 @@ } } } +.resourceRepository{ + margin-top: 20px; + .semi-button{ + margin-bottom: 20px; + } + .semi-input-wrapper{ + width: 260px; + } + .semi-tree-wrapper{ + margin-top: 20px; + } +}