Commit 99a1f061 authored by yaqizhang's avatar yaqizhang

详情地图

parent 2b77db3c
<template>
<div class="app-container detail" style="background-color: rgb(238, 241, 245);">
<!-- 工单信息 -->
<div style="padding-top: 10px;background: #fff;">
<div style="padding-top: 10px;background: #fff;height: 100%;">
<div>
<span style="color: #31EAEA;font-weight: 900;margin-left: 15px;">工单信息</span>
<el-steps :active="active" finish-status="success" simple prop="orderStatus" style="margin-top: 20px">
......@@ -21,9 +21,6 @@
</div>
<el-form ref="form" v-model="form" :rules="rules" label-width="100px" style="float: left;margin-left: 50px;">
<el-form-item label="工单类型:" prop="orderType">
<!-- <template slot-scope="scope">
<span>{{ scope.row.orderType}}</span>
</template> -->
<font v-if="form.orderType == 1">巡检信息</font>
<font v-if="form.orderType == 2">隐患信息</font>
<font v-if="form.orderType == 3">报警信息</font>
......@@ -240,9 +237,6 @@ export default {
},
mounted(){
let gaoMap = new gaodeMap("石家庄");
// let data = {longitude:"114.208371",latitude:"38.267036"}
// map.addMarker(DEVICE_TYPE,data)
// map.addMarker(DEVICE_TYPE.WORKORDER,data)
this.gaoMap = gaoMap;
this.getBasicsInfo();
},
......@@ -272,6 +266,7 @@ export default {
this.active = parseInt(response.data.orderStatus) + 1;
for(var i = 0; i < this.form.deviceInfoList.length; i++){
let obj = this.form.deviceInfoList[i];
console.log(obj,"94444444444444-=----")
this.gaoMap.addMarker(DEVICE_TYPE.WORKORDER, obj)
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment