Commit fac41f43 by gao_yingdong

经纬度回显

parent 8d23121f
......@@ -101,9 +101,10 @@ export default {
this.isShowMap = false;
},
parentAndChilenEvent(data1, data2) {
debugger
this.isShowMap = false;
this.formLabelAlign.x = data1;
this.formLabelAlign.y = data2;
this.$set( this.formLabelAlign, 'x', data1)
this.$set( this.formLabelAlign, 'y', data2)
},
showJyDialog(id) {
if (id == "x" || id == "y") {
......
......@@ -10,13 +10,7 @@
:show-close="false"
>
<div id="map" style="width: 821px; height: 352px"></div>
<div
v-show="
jingdu != '' || jingdu != 'null' || weidu != '' || weidu != 'null'
"
>
当前经度:{{ extent[0] }},纬度{{ extent[1] }}
</div>
<div>当前经度:{{ extent[0] }},纬度{{ extent[1] }}</div>
<div slot="footer" class="dialog-footer">
<el-button @click="closeDialog">取 消</el-button>
<el-button type="primary" @click="saveMapDd">确 定</el-button>
......@@ -57,9 +51,8 @@ export default {
this.$emit("closeMap");
},
saveMapDd() {
if (this.jingdu != "") {
this.$emit("parentAndChilenEvent", this.jingdu, this.weidu);
}
debugger;
this.$emit("parentAndChilenEvent", this.extent[0], this.extent[1]);
this.jwdDialog = false;
},
//初始化地图
......@@ -236,13 +229,13 @@ export default {
jd(val) {
this.emitJd = val;
if (val != "" && val != null) {
this.jingdu = val;
this.extent[0] = val;
}
},
wd(val) {
this.emitWd = val;
if (val != "" && val != null) {
this.weidu = val;
this.extent[1] = val;
}
},
},
......
......@@ -143,7 +143,7 @@ export default {
debugger;
let path =
this.$baseUrl.alyIP9 +
"/#/SpaceTimeCombat/SmartControl?x=" +
"/#/JumpPage/admin/admin/SpaceTimeCombat/SmartControl?x=" +
scope.row.x +
"&y=" +
scope.row.y +
......
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