diff --git a/pc4mobx/hrmSalary/pages/calculate/index.less b/pc4mobx/hrmSalary/pages/calculate/index.less index 98cfc21f..699c416f 100644 --- a/pc4mobx/hrmSalary/pages/calculate/index.less +++ b/pc4mobx/hrmSalary/pages/calculate/index.less @@ -86,7 +86,7 @@ display: none; } - td { + td:not(.ant-table-selection-column) { span { width: 100%; overflow: hidden; diff --git a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js index 3e50d8ad..efda13dd 100644 --- a/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js +++ b/pc4mobx/hrmSalary/pages/ruleConfig/ruleConfig.js @@ -38,7 +38,8 @@ class RuleConfig extends Component { const optionsList = { matchRule, orderRule, ascOrDesc, rule }; this.setState({ sysinfo, conditions: _.map(conditions, item => ({ - ...item, items: _.map(item.items, o => { + ...item, + items: _.map(item.items, o => { if (getKey(o) === "matchRule" || getKey(o) === "orderRule" || getKey(o) === "ascOrDesc" || getKey(o) === "rule") { return { ...o, options: _.map(optionsList[getKey(o)], g => ({ key: g.value, showname: g.defaultLabel })) }; } else if (getKey(o) === "OPEN_APPLICATION_ENCRYPT") { @@ -70,6 +71,8 @@ class RuleConfig extends Component { form.updateFields({ [item]: { value: sysinfo["taxDeclarationFunction"] === "0" ? "0" : "1" } }); } else if (item === "taxAgentShowStatus" || item === "salaryShowStatus" || item === "adjustShowStatus") { form.updateFields({ [item]: { value: sysinfo[item] || "1" } }); + } else if (item === "OPEN_APPLICATION_ENCRYPT") { + form.updateFields({ [item]: { value: _.isNil(sysinfo[item]) ? "1" : (sysinfo[item] || "") } }); } else { form.updateFields({ [item]: { value: sysinfo[item] || "" } }); } @@ -297,13 +300,15 @@ class RuleConfig extends Component { render() { const { baseFormStore: { form } } = this.props; - const { conditions, progressVisible, progress } = this.state; + const { conditions, progressVisible, progress, sysinfo } = this.state; + const ruleConditions = sysinfo.showEncryptOperationButton === "true" ? conditions : + _.filter(conditions, o => o.title !== getLabel(543358, "加密规则")); return ( {getLabel(543355, "规则配置")}} icon={} iconBgcolor="#F14A2D" buttons={[]} className="ruleWrapper-layout" > -
{renderRuleForm(form, conditions, this.handleChange)}
+
{renderRuleForm(form, ruleConditions, this.handleChange)}
{/*加解密进度条*/} { progressVisible &&