|
@@ -58,7 +58,26 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
</content-block>
|
|
|
- <MachineIndex v-if="selectMachine" :select-machine="selectMachine"></MachineIndex>
|
|
|
+ <MachineIndex v-if="selectMachine" :select-machine="selectMachine">
|
|
|
+ <template v-slot:title-right="scop">
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ content="click to machine"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <svg-icon icon-class="location" @click="()=>{locationMachine(scop.data)}"/>
|
|
|
+ </el-tooltip>
|
|
|
+ <el-tooltip
|
|
|
+ class="item"
|
|
|
+ effect="dark"
|
|
|
+ content="close"
|
|
|
+ placement="top"
|
|
|
+ >
|
|
|
+ <i class="el-icon-close" @click="()=>{locationClose()}" style="margin-left: 5px"/>
|
|
|
+ </el-tooltip>
|
|
|
+ </template>
|
|
|
+ </MachineIndex>
|
|
|
</div>
|
|
|
<PileHoleDetail ref="pileHoleDialog"/>
|
|
|
</div>
|
|
@@ -284,6 +303,12 @@ export default {
|
|
|
},
|
|
|
handleClick(e) {
|
|
|
},
|
|
|
+ locationMachine(selectMachine) {
|
|
|
+ this.mapIns.flyToPoint([selectMachine.lng, selectMachine.lat], {duration: 1000})
|
|
|
+ },
|
|
|
+ locationClose() {
|
|
|
+ this.selectMachine = null
|
|
|
+ },
|
|
|
pileHoleClick(pileHole) {
|
|
|
this.$refs.pileHoleDialog.showDialog(pileHole)
|
|
|
},
|