|
@@ -550,11 +550,12 @@ public class OpcDaUtil {
|
|
|
treeBrowser.fillLeaves(branch);
|
|
|
} catch (Exception ignored) {
|
|
|
}
|
|
|
- List<Map<String, String>> mapList = new ArrayList<>();
|
|
|
+ List<Map<String, String>> mapAllList = new ArrayList<>();
|
|
|
|
|
|
- Iterator iter = branch.getBranches().iterator();
|
|
|
JSONArray objects = JSONObject.parseArray(needItemStr);
|
|
|
for (Object obj : objects) {
|
|
|
+ List<Map<String, String>> mapList = new ArrayList<>();
|
|
|
+ Iterator iter = branch.getBranches().iterator();
|
|
|
String itemstr = obj.toString();
|
|
|
while (iter.hasNext()) {
|
|
|
Branch subBranch = (Branch) iter.next();
|
|
@@ -581,9 +582,10 @@ public class OpcDaUtil {
|
|
|
Map<String, String> map = mapList.get(i);
|
|
|
map.put("itemReadName", prefix + "." + map.get("current") + "." + itemstr);
|
|
|
}
|
|
|
+ mapAllList.addAll(mapList);
|
|
|
}
|
|
|
}
|
|
|
- return mapList;
|
|
|
+ return mapAllList;
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -611,7 +613,9 @@ public class OpcDaUtil {
|
|
|
// map.put(leaf.getName(), leaf.getItemId());
|
|
|
String itemName = leaf.getName();
|
|
|
if (itemName.equals(needItemStr)) {
|
|
|
- map.put("fullPath", genFullPath(leaf));
|
|
|
+ String label = genFullPath(leaf);
|
|
|
+ map.put("label", label);
|
|
|
+ map.put("value", label);
|
|
|
map.put("itemName", itemName);
|
|
|
map.put("itemReadName", leaf.getItemId());
|
|
|
break;
|