|
|
@ -66,7 +66,7 @@ |
|
|
|
>查询</el-button |
|
|
|
> |
|
|
|
<div |
|
|
|
id="map_app" |
|
|
|
id="map_add" |
|
|
|
class="div_map" |
|
|
|
style="width: 500px; height: 300px; margin-top: 20px" |
|
|
|
></div> |
|
|
@ -95,12 +95,12 @@ |
|
|
|
</div> |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
<template slot="footer"> |
|
|
|
<div class="submit"> |
|
|
|
<el-button @click="visible = false">{{ $t("cancel") }}</el-button> |
|
|
|
<el-button type="primary" @click="dataFormSubmitHandle()">{{ |
|
|
|
$t("confirm") |
|
|
|
}}</el-button> |
|
|
|
</template> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
@ -203,6 +203,7 @@ export default { |
|
|
|
}, |
|
|
|
}, |
|
|
|
created() { |
|
|
|
console.log(document.getElementById("map_add")); |
|
|
|
this.getFormInfo(); |
|
|
|
this.initMap(); |
|
|
|
}, |
|
|
@ -212,7 +213,7 @@ export default { |
|
|
|
// 定义地图中心点坐标 |
|
|
|
var center = new window.TMap.LatLng(36.0722275, 120.38945519); |
|
|
|
// 定义map变量,调用 TMap.Map() 构造函数创建地图 |
|
|
|
map = new window.TMap.Map(document.getElementById("map_app"), { |
|
|
|
map = new window.TMap.Map(document.getElementById("map_add"), { |
|
|
|
center: center, // 设置地图中心点坐标 |
|
|
|
zoom: 17.2, // 设置地图缩放级别 |
|
|
|
pitch: 43.5, // 设置俯仰角 |
|
|
@ -396,4 +397,8 @@ export default { |
|
|
|
.position_label >>> .el-form-item__label::before{ |
|
|
|
color:#fff!important; |
|
|
|
} |
|
|
|
.submit{ |
|
|
|
text-align: center; |
|
|
|
margin: auto; |
|
|
|
} |
|
|
|
</style> |
|
|
|