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

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

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