|
|
@@ -62,19 +62,8 @@ export default {
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['process']),
|
|
|
- id(){
|
|
|
- return this.process.currentEdgeId
|
|
|
- }
|
|
|
- },
|
|
|
- watch:{
|
|
|
- id(n,o){
|
|
|
- if(n){
|
|
|
- let graph = Process.graph;
|
|
|
- let cell = graph.getCellById(this.process.currentEdgeId);
|
|
|
- this.edgeData=cell.data
|
|
|
- }
|
|
|
- }
|
|
|
},
|
|
|
+
|
|
|
data() {
|
|
|
let self=this
|
|
|
return {
|
|
|
@@ -100,6 +89,9 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ let graph = Process.graph;
|
|
|
+ let cell = graph.getCellById(this.process.currentEdgeId);
|
|
|
+ this.edgeData=cell.data
|
|
|
},
|
|
|
methods: {
|
|
|
...mapMutations(['setProcessEdgeModalDisplay','setCurrentEdgeId']),
|