|
@ -112,7 +112,11 @@ |
|
|
:class="{ 'cursor-not-allowed': !canEdit }" |
|
|
:class="{ 'cursor-not-allowed': !canEdit }" |
|
|
@click="handleDraw('billboard', 'pos_start.svg')" |
|
|
@click="handleDraw('billboard', 'pos_start.svg')" |
|
|
> |
|
|
> |
|
|
<img class="icon" :src="`${baseUrl}/icons/pos_start.svg`" alt="" /> |
|
|
<img |
|
|
|
|
|
class="icon" |
|
|
|
|
|
:src="`${baseUrl}/icons/pos_start.svg`" |
|
|
|
|
|
alt="" |
|
|
|
|
|
/> |
|
|
设定起点 |
|
|
设定起点 |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
@ -120,7 +124,11 @@ |
|
|
:class="{ 'cursor-not-allowed': !canEdit }" |
|
|
:class="{ 'cursor-not-allowed': !canEdit }" |
|
|
@click="handleDraw('billboard', 'pos_end.svg')" |
|
|
@click="handleDraw('billboard', 'pos_end.svg')" |
|
|
> |
|
|
> |
|
|
<img class="icon" :src="`${baseUrl}/icons/pos_end.svg`" alt="" /> |
|
|
<img |
|
|
|
|
|
class="icon" |
|
|
|
|
|
:src="getImgUrl(`${baseUrl}/icons/pos_end.svg`)" |
|
|
|
|
|
alt="" |
|
|
|
|
|
/> |
|
|
设定终点 |
|
|
设定终点 |
|
|
</div> |
|
|
</div> |
|
|
<div |
|
|
<div |
|
@ -271,6 +279,9 @@ export default { |
|
|
}, |
|
|
}, |
|
|
mounted() {}, |
|
|
mounted() {}, |
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getImgUrl(url) { |
|
|
|
|
|
return window.location.host + url; |
|
|
|
|
|
}, |
|
|
handleDraw(type, iconName) { |
|
|
handleDraw(type, iconName) { |
|
|
if (!this.canEdit) return; |
|
|
if (!this.canEdit) return; |
|
|
this.$refs.syMapRef.draw(type, iconName); |
|
|
this.$refs.syMapRef.draw(type, iconName); |
|
|