|
@ -130,7 +130,6 @@ export default { |
|
|
this.longitude = position.lng |
|
|
this.longitude = position.lng |
|
|
this.latitude = position.lat |
|
|
this.latitude = position.lat |
|
|
this.address = position.city + position.addr |
|
|
this.address = position.city + position.addr |
|
|
console.log('定位成功', position) |
|
|
|
|
|
}, |
|
|
}, |
|
|
locationChange(data) { |
|
|
locationChange(data) { |
|
|
this.longitude = data.latlng.lng |
|
|
this.longitude = data.latlng.lng |
|
@ -139,7 +138,6 @@ export default { |
|
|
this.ifRange(this.longitude,this.latitude) |
|
|
this.ifRange(this.longitude,this.latitude) |
|
|
}, |
|
|
}, |
|
|
ifRange(longitude,latitude){ |
|
|
ifRange(longitude,latitude){ |
|
|
console.log(longitude,latitude,'经纬度'); |
|
|
|
|
|
let parm={ |
|
|
let parm={ |
|
|
latitude, |
|
|
latitude, |
|
|
longitude, |
|
|
longitude, |
|
@ -159,17 +157,14 @@ export default { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
errorPosition() { |
|
|
errorPosition() { |
|
|
console.log('定位失败,再次进行定位') |
|
|
|
|
|
}, |
|
|
}, |
|
|
clickUpload() { |
|
|
clickUpload() { |
|
|
}, |
|
|
}, |
|
|
setAudio(val) { |
|
|
setAudio(val) { |
|
|
console.log(val, 'this.val') |
|
|
|
|
|
this.isFile = false |
|
|
this.isFile = false |
|
|
this.audio = val |
|
|
this.audio = val |
|
|
}, |
|
|
}, |
|
|
afterRead(file) { |
|
|
afterRead(file) { |
|
|
console.log(file) |
|
|
|
|
|
file.status = 'uploading' |
|
|
file.status = 'uploading' |
|
|
file.message = '上传中...' |
|
|
file.message = '上传中...' |
|
|
uploadvariedfile(file.file) |
|
|
uploadvariedfile(file.file) |
|
@ -177,7 +172,6 @@ export default { |
|
|
file.status = '' |
|
|
file.status = '' |
|
|
file.message = '上传成功' |
|
|
file.message = '上传成功' |
|
|
file.url = res.data.url |
|
|
file.url = res.data.url |
|
|
console.log(this.fileList) |
|
|
|
|
|
|
|
|
|
|
|
// this.uploadFileList.push(res.url) |
|
|
// this.uploadFileList.push(res.url) |
|
|
}) |
|
|
}) |
|
@ -216,7 +210,8 @@ export default { |
|
|
reporterMobile: this.phone, |
|
|
reporterMobile: this.phone, |
|
|
eventContent: this.eventContent ? this.eventContent : '语音报事', |
|
|
eventContent: this.eventContent ? this.eventContent : '语音报事', |
|
|
userId: this.$store.state.app.userInfo.userId, |
|
|
userId: this.$store.state.app.userInfo.userId, |
|
|
customerId: this.$store.state.app.userInfo.customerId |
|
|
customerId: this.$store.state.app.userInfo.customerId, |
|
|
|
|
|
openFlag : 0 |
|
|
}).then(() => { |
|
|
}).then(() => { |
|
|
this.$toast.success('提交成功') |
|
|
this.$toast.success('提交成功') |
|
|
this.type = 1 |
|
|
this.type = 1 |
|
|