|
|
@ -90,7 +90,7 @@ export default { |
|
|
|
this.debug(); |
|
|
|
}, 200); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
}); |
|
|
|
}, |
|
|
|
methods: { |
|
|
@ -129,7 +129,7 @@ export default { |
|
|
|
debug() { |
|
|
|
const nodes = _.cloneDeep(this._graph.getNodes()).filter(x => x.id.length < 11); |
|
|
|
this._graph.dispose(); |
|
|
|
// |
|
|
|
// |
|
|
|
setTimeout(() => { |
|
|
|
this.mapInit(); |
|
|
|
|
|
|
@ -220,7 +220,7 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
{ |
|
|
|
/*{ |
|
|
|
type: "text", |
|
|
|
label: "项目起点", |
|
|
|
x: 270, |
|
|
@ -279,7 +279,7 @@ export default { |
|
|
|
fill: "#ddc85a", |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
},*/ |
|
|
|
], |
|
|
|
}; |
|
|
|
const graph = new Graph({ |
|
|
@ -318,7 +318,7 @@ export default { |
|
|
|
const { shape, nowBg, src, length } = data; |
|
|
|
const { height, width } = node.prop().size; |
|
|
|
const div = document.createElement('div') |
|
|
|
|
|
|
|
|
|
|
|
let marginHeight = (data.extData.direction === '3'?height*-.3:height*2.2) |
|
|
|
if(data.length && data.extNode.length > 1){ |
|
|
|
let d1 = data.extNode.filter(x=>x.extData.direction === '1') |
|
|
@ -372,7 +372,7 @@ export default { |
|
|
|
}) |
|
|
|
|
|
|
|
window.graphInstance = graph; |
|
|
|
|
|
|
|
|
|
|
|
// 底图文字 |
|
|
|
graph.addNodes(baseData.nodes); |
|
|
|
|
|
|
@ -407,7 +407,7 @@ export default { |
|
|
|
}, |
|
|
|
async drayLine(text, graph, isFoot = false) { |
|
|
|
let x = this.translateX + 141; |
|
|
|
|
|
|
|
|
|
|
|
const ipxDiff = window.screen.width === 3840?135:0; |
|
|
|
x = x+ipxDiff |
|
|
|
if (isFoot) { |
|
|
|