Commit 130af997 authored by 皮倩雯's avatar 皮倩雯

fix: '优化节点配置显示逻辑'

parent 402bf79c
Pipeline #63161 passed with stages
...@@ -96,17 +96,29 @@ const NodeEdit = props => { ...@@ -96,17 +96,29 @@ 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) {
obj.EventsInformation = obj.EventsInformation == 1; if (obj.EventsInformation == 1) {
setVisibleChecked1(obj.EventsInformation == 1); obj.EventsInformation = true;
setVisibleChecked1(true);
} else {
obj.EventsInformation = 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) { if (obj.IsSendMessage == 0 || obj.IsSendMessage == 1) {
obj.IsSendMessage = obj.IsSendMessage == 1; if (obj.IsSendMessage == 1) {
setVisibleChecked2(obj.IsSendMessage == 1); obj.IsSendMessage = true;
setVisibleChecked2(true);
} else {
obj.IsSendMessage = false;
setVisibleChecked2(false);
}
} else { } else {
obj.IsSendMessage = true; obj.IsSendMessage = true;
setVisibleChecked2(true); setVisibleChecked2(true);
......
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