From 4394a1abcbdac380fc796e9d00b657238b53895e Mon Sep 17 00:00:00 2001 From: Chengliang <1546584672@qq.com> Date: Tue, 6 Sep 2022 09:26:38 +0800 Subject: [PATCH] fixed --- pc4mobx/organization/components/company/company.js | 4 ++-- pc4mobx/organization/components/staff/Staff.js | 11 ++++++++++- pc4mobx/organization/components/staff/StaffScheme.js | 2 +- pc4mobx/organization/public/i18n.js | 1 + pc4mobx/organization/stores/jobextend.js | 2 +- 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/pc4mobx/organization/components/company/company.js b/pc4mobx/organization/components/company/company.js index 6d14e3c..f11bd3b 100644 --- a/pc4mobx/organization/components/company/company.js +++ b/pc4mobx/organization/components/company/company.js @@ -1,7 +1,7 @@ /** * @Author: 程亮 * @Date: 2022-05-18 16:23:32 - * @LastEditTime: 2022-07-06 10:48:30 + * @LastEditTime: 2022-09-05 17:46:05 * @Description: * @FilePath: /trunk/src4js/pc4mobx/organization/components/company/company.js */ @@ -140,7 +140,7 @@ export default class Company extends React.Component { const { company } = this.props; - company.setNeDialogTitle(i18n.label.companyName()); + company.setNeDialogTitle(i18n.label.selectDept()); company.setVisible(true); company.setDialogLoadingStatus(true); company.getDeptTable(id); diff --git a/pc4mobx/organization/components/staff/Staff.js b/pc4mobx/organization/components/staff/Staff.js index 1d2dd36..37fbfd0 100644 --- a/pc4mobx/organization/components/staff/Staff.js +++ b/pc4mobx/organization/components/staff/Staff.js @@ -254,11 +254,20 @@ export default class Staff extends React.Component { inputLeftDom={`${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 { staff @@ -513,7 +522,7 @@ export default class Staff extends React.Component { isFormInit={form.isFormInit} loading={dialogLoading} isEdit={isEdit} - height={250} + height={400} conditionLen={3} save={() => this.handleSave()} onCancel={() => staff.setVisible(false)} diff --git a/pc4mobx/organization/components/staff/StaffScheme.js b/pc4mobx/organization/components/staff/StaffScheme.js index 3f96376..8929728 100644 --- a/pc4mobx/organization/components/staff/StaffScheme.js +++ b/pc4mobx/organization/components/staff/StaffScheme.js @@ -429,7 +429,7 @@ export default class StaffScheme extends React.Component { isFormInit={form.isFormInit} loading={dialogLoading} isEdit={isEdit} - height={250} + height={450} conditionLen={3} save={() => this.handleSave()} onCancel={() => staffScheme.setVisible(false)} diff --git a/pc4mobx/organization/public/i18n.js b/pc4mobx/organization/public/i18n.js index 8adef79..9b4c907 100644 --- a/pc4mobx/organization/public/i18n.js +++ b/pc4mobx/organization/public/i18n.js @@ -152,6 +152,7 @@ export const i18n = { newDept: () => getLabel(386246, '新增部门'), mergeDept:()=> getLabel(386246, '合并部门'), transferDept:()=> getLabel(386246, '转移部门'), + selectDept:()=> getLabel(386246, '联查部门'), editDept:()=> getLabel(386246, '修改部门信息'), typeName: () => getLabel(129927, '类型名称'), ResourceName: () => getLabel(385936, '人员'), diff --git a/pc4mobx/organization/stores/jobextend.js b/pc4mobx/organization/stores/jobextend.js index c64f000..6d24428 100644 --- a/pc4mobx/organization/stores/jobextend.js +++ b/pc4mobx/organization/stores/jobextend.js @@ -139,7 +139,7 @@ export class JobExtendStore { const index1 = findIndex(conditions[1].items, { label }); label = "职等" const index2 = findIndex(conditions[1].items, { label }); - let schemeId = conditions[1].items[1].browserConditionParam.replaceDatas[0].id; + let schemeId = conditions[1].items[1].browserConditionParam.replaceDatas.length > 0 && conditions[1].items[1].browserConditionParam.replaceDatas[0].id; let levelIds = res.data.levelIds; this.rangeLimit(key0,schemeId,index1,currenttime,conditions); this.rangeLimitLevel(key1,key2,index2,levelIds,currenttime,conditions)