Commit 5f7b4cbe authored by 李纪文's avatar 李纪文

fix: 组态增加源数据

parent dfad8403
...@@ -914,11 +914,10 @@ const ConfigurationView = (props) => { ...@@ -914,11 +914,10 @@ const ConfigurationView = (props) => {
); );
}; };
/** ************************************数据源模型获取******************************* */ /** ************************************数据源数据获取******************************* */
const getDataModel = () => { const getDataModel = () => {
const json = JSON.parse(myDiagram.model.toJson()); const json = JSON.parse(myDiagram.model.toJson());
const jsonCopy = JSON.parse(JSON.stringify(json)); const nodeDataArray = json.nodeDataArray;
const nodeDataArray = jsonCopy.nodeDataArray;
const dataCaseArr = nodeDataArray.filter((item) => { const dataCaseArr = nodeDataArray.filter((item) => {
return item.category === 'dataSource' && item.url; return item.category === 'dataSource' && item.url;
}); });
......
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