Commit 402bf79c authored by 皮倩雯's avatar 皮倩雯

fix: '优化工单流程配置'

parent 102dee0f
Pipeline #63157 passed with stages
......@@ -70,11 +70,18 @@ const NodeEdit = props => {
if (res.code === 0) {
// 结束节点
if (res.data.Type == 2) {
console.log(res.data.Extend.AutoClose);
if (res.data.Extend.AutoClose === '是') {
res.data.Extend.AutoClose = true;
setVisibleChecked3(true);
} else {
res.data.Extend.AutoClose = false;
setVisibleChecked3(false);
}
setAutoClose(true);
} else {
setAutoClose(false);
}
console.log(res.data);
let obj = {
...res.data.Extend,
FlowName: res.data.FlowName,
......@@ -108,14 +115,14 @@ const NodeEdit = props => {
if (!obj.Handover) {
obj.Handover = '移交选择人';
}
console.log(obj);
console.log(visibleChecked3);
form.setFieldsValue(obj);
} else {
obj.AutoClose = obj.AutoClose == '是';
setVisibleChecked(false);
setVisibleChecked1(true);
setVisibleChecked2(true);
setVisibleChecked3(obj.AutoClose == '是');
form.setFieldsValue({
FlowName: res.data.FlowName,
NodeAliasName: res.data.Name,
......
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