|
@@ -38,7 +38,7 @@ public class DemoDiagramManager {
|
|
|
List<DiagramType> types = dataStrategy.getDiagramTypes();
|
|
|
List<Diagram> diagrams = dataStrategy.getDiagrams(projectId, systemId, groupCode);
|
|
|
for(Diagram diagram : diagrams) {
|
|
|
- manager.buildDiagram(diagram);
|
|
|
+ diagram.setTemplate(null); //减少传输数据量,并给前端标识
|
|
|
}
|
|
|
|
|
|
BdtpRequest req = BdtpRequest.getCurrent();
|
|
@@ -70,6 +70,15 @@ public class DemoDiagramManager {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
+ * 获取系统图内容
|
|
|
+ */
|
|
|
+ public Diagram getDiagram(String diagramId){
|
|
|
+ Diagram diagram = dataStrategy.getDiagram(diagramId);
|
|
|
+ manager.buildDiagram(diagram);
|
|
|
+ return diagram;
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
* 创建新的系统图
|
|
|
*/
|
|
|
public Diagram createDiagram(String name, String type, String projectId, String systemId, String groupCode){
|