|
@@ -20,7 +20,7 @@
|
|
|
</div>
|
|
|
<div class="mui-content-padded">
|
|
|
<h5><span class="colorfe616c">*</span>定位</h5>
|
|
|
- <button class="vongi-yidi-location">{{positionName}}<span class="mui-icon mui-icon-location"></span></button>
|
|
|
+ <button class="vongi-yidi-location">{{tjForm.address}}<span class="mui-icon mui-icon-location"></span></button>
|
|
|
</div>
|
|
|
<div class="mui-content-padded">
|
|
|
<h5>备注</h5>
|
|
@@ -85,14 +85,14 @@
|
|
|
approvalPersonId: '',
|
|
|
workAttendanceId: '',
|
|
|
photoFile: '',
|
|
|
- longitude: 112.198305,
|
|
|
- latitude: 30.347599,
|
|
|
+ longitude: 112.276527,
|
|
|
+ latitude: 30.306427,
|
|
|
+ address: '',
|
|
|
},
|
|
|
//typeName: '',
|
|
|
approvalPersonName: '',
|
|
|
personList: [],
|
|
|
picList: [],
|
|
|
- positionName: '',
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
@@ -235,9 +235,9 @@
|
|
|
if (status === 'complete' && result.info === 'OK') {
|
|
|
var address = result.regeocode.formattedAddress;
|
|
|
console.log(address);
|
|
|
- _this.positionName = address;
|
|
|
+ _this.tjForm.address = address;
|
|
|
} else {
|
|
|
- _this.positionName = '无法获取定位';
|
|
|
+ _this.tjForm.address = '无法获取定位';
|
|
|
}
|
|
|
});
|
|
|
});
|