Browse Source

11

shibei_master
jiangyy 3 years ago
parent
commit
f76ba9f380
  1. 37
      src/views/modules/workSys/mapConfig.vue

37
src/views/modules/workSys/mapConfig.vue

@ -102,17 +102,13 @@
<div class="div_textarea"> <div class="div_textarea">
<div style="margin-top:10px"> <div style="margin-top:10px">
<span> 中心点经度</span> <span> 中心点经度</span>
<el-input-number resize="none" <el-input-number size="small"
size="small" style="width:250px"
style="width:200px"
placeholder='请输入中心点经度'
v-model="longitude"> v-model="longitude">
</el-input-number> </el-input-number>
<span style="margin-left:15px"> 中心点纬度</span> <span style="margin-left:15px"> 中心点纬度</span>
<el-input-number resize="none" <el-input-number size="small"
size="small" style="width:250px"
style="width:200px"
placeholder='请输入中心点纬度'
v-model="latitude"> v-model="latitude">
</el-input-number> </el-input-number>
</div> </div>
@ -289,11 +285,13 @@ const vueGis = {
xOffset: 0, xOffset: 0,
yOffset: 0, yOffset: 0,
xOffset_customize: 0.0051, xOffset_customize: 0,
yOffset_customize: 0.0002, yOffset_customize: 0,
// xOffset_customize: 0.0051,//
// yOffset_customize: 0.0002,//
longitude: '', longitude: undefined,
latitude: '', latitude: undefined,
} }
}, },
async mounted () { async mounted () {
@ -760,8 +758,16 @@ const vueGis = {
handleManually () { handleManually () {
this.dialogVisible = true this.dialogVisible = true
this.polygonManullyString = '' this.polygonManullyString = ''
this.longitude = '' this.longitude = undefined
this.latitude = '' this.latitude = undefined
if (this.selAgency) {
if (this.selAgency.longitude) {
this.longitude = this.selAgency.longitude
}
if (this.selAgency.latitude) {
this.latitude = this.selAgency.latitude
}
}
}, },
// //
@ -770,13 +776,16 @@ const vueGis = {
}, },
handleManuallyOk () { handleManuallyOk () {
if (this.longitude || this.latitude) { if (this.longitude || this.latitude) {
if (!(this.longitude && this.latitude)) { if (!(this.longitude && this.latitude)) {
this.$message({ this.$message({
type: "warning", type: "warning",
message: "请同时填写中心点经纬度,或不填写" message: "请同时填写中心点经纬度,或不填写"
}); });
return false
} }
} }
// //
//120.54033616308595,36.53603370922851,120.69620469335939,36.5408402277832,120.63166001562502,36.46771248120117,120.52728989843752,36.458786089599606,120.54033616308595,36.53603370922851 //120.54033616308595,36.53603370922851,120.69620469335939,36.5408402277832,120.63166001562502,36.46771248120117,120.52728989843752,36.458786089599606,120.54033616308595,36.53603370922851

Loading…
Cancel
Save