Commit 079d1ff5 authored by 皮倩雯's avatar 皮倩雯

fix: '开始节点移交禁用'

parent 259dd299
Pipeline #63185 passed with stages
...@@ -43,6 +43,7 @@ const NodeEdit = props => { ...@@ -43,6 +43,7 @@ const NodeEdit = props => {
const [visibleChecked2, setVisibleChecked2] = useState(true); const [visibleChecked2, setVisibleChecked2] = useState(true);
const [visibleChecked3, setVisibleChecked3] = useState(false); const [visibleChecked3, setVisibleChecked3] = useState(false);
const [autoClose, setAutoClose] = useState(false); const [autoClose, setAutoClose] = useState(false);
const [transfer, setTransfer] = useState(false);
const [form] = Form.useForm(); const [form] = Form.useForm();
useEffect(() => { useEffect(() => {
...@@ -61,6 +62,7 @@ const NodeEdit = props => { ...@@ -61,6 +62,7 @@ const NodeEdit = props => {
setVisibleChecked1(false); setVisibleChecked1(false);
setVisibleChecked2(false); setVisibleChecked2(false);
setVisibleChecked3(false); setVisibleChecked3(false);
setTransfer(false);
} }
}, [visible]); }, [visible]);
// 获取表单回显 // 获取表单回显
...@@ -80,6 +82,11 @@ const NodeEdit = props => { ...@@ -80,6 +82,11 @@ const NodeEdit = props => {
} else { } else {
setAutoClose(false); setAutoClose(false);
} }
if (res.data.Type == 1) {
setTransfer(true);
} else {
setTransfer(false);
}
let obj = { let obj = {
...res.data.Extend, ...res.data.Extend,
FlowName: res.data.FlowName, FlowName: res.data.FlowName,
...@@ -94,7 +101,6 @@ const NodeEdit = props => { ...@@ -94,7 +101,6 @@ const NodeEdit = props => {
obj.NodeAliasName = obj.NodeAliasName || res.data.Name; obj.NodeAliasName = obj.NodeAliasName || res.data.Name;
obj.Transferable = obj.Transferable == 1; obj.Transferable = obj.Transferable == 1;
setVisibleChecked(obj.Transferable == 1); setVisibleChecked(obj.Transferable == 1);
console.log(obj.EventsInformation);
if (obj.EventsInformation) { if (obj.EventsInformation) {
if (obj.EventsInformation == 1) { if (obj.EventsInformation == 1) {
obj.EventsInformation = true; obj.EventsInformation = true;
...@@ -104,11 +110,9 @@ const NodeEdit = props => { ...@@ -104,11 +110,9 @@ const NodeEdit = props => {
setVisibleChecked1(false); setVisibleChecked1(false);
} }
} else { } else {
console.log(22222222);
obj.EventsInformation = true; obj.EventsInformation = true;
setVisibleChecked1(true); setVisibleChecked1(true);
} }
console.log(obj.IsSendMessage);
if (obj.IsSendMessage == 0 || obj.IsSendMessage == 1) { if (obj.IsSendMessage == 0 || obj.IsSendMessage == 1) {
if (obj.IsSendMessage == 1) { if (obj.IsSendMessage == 1) {
obj.IsSendMessage = true; obj.IsSendMessage = true;
...@@ -125,8 +129,6 @@ const NodeEdit = props => { ...@@ -125,8 +129,6 @@ const NodeEdit = props => {
if (!obj.Handover) { if (!obj.Handover) {
obj.Handover = '移交选择人'; obj.Handover = '移交选择人';
} }
console.log(obj);
console.log(visibleChecked3);
form.setFieldsValue(obj); form.setFieldsValue(obj);
} else { } else {
setVisibleChecked(false); setVisibleChecked(false);
...@@ -486,12 +488,14 @@ const NodeEdit = props => { ...@@ -486,12 +488,14 @@ const NodeEdit = props => {
unCheckedChildren="否" unCheckedChildren="否"
checked={visibleChecked} checked={visibleChecked}
onChange={change} onChange={change}
disabled={transfer}
/> />
{/* <Radio.Group> {/* <Radio.Group>
<Radio value="0">否</Radio> <Radio value="0">否</Radio>
<Radio value="1">是</Radio> <Radio value="1">是</Radio>
</Radio.Group> */} </Radio.Group> */}
</Form.Item> </Form.Item>
<Form.Item label="显示事件信息" name="EventsInformation"> <Form.Item label="显示事件信息" name="EventsInformation">
<Switch <Switch
checkedChildren="是" checkedChildren="是"
......
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