去除高德定位
This commit is contained in:
@@ -23,7 +23,7 @@
|
||||
</button>
|
||||
</view>
|
||||
</template>
|
||||
<template v-else>
|
||||
<template v-else >
|
||||
<view class="content">
|
||||
<uni-forms>
|
||||
<uni-forms-item label="项目">
|
||||
@@ -97,9 +97,12 @@
|
||||
</uni-forms>
|
||||
</view>
|
||||
<image class="gplot-image" ref="gplot-image" :src="formData.topologyDiagramUrl" mode="widthFix" />
|
||||
<view class="btn-wrap">
|
||||
<view class="btn-wrap" >
|
||||
<!-- <view class="btn-wrap-item" @click="add"> 添加监测点 </view> -->
|
||||
<view class="btn-wrap-item" @click="submit"> 提交</view>
|
||||
<!-- <view class="btn-wrap-item" @click="submit" > 提交</view> -->
|
||||
<button class="btn-wrap-item" :loading="isLoading1" :disabled="isLoading1" @click="submit">
|
||||
{{ isLoading1 ? '提交中...' : '提交' }}
|
||||
</button>
|
||||
</view>
|
||||
<uni-drawer ref="gplot" mode="right" :mask-click="false">
|
||||
<scroll-view style="height: 100%" scroll-y="true">
|
||||
@@ -189,6 +192,7 @@ export default {
|
||||
projectRange: [],
|
||||
point: {},
|
||||
isLoading: false,
|
||||
isLoading1: false,
|
||||
pointList: [],
|
||||
activeGplot: 0,
|
||||
positionList: [],
|
||||
@@ -360,17 +364,17 @@ export default {
|
||||
this.isLoading = false
|
||||
})
|
||||
},
|
||||
chooseLocation() {
|
||||
uni.chooseLocation({
|
||||
success: function (res) {
|
||||
this.address = res.name
|
||||
console.log('位置名称:' + res.name)
|
||||
console.log('详细地址:' + res.address)
|
||||
console.log('纬度:' + res.latitude)
|
||||
console.log('经度:' + res.longitude)
|
||||
},
|
||||
})
|
||||
},
|
||||
// chooseLocation() {
|
||||
// uni.chooseLocation({
|
||||
// success: function (res) {
|
||||
// this.address = res.name
|
||||
// console.log('位置名称:' + res.name)
|
||||
// console.log('详细地址:' + res.address)
|
||||
// console.log('纬度:' + res.latitude)
|
||||
// console.log('经度:' + res.longitude)
|
||||
// },
|
||||
// })
|
||||
// },
|
||||
chooseGplot() {
|
||||
this.$refs.gplot.open()
|
||||
this.dialogOpen = true
|
||||
@@ -451,6 +455,7 @@ export default {
|
||||
this.$util.toast('监测点不能重复')
|
||||
return
|
||||
}
|
||||
this.isLoading1 = true
|
||||
addDevice({
|
||||
...this.formData,
|
||||
list: this.pointList,
|
||||
@@ -459,10 +464,13 @@ export default {
|
||||
}).then((res) => {
|
||||
console.log(res)
|
||||
this.$util.toast('提交成功')
|
||||
this.isLoading1 = false
|
||||
setTimeout(() => {
|
||||
this.type = 3
|
||||
uni.navigateBack({ delta: 1 })
|
||||
}, 1500)
|
||||
}).catch(()=>{
|
||||
this.isLoading1 = false
|
||||
})
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user