Commit e2679c15 authored by 邓超's avatar 邓超

fix: 修改流程删除线问题

parent a110200a
Pipeline #75252 passed with stages
......@@ -155,17 +155,21 @@ const FlowChart = props => {
delLinks.add(item.data.LineId);
}
});
CheckDoingFlowNodes({ activityIds: [...delNodes] }).then(res => {
if (res.code === 0) {
if (res.data > 0) {
showCloseList([...delNodeIds], [...delNodes], [...delLinks], res.data);
if (delNodes.size === 0) {
delNode([...delNodeIds], [...delNodes], [...delLinks]);
} else {
CheckDoingFlowNodes({ activityIds: [...delNodes] }).then(res => {
if (res.code === 0) {
if (res.data > 0) {
showCloseList([...delNodeIds], [...delNodes], [...delLinks], res.data);
} else {
showDeleteConfirm([...delNodeIds], [...delNodes], [...delLinks]);
}
} else {
showDeleteConfirm([...delNodeIds], [...delNodes], [...delLinks]);
message.error(res.msg);
}
} else {
message.error(res.msg);
}
});
});
}
return false;
};
......@@ -1039,9 +1043,11 @@ const FlowChart = props => {
}).then(response => {
if (response.code === 0) {
console.log(currentNode.current);
let list = JSON.parse(JSON.stringify(currentNode.current));
list.FlowNodeBackfillConfigs = jsonData(list.FlowNodeBackfillConfigs);
currentNode.current = list;
// let list = JSON.parse(JSON.stringify(currentNode.current));
// list.FlowNodeBackfillConfigs = jsonData(list.FlowNodeBackfillConfigs);
// currentNode.current = list;
let flowNodeBackfillConfigs = currentNode.current.FlowNodeBackfillConfigs;
currentNode.current.FlowNodeBackfillConfigs = jsonData(flowNodeBackfillConfigs);
console.log(currentNode.current);
FlowNodeSave({
PreviewImage: response.data,
......@@ -1083,10 +1089,8 @@ const FlowChart = props => {
let listArr = [];
val.map((item, index) => {
console.log(item);
debugger;
if (!item.Config) {
console.log(item);
debugger;
let arr = [];
arr.push({
mapServer: item.schemeName,
......@@ -1278,7 +1282,6 @@ const FlowChart = props => {
}),
1.2, // 压缩比例
base64 => {
console.log(base64);
SaveWorkFlowImage({
flowName: flowData.flowName,
base64Data: base64,
......
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