Commit 11430cd3 authored by 皮倩雯's avatar 皮倩雯

fix: '字段名修改'

parent b9070a9d
Pipeline #77547 failed with stages
......@@ -110,7 +110,9 @@ const FlowChart = props => {
if (res.code === 0) {
message.success('删除成功 ');
} else {
message.error({ content: <div style={{ whiteSpace: 'pre-line', textAlign: 'justify' }}>{res.msg}</div> });
message.error({
content: <div style={{ whiteSpace: 'pre-line', textAlign: 'justify' }}>{res.msg}</div>,
});
}
});
console.log(delNodes, delLinks, 'fffff');
......@@ -166,6 +168,7 @@ const FlowChart = props => {
currentNode.current = nodeData;
setNodeKey(nodeData.key);
setEditMsg(nodeData);
debugger;
setModalType('edit');
setVisible(true);
});
......@@ -1080,6 +1083,7 @@ const FlowChart = props => {
// 节点数据改边
const nodeChage = (key, value) => {
console.log(key, value);
debugger;
let obj = JSON.parse(JSON.stringify(currentNode.current));
obj[key] = value;
const nodeDetail = JSON.stringify(obj);
......
......@@ -1051,11 +1051,11 @@ const FlowChart = props => {
currentNode.current.FlowNodeBackfillConfigs = jsonData(flowNodeBackfillConfigs);
let data = isJSON(currentNode.current.BtnAliasNameConfig);
// currentNode.current.BtnAliasNameConfig &&
// JSON.parse(currentNode.current.BtnAliasNameConfig.toString()).saveButAliasName;
// JSON.parse(currentNode.current.BtnAliasNameConfig.toString()).saveBtnAliasName;
if (currentNode.current.BtnAliasNameConfig) {
if (!data) {
let BtnAliasNameConfig = JSON.stringify({
saveButAliasName: currentNode.current.BtnAliasNameConfig,
saveBtnAliasName: currentNode.current.BtnAliasNameConfig,
});
currentNode.current.BtnAliasNameConfig = BtnAliasNameConfig;
}
......@@ -1314,11 +1314,11 @@ const FlowChart = props => {
debugger;
// let data =
// i.BtnAliasNameConfig &&
// JSON.parse(i.BtnAliasNameConfig.toString()).saveButAliasName;
// JSON.parse(i.BtnAliasNameConfig.toString()).saveBtnAliasName;
if (i.BtnAliasNameConfig) {
if (!data) {
let BtnAliasNameConfig = JSON.stringify({
saveButAliasName: i.BtnAliasNameConfig,
saveBtnAliasName: i.BtnAliasNameConfig,
});
i.BtnAliasNameConfig = BtnAliasNameConfig;
}
......
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