Commit 4f4e6a67 authored by 田翔's avatar 田翔

fix: 增加动态承办人配置

parent 2f35fec8
Pipeline #93649 passed with stages
......@@ -15,6 +15,7 @@ const ConfigCopyPerson = (props, ref) => {
const { nodeChage, editMsg, flowID, flowData } = props;
const [showPersonSelect, setShowPersonSelect] = useState(false); // 是否显示人员选择器
const TurnOnCc = useRef(0);
const IsDynamicDefaultUser = useRef(0)
const [fieldList, setFieldList] = useState([]); // 当规则字段
const [ruleIndex, setRuleIndex] = useState(); // 编辑当前规则索引
const allFieldList = useRef([]); // 所有字段列表
......@@ -34,6 +35,7 @@ const ConfigCopyPerson = (props, ref) => {
allFieldList.current = [];
talbeList.current = [];
TurnOnCc.current = 0;
IsDynamicDefaultUser.current = editMsg.IsDynamicDefaultUser || 0
TurnOnCc.current = editMsg.TurnOnCc;
RuleList.current = editMsg.CCRuleList || [];
// 获取表数据
......@@ -72,6 +74,16 @@ const ConfigCopyPerson = (props, ref) => {
setFlag(flag + 1);
};
const onChangeDefaultUser = e => {
if (e) {
IsDynamicDefaultUser.current = 1;
} else {
IsDynamicDefaultUser.current = 0;
}
nodeChage('IsDynamicDefaultUser', IsDynamicDefaultUser.current);
setFlag(flag + 1);
};
// 规则回填
const saveRule = e => {
let list = JSON.parse(JSON.stringify(RuleList.current));
......@@ -246,6 +258,17 @@ const ConfigCopyPerson = (props, ref) => {
当开启”允许抄送“后,本节点具备抄送功能: 配置不同的抄送规则,可抄送给指定人员;
当不配置规则的时候,则默认本届点任何办理操作都会抄送给指定人员。
</div>
<div style={{ display: 'flex', justifyContent: 'right', marginBottom: '12px' }}>
是否动态承办人
<Switch
style={{ marginLeft: '5px' }}
checked={IsDynamicDefaultUser.current !== 0}
onChange={onChangeDefaultUser}
/>
</div>
<div className={styles.titleBox}>
说明:开启动态承办人后当前角色里所有人都是承办人
</div>
<div
className={styles.btnAddRule}
onClick={addRule}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment