|
@@ -57,6 +57,7 @@ export default {
|
|
id: this.curObj.id
|
|
id: this.curObj.id
|
|
}).then(res => {
|
|
}).then(res => {
|
|
this.cObj = {...res}
|
|
this.cObj = {...res}
|
|
|
|
+ this.metroName = res.metro_name
|
|
this.getDef()
|
|
this.getDef()
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
@@ -125,8 +126,8 @@ export default {
|
|
else if (!newForm.latitude) return this.$msgw('请选择纬度!')
|
|
else if (!newForm.latitude) return this.$msgw('请选择纬度!')
|
|
this.$api.other[apiStr](newForm).then(data => {
|
|
this.$api.other[apiStr](newForm).then(data => {
|
|
this.$msgs(newForm.id ? '编辑成功' : '新增成功')
|
|
this.$msgs(newForm.id ? '编辑成功' : '新增成功')
|
|
- this.$emit('close', newForm)
|
|
|
|
this.getDef({sort: Number(newForm.sort)+1})
|
|
this.getDef({sort: Number(newForm.sort)+1})
|
|
|
|
+ this.$emit('close', newForm)
|
|
})
|
|
})
|
|
}
|
|
}
|
|
})
|
|
})
|