|
@@ -20,7 +20,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="mui-content-padded">
|
|
<div class="mui-content-padded">
|
|
<h5><span class="colorfe616c">*</span>定位</h5>
|
|
<h5><span class="colorfe616c">*</span>定位</h5>
|
|
- <button class="vongi-yidi-location">{{tjForm.address}}<span class="mui-icon mui-icon-location"></span></button>
|
|
|
|
|
|
+ <button class="vongi-yidi-location" @click="getPoint">{{tjForm.address}}<span class="mui-icon mui-icon-location"></span></button>
|
|
</div>
|
|
</div>
|
|
<div class="mui-content-padded">
|
|
<div class="mui-content-padded">
|
|
<h5><span class="colorfe616c">*</span>备注</h5>
|
|
<h5><span class="colorfe616c">*</span>备注</h5>
|
|
@@ -186,6 +186,9 @@
|
|
} else if (!this.tjForm.content) {
|
|
} else if (!this.tjForm.content) {
|
|
mui.toast('请输入申请内容');
|
|
mui.toast('请输入申请内容');
|
|
return false;
|
|
return false;
|
|
|
|
+ } else if (!this.tjForm.address) {
|
|
|
|
+ mui.toast('暂未获取到您的位置');
|
|
|
|
+ return false;
|
|
} else {
|
|
} else {
|
|
return true;
|
|
return true;
|
|
}
|
|
}
|
|
@@ -193,10 +196,10 @@
|
|
//提交
|
|
//提交
|
|
submit() {
|
|
submit() {
|
|
this.tjForm.photoFile = this.picList.join(',');
|
|
this.tjForm.photoFile = this.picList.join(',');
|
|
|
|
+ if (this.tjForm.address == '定位中……') {
|
|
|
|
+ this.tjForm.address = '';
|
|
|
|
+ }
|
|
if (this.checkFrom()) {
|
|
if (this.checkFrom()) {
|
|
- if (this.tjForm.address == '定位中……') {
|
|
|
|
- this.tjForm.address = '';
|
|
|
|
- }
|
|
|
|
this.isLoading = true;
|
|
this.isLoading = true;
|
|
API_Attendance.postPatchCard(this.tjForm).then(response => {
|
|
API_Attendance.postPatchCard(this.tjForm).then(response => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|