人员简历

This commit is contained in:
Chengliang 2023-01-03 09:31:59 +08:00
parent a9bdbe3d2d
commit 7dfc190df6
4 changed files with 32 additions and 3 deletions

View File

@ -44,7 +44,7 @@
let html = typeof baidu !== 'undefined'?baidu.template(getModelHtml(mhtml,style),data):getModelHtml(mhtml) let html = typeof baidu !== 'undefined'?baidu.template(getModelHtml(mhtml,style),data):getModelHtml(mhtml)
let blob = new Blob([html],{type:'application/msword;charset=utf-8'}) let blob = new Blob([html],{type:'application/msword;charset=utf-8'})
saveAs(blob,filename+'.docx') saveAs(blob,filename+'.doc')
} }
//添加exportWord到全局对象 //添加exportWord到全局对象
window.exportWord = window.exportWord||exportWord window.exportWord = window.exportWord||exportWord

View File

@ -156,7 +156,11 @@ export default class PersonnelResume extends React.Component {
</Select>) </Select>)
topMenu.map((item, i) => { topMenu.map((item, i) => {
btns.push(<Button type='primary' onClick={() => this.handleClick(item)}>{item.menuName}</Button>); if (item.menuFun === 'screening') {
btns.push(<Button id="top-screening" type='primary' onClick={() => this.handleClick(item)}>{item.menuName}</Button>);
}else {
btns.push(<Button type='primary' onClick={() => this.handleClick(item)}>{item.menuName}</Button>);
}
}); });
@ -207,6 +211,16 @@ export default class PersonnelResume extends React.Component {
this[key] && this[key](); this[key] && this[key]();
} }
//人员筛选
screening() {
const {
personnelResume
} = this.props,{
show
} = personnelResume;
personnelResume.show = ! show;
}
//导出当前 //导出当前
currentExport() { currentExport() {
const { const {
@ -244,7 +258,7 @@ export default class PersonnelResume extends React.Component {
personnelResume personnelResume
} = this.props; } = this.props;
const { const {
hasRight, defaultShowLeft, resumeList,percent hasRight, defaultShowLeft, resumeList,percent,show
} = personnelResume; } = personnelResume;
if (hasRight === false) { if (hasRight === false) {
@ -269,6 +283,11 @@ export default class PersonnelResume extends React.Component {
onDropMenuClick={(e) => this.handleMenuClick(e)} onDropMenuClick={(e) => this.handleMenuClick(e)}
> >
<WeaLeftRightLayout ecId={`${this && this.props && this.props.ecId || ''}_WeaLeftRightLayout@7muhhb`} isNew={true} showLeft={defaultShowLeft} leftCom={this.getTree()}> <WeaLeftRightLayout ecId={`${this && this.props && this.props.ecId || ''}_WeaLeftRightLayout@7muhhb`} isNew={true} showLeft={defaultShowLeft} leftCom={this.getTree()}>
{
show && <div className='search-group'>
</div>
}
{ {
!this.isEmptyObject(resumeList) ? <div id='personnel-resume'> !this.isEmptyObject(resumeList) ? <div id='personnel-resume'>
<div className='content'> <div className='content'>

View File

@ -35,6 +35,7 @@ export class PersonnelResumeStore {
@observable resumeList = {}; @observable resumeList = {};
@observable percent = 0; @observable percent = 0;
@observable visible = false; @observable visible = false;
@observable show = false;
// @observable resumeList = { // @observable resumeList = {
// lastName: '徐凤年', // lastName: '徐凤年',
// sex: '男', // sex: '男',

View File

@ -28,4 +28,13 @@
} }
} }
} }
}
.search-group{
width: 420px;
height: 200px;
position: absolute;
left: 44%;
box-shadow: 2px 2px 10px #909090;
background-color: #FFFFFF;
} }