Commit ec0fa8c4 authored by 皮倩雯's avatar 皮倩雯

fix: '运维工作流节点增加开启挂起开关'

parent 4a754bef
Pipeline #83649 failed with stages
......@@ -386,6 +386,7 @@ const FlowChart = props => {
IsSave: 0,
AutoClose: '否',
HalfwayClose: 0,
IsSuspend: 0,
RollbackNode: '(上一节点)',
Rollbackable: false,
};
......
......@@ -459,6 +459,7 @@ const FlowChart = props => {
IsSave: 0,
AutoClose: '否',
HalfwayClose: 0,
IsSuspend: 0,
RollbackNode: '(上一节点)',
Rollbackable: false,
};
......
......@@ -19,6 +19,7 @@ const ConfigOperate = (props, ref) => {
IsSave,
AutoClose,
HalfwayClose,
IsSuspend,
} = editMsg;
let newBtnAliasNameConfig;
let newHalfwayCloseBtnAliasName;
......@@ -41,6 +42,7 @@ const ConfigOperate = (props, ref) => {
IsSave: IsSave === 1,
AutoClose: AutoClose === '是',
HalfwayClose: HalfwayClose === 1,
IsSuspend: IsSuspend === 1,
};
form.setFieldsValue({ ...editMsg, ...obj });
......@@ -58,6 +60,7 @@ const ConfigOperate = (props, ref) => {
obj.IsSave = obj.Transferable ? 1 : 0;
obj.AutoClose = obj.Transferable ? 1 : 0;
obj.HalfwayClose = obj.Transferable ? 1 : 0;
obj.IsSuspend = obj.Transferable ? 1 : 0;
return obj;
};
// 加载修改流程节点配置允许退回列表
......@@ -93,6 +96,9 @@ const ConfigOperate = (props, ref) => {
case 'HalfwayClose':
value = changedFields[0].value ? 1 : 0;
break;
case 'IsSuspend':
value = changedFields[0].value ? 1 : 0;
break;
default:
value = changedFields[0].value;
}
......@@ -298,6 +304,30 @@ const ConfigOperate = (props, ref) => {
/>
</Form.Item>
</div>
<Form.Item
labelCol={{ span: 5 }}
wrapperCol={{ span: 19 }}
style={{
marginBottom: '0',
padding: '2px',
borderBottom: '1px solid #ccc',
display: editMsg.NodeType === '0' ? 'flex' : 'none',
}}
label={
<div style={{ display: 'flex', alignItems: 'center' }}>
<span>挂起</span>
</div>
}
>
<Form.Item name="IsSuspend" valuePropName="checked" style={{ marginBottom: '0' }}>
<Switch
disabled={editMsg.NodeType === '1'}
checkedChildren="是"
unCheckedChildren="否"
style={{ marginLeft: '190px' }}
/>
</Form.Item>
</Form.Item>
{/* <Form.Item
valuePropName="checked"
style={{ marginBottom: '0', padding: '2px', borderBottom: '1px solid #ccc' }}
......
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