|
|
@@ -98,13 +98,15 @@ export default {
|
|
|
});
|
|
|
}
|
|
|
},
|
|
|
- async eqlistname() {
|
|
|
+ async eqlistname(lat, lng) {
|
|
|
//修改设备名称
|
|
|
const res = await this.$myRequest({
|
|
|
url: '/api/api_gateway?method=forecast.worm_lamp.revise_device',
|
|
|
data: {
|
|
|
device_id: this.moddata.imei,
|
|
|
device_name: this.moddata.device_name,
|
|
|
+ lat: lat,
|
|
|
+ lng: lng,
|
|
|
},
|
|
|
});
|
|
|
|
|
|
@@ -153,11 +155,11 @@ export default {
|
|
|
this.selectaddress(this.moddata.lng, this.moddata.lat);
|
|
|
},
|
|
|
btn() {
|
|
|
- this.eqlistcity(this.moddata.lat, this.moddata.lng);
|
|
|
+ // this.eqlistcity(this.moddata.lat, this.moddata.lng);
|
|
|
|
|
|
- setTimeout(() => {
|
|
|
- this.eqlistname();
|
|
|
- }, 500);
|
|
|
+ this.eqlistname(this.moddata.lat, this.moddata.lng);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // }, 500);
|
|
|
},
|
|
|
clickLeft() {
|
|
|
uni.navigateBack({
|