// 保存道路名称
saveRoad () {
this.currFeatures.attributes.name =this.form.name
this.inspectionPointLayer.applyEdits({
updateFeatures: [this.currFeatures]
}).then(result => {
if (result.updateFeatureResults.length >0) {
this.$message.success('添加道路名称成功')
this.nameDialogVisible =false
this.inspectionPointLayer.queryFeatures()
}else {
this.$message.error('添加道路名称失败,请重试')
}
}).catch(error => {
this.$message.error(`巡查范围保存失败:${error}`)
})
}