diff --git a/src/jmapNew/shape/graph/Responder/index.js b/src/jmapNew/shape/graph/Responder/index.js
index 19ecdc638..c90c15cd2 100644
--- a/src/jmapNew/shape/graph/Responder/index.js
+++ b/src/jmapNew/shape/graph/Responder/index.js
@@ -109,9 +109,9 @@ export default class Responder extends Group {
});
this.text = this.name = new Text({
- zlevel: this.zlevel,
+ zlevel: this.zlevel,
z: this.z + 1,
- style: {
+ style: {
x: textX,
y: textY,
text: textName,
@@ -144,9 +144,13 @@ export default class Responder extends Group {
const responderStyle = this.style.Responder || defaultStyle;
const style = responderStyle.block.mapStyle[model.type] || {fill: '#000'};
this.block && this.block.setStyle(style);
- [this.delta1, this.delta2].forEach(el => {
- model.type == 'IB' ? el.show() : el.hide();
- });
+ if (this.delta1) {
+ model.type == 'IB' ? this.delta1.show() : this.delta1.hide();
+ }
+ if (this.delta2) {
+ model.type == 'IB' ? this.delta2.show() : this.delta2.hide();
+ }
+
}
// 整体图片
@@ -167,7 +171,7 @@ export default class Responder extends Group {
}
// 设置选中态
- drawSelected(selected){
+ drawSelected(selected) {
this.highlight && this.highlight.drawSelected(selected);
}
diff --git a/src/views/newMap/newMapdraft/mapoperate/responder/index.vue b/src/views/newMap/newMapdraft/mapoperate/responder/index.vue
index e7736cb5c..2ffc9b9bb 100644
--- a/src/views/newMap/newMapdraft/mapoperate/responder/index.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/responder/index.vue
@@ -47,7 +47,6 @@
diff --git a/src/views/newMap/newMapdraft/mapoperate/responder/responderBatchOperate.vue b/src/views/newMap/newMapdraft/mapoperate/responder/responderBatchOperate.vue
index 39ab8f8f9..cb9082dc5 100644
--- a/src/views/newMap/newMapdraft/mapoperate/responder/responderBatchOperate.vue
+++ b/src/views/newMap/newMapdraft/mapoperate/responder/responderBatchOperate.vue
@@ -10,7 +10,7 @@