aboutsummaryrefslogtreecommitdiffstats
path: root/sdc-workflow-designer-ui/src/app/components/container
diff options
context:
space:
mode:
authorLvbo163 <lv.bo163@zte.com.cn>2018-01-11 19:13:03 +0800
committerLvbo163 <lv.bo163@zte.com.cn>2018-01-11 19:13:03 +0800
commitf093dcdbc4012a64c11a293052afbc74d84c8c5a (patch)
tree519bfc5640253be40a25a1dde2f071a350331f9e /sdc-workflow-designer-ui/src/app/components/container
parent761b385b2a0a6dbec10717e6d94f1cd1e04bb2ef (diff)
add backend service
add data access interfaces for template data Issue-ID: SDC-905 Change-Id: Ie632b00dbc6ede01b0ee8a3c7abdbbc1f476f1e4 Signed-off-by: Lvbo163 <lv.bo163@zte.com.cn>
Diffstat (limited to 'sdc-workflow-designer-ui/src/app/components/container')
-rw-r--r--sdc-workflow-designer-ui/src/app/components/container/container.component.css11
-rw-r--r--sdc-workflow-designer-ui/src/app/components/container/container.component.ts6
2 files changed, 15 insertions, 2 deletions
diff --git a/sdc-workflow-designer-ui/src/app/components/container/container.component.css b/sdc-workflow-designer-ui/src/app/components/container/container.component.css
index bc889652..5ba672cc 100644
--- a/sdc-workflow-designer-ui/src/app/components/container/container.component.css
+++ b/sdc-workflow-designer-ui/src/app/components/container/container.component.css
@@ -20,7 +20,16 @@
user-select: none;
height: 100%;
position: relative;
- overflow: scroll;
+ overflow: auto;
z-index: 0;
background-color: white;
}
+
+#node-selector{
+ /* display: none; */
+ position: absolute;
+ border: 1px dashed black;
+ background-color: #00ABFF;
+ position: absolute;
+ opacity: 0.1;
+} \ No newline at end of file
diff --git a/sdc-workflow-designer-ui/src/app/components/container/container.component.ts b/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
index f35c2482..63ea84d9 100644
--- a/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
+++ b/sdc-workflow-designer-ui/src/app/components/container/container.component.ts
@@ -16,6 +16,7 @@ import { SequenceFlow } from '../../model/workflow/sequence-flow';
import { WorkflowElement } from '../../model/workflow/workflow-element';
import { WorkflowNode } from '../../model/workflow/workflow-node';
import { BroadcastService } from '../../services/broadcast.service';
+import { DataService } from '../../services/data/data.service';
import { JsPlumbService } from '../../services/jsplumb.service';
import { ModelService } from '../../services/model.service';
@@ -39,7 +40,7 @@ export class ContainerComponent implements AfterViewChecked, AfterViewInit, OnIn
private needInitSequence = false;
constructor(private broadcastService: BroadcastService, private jsPlumbService: JsPlumbService,
- public modelService: ModelService) {
+ private dataService: DataService, public modelService: ModelService) {
}
@HostListener('window:keyup.delete', ['$event']) ondelete(event: KeyboardEvent) {
@@ -73,6 +74,9 @@ export class ContainerComponent implements AfterViewChecked, AfterViewInit, OnIn
public ngOnInit() {
this.jsPlumbService.initJsPlumbInstance(this.modelService.rootNodeId);
+ this.broadcastService.backendServiceReady$.subscribe(() => {
+ this.dataService.initData();
+ });
this.broadcastService.planModel$.subscribe(() => {
this.needInitSequence = true;
});