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