diff --git a/web/client/src/sections/humanAffairs/containers/departmentTrainRecord.jsx b/web/client/src/sections/humanAffairs/containers/departmentTrain/departmentTrainRecord.jsx similarity index 92% rename from web/client/src/sections/humanAffairs/containers/departmentTrainRecord.jsx rename to web/client/src/sections/humanAffairs/containers/departmentTrain/departmentTrainRecord.jsx index 1de4110..6ee954c 100644 --- a/web/client/src/sections/humanAffairs/containers/departmentTrainRecord.jsx +++ b/web/client/src/sections/humanAffairs/containers/departmentTrain/departmentTrainRecord.jsx @@ -15,7 +15,7 @@ const DepartmentTrainRecord = (props) => {
-
部门培训管理
+
部门培训记录
DEPARTMENT TRAIN RECORD
diff --git a/web/client/src/sections/humanAffairs/containers/index.js b/web/client/src/sections/humanAffairs/containers/index.js index 800d487..81893ae 100644 --- a/web/client/src/sections/humanAffairs/containers/index.js +++ b/web/client/src/sections/humanAffairs/containers/index.js @@ -12,7 +12,7 @@ import AppointmentRecords from './appointmentRecords'; import PersonnelDistribution from './salersDistribution/personnelDistribution'; //培训 import ResourceRepository from './resourceRepository'; -import DepartmentTrainRecord from './departmentTrainRecord'; +import DepartmentTrainRecord from './departmentTrain/departmentTrainRecord'; import PersonalTrainRecord from './personalTrainRecord'; //绩效考核 import WeeklyManagement from './weeklyManagement'; 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; + } +}