Browse Source

Merge branch 'release-sy-v1.0.0' into 'dev'

fix: 修改

See merge request project/water/shuili-vue!175
sy-water-data-board-ui
潘裕艺 2 months ago
parent
commit
912ebca9f0
  1. 15
      src/views/dike/runManage/enginerring/inspectionRouteManage/components/RouteDetail.vue

15
src/views/dike/runManage/enginerring/inspectionRouteManage/components/RouteDetail.vue

@ -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);

Loading…
Cancel
Save