${i18n.label.organization()}`}
treeNodeClick={this.treeNodeClick}
expandAllChildrenOnSearch={true}
renderNode={item => this.renderNode(item)}
/>
)
return tree;
}
renderNode(item) {
return
{item.name}
{item.canceled && ({i18n.label.forbidden()})}
}
treeNodeClick = (event, ids, nodeids, nodes) => {
const {
job
} = this.props;
const {
form,
companysId
} = job;
const type = event.node.props.type || '0';
const id = event.node.props.id || '';
let params = {};
form.resetConditionValue();
job.setPanelStatus(false)
// job.tabkey = 'default_3';
job.nodeType = type;
if (type == '0') {
params['virtualtype'] = companysId;
}
if (type == '1') {
params['subcompanyid1'] = id;
}
if (type == '2') {
params['departmentid'] = id;
}
job.doSearch(params);
}
log = () => {
window.setLogViewProp({
logMoudleType: 10,
keys: new Date().getTime(),
});
}
render() {
const {
job
} = this.props;
const {
isPanelShow, jobTitleName, conditionNum, visible, condition, form,
tableStore, dataSource, columns, loading, date, nEdialogTitle, dialogLoading,
form1, isEdit, newVisible, selectedRowKeys, total, current, pageSize, init,
defaultShowLeft, form2, hasRight, jobtitleVisible
} = job;
if (hasRight === false) {
return renderNoright();
}
const rowSelection = {
selectedRowKeys: selectedRowKeys,
onChange(selectedRowKeys, selectedRows) {
job.setSelectedRowKeys(selectedRowKeys);
},
getCheckboxProps: record => ({
disabled: record.isUsed === 1, // 配置无法勾选的列
}),
};
const pagination = {
current: current,
pageSize: pageSize,
total: total,
showSizeChanger: true,
showQuickJumper: true,
onShowSizeChange(current, pageSize) {
},
onChange(current) {
},
showTotal(total) {
return `${i18n.label.total()} ${total} ${i18n.label.items()}`
}
};
return (
hasRight &&
this.handleMenuClick(key)}
>
}
iconBgcolor='#217346'
loading={true}
buttons={this.getTopMenuBtns()}
showDropIcon={true}
dropMenuDatas={this.getDropMenuDatas()}
onDropMenuClick={(e) => this.handleMenuClick(e)}
>
job.setPanelStatus(bool)}
hideSearchAd={() => job.setPanelStatus(false)}
searchsAd={isPanelShow ? this.getPanelComponents() : }
advanceHeight={Math.ceil(conditionNum / 2) * 52 + 20}
hasMask={false}
buttonsAd={this.getTabBtn()}
onSearch={() => {
job.setCurrent(1);
job.setPageSize(10);
job.getTableInfo()
}}
onSearchChange={val => this.onSearchChange(val)}
/>
{
init ?
:
record.id} ecId={`${this && this.props && this.props.ecId || ''}_WeaTable@pgmg3x`}
loading={loading}
dataSource={dataSource} childrenColumnName="children"
columns={this.reRenderColumns(columns)}
rowSelection={rowSelection}
pagination={pagination}
onChange={(pagination, filters, sorter) => {
job.setSortParams(sorter);
job.setCurrent(pagination.current);
job.setPageSize(pagination.pageSize);
job.getTableInfo();
}}
indentSize={15}
/>
}
job.setVisible(false)}
/>
this.handleSave()}
onCancel={() => job.setNewVisible(false)}
saveAndSetting={() => this.handleSaveAndSetting()}
moduleName={"job"}
/>
job.jobtitleVisible = false}
icon='icon-coms-hrm'
iconBgcolor='#217346'
title={"添加岗位"}
hasScroll={true}
callback={
datas => {
const {
id,
jobtitlemark
} = datas;
form1.updateFields({
ec_jobTitle: {
value: id,
valueSpan: jobtitlemark,
valueObj: [{
id,
name: jobtitlemark
}]
}
});
job.jobtitleVisible = false;
}
}
url={'/spa/hrm/engine.html#/hrmengine/posts?type=0'}
visible={jobtitleVisible}
style={{ width: 600, height: 500 }}
/>
)
}
}