Archer_cdm 2 years ago
parent
commit
0df50ac9e5
  1. 2
      web/client/src/sections/humanAffairs/containers/departmentTrain/departmentTrainRecord.jsx
  2. 2
      web/client/src/sections/humanAffairs/containers/index.js
  3. 139
      web/client/src/sections/humanAffairs/containers/resourceRepository.jsx
  4. 12
      web/client/src/sections/humanAffairs/style.less

2
web/client/src/sections/humanAffairs/containers/departmentTrainRecord.jsx → web/client/src/sections/humanAffairs/containers/departmentTrain/departmentTrainRecord.jsx

@ -15,7 +15,7 @@ const DepartmentTrainRecord = (props) => {
<div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}> <div style={{ display: 'flex', alignItems: 'center', justifyContent: 'space-between' }}>
<div style={{ display: 'flex', alignItems: 'baseline' }}> <div style={{ display: 'flex', alignItems: 'baseline' }}>
<div style={{ width: 0, height: 20, borderLeft: '3px solid #0F7EFB', borderTop: '3px solid transparent', borderBottom: '3px solid transparent' }}></div> <div style={{ width: 0, height: 20, borderLeft: '3px solid #0F7EFB', borderTop: '3px solid transparent', borderBottom: '3px solid transparent' }}></div>
<div style={{ fontFamily: "YouSheBiaoTiHei", fontSize: 24, color: '#033C9A', marginLeft: 8 }}>部门培训管理</div> <div style={{ fontFamily: "YouSheBiaoTiHei", fontSize: 24, color: '#033C9A', marginLeft: 8 }}>部门培训记录</div>
<div style={{ marginLeft: 6, fontSize: 12, color: '#969799', fontFamily: "DINExp", }}>DEPARTMENT TRAIN RECORD</div> <div style={{ marginLeft: 6, fontSize: 12, color: '#969799', fontFamily: "DINExp", }}>DEPARTMENT TRAIN RECORD</div>
</div> </div>
</div> </div>

2
web/client/src/sections/humanAffairs/containers/index.js

@ -12,7 +12,7 @@ import AppointmentRecords from './appointmentRecords';
import PersonnelDistribution from './salersDistribution/personnelDistribution'; import PersonnelDistribution from './salersDistribution/personnelDistribution';
//培训 //培训
import ResourceRepository from './resourceRepository'; import ResourceRepository from './resourceRepository';
import DepartmentTrainRecord from './departmentTrainRecord'; import DepartmentTrainRecord from './departmentTrain/departmentTrainRecord';
import PersonalTrainRecord from './personalTrainRecord'; import PersonalTrainRecord from './personalTrainRecord';
//绩效考核 //绩效考核
import WeeklyManagement from './weeklyManagement'; import WeeklyManagement from './weeklyManagement';

139
web/client/src/sections/humanAffairs/containers/resourceRepository.jsx

@ -1,10 +1,114 @@
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux'; 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' import '../style.less'
const ResourceRepository = (props) => { 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 ( return (
<> <>
@ -24,7 +128,35 @@ const ResourceRepository = (props) => {
<div style={{ marginLeft: 6, fontSize: 12, color: '#969799', fontFamily: "DINExp", }}>RESOURCE REPOSITORY</div> <div style={{ marginLeft: 6, fontSize: 12, color: '#969799', fontFamily: "DINExp", }}>RESOURCE REPOSITORY</div>
</div> </div>
</div> </div>
<Empty /> <Row className='resourceRepository'>
{/* 左侧 */}
<Col span={6}>
<Button theme='solid' type='primary' >新建文件夹</Button>
<br />
<Input suffix={<IconSearch />} showClear placeholder="请输入"></Input>
<Tree
treeData={treeData}
defaultExpandAll
style={style}
/>
</Col>
{/* 右侧内容 */}
<Col span={18}>
<Row gutter={16}>
<Col span={12}>
<Space>
<Button theme='solid' type='primary' >上传文件</Button>
<span><strong>当前文件夹公司培训资源/人力资源部2/2022-11</strong></span>
</Space>
</Col>
<Col span={12} justify="end">
<Input suffix={<IconSearch />} showClear placeholder="文件名称、更新时间"></Input>
</Col>
</Row>
<br />
</Col>
</Row>
</div> </div>
</div> </div>
</> </>
@ -36,6 +168,7 @@ function mapStateToProps(state) {
return { return {
user: auth.user, user: auth.user,
actions: global.actions, actions: global.actions,
clientHeight: global.clientHeight,
}; };
} }

12
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;
}
}

Loading…
Cancel
Save