|
@@ -343,7 +343,6 @@ export default {
|
|
|
|
|
|
const locationType = parseInt(this.dialogData.editData.data.location_type)
|
|
|
let twoBtsNum = parseInt(this.dialogData.editData.data.two_bts_num)
|
|
|
- let twoBtsList = this.dialogData.editData.twoBtsList.join(",")
|
|
|
|
|
|
//一维或者融合定位
|
|
|
if (locationType === 1 || locationType === 3) {
|
|
@@ -352,18 +351,17 @@ export default {
|
|
|
return
|
|
|
}
|
|
|
|
|
|
- if (twoBtsList.length <= 0 || twoBtsList.length > 48) {
|
|
|
- this.$message({ message: '两站定位基站列表字符长度错误', type: 'error' })
|
|
|
+ if (this.dialogData.editData.data.two_bts_list.length <= 0 || this.dialogData.editData.data.two_bts_list.length > 48) {
|
|
|
+ this.$message({ message: '请重新选择两站定位基站或者直接输入', type: 'error' })
|
|
|
return
|
|
|
}
|
|
|
} else {//二维定位
|
|
|
twoBtsNum = 0
|
|
|
- twoBtsList = ""
|
|
|
}
|
|
|
|
|
|
paramData['location_type'] = locationType
|
|
|
paramData['two_bts_num'] = twoBtsNum
|
|
|
- paramData['two_bts_list'] = twoBtsList
|
|
|
+ paramData['two_bts_list'] = this.dialogData.editData.data.two_bts_list
|
|
|
|
|
|
setBtsOamParamBts(paramData).then((res) => {
|
|
|
this.$message({ message: '远程设置参数成功', type: 'success' })
|
|
@@ -402,20 +400,18 @@ export default {
|
|
|
}
|
|
|
|
|
|
if (this.dialogData.editData.data.two_bts_list.length <= 0 || this.dialogData.editData.data.two_bts_list.length > 48) {
|
|
|
- this.$message({ message: '请重新选择两站定位基站列表或者直接输入', type: 'error' })
|
|
|
+ this.$message({ message: '请重新选择两站定位基站或者直接输入', type: 'error' })
|
|
|
return
|
|
|
}
|
|
|
} else {//二维定位
|
|
|
twoBtsNum = 0
|
|
|
- twoBtsList = ""
|
|
|
}
|
|
|
|
|
|
-
|
|
|
paramData['location_type'] = locationType
|
|
|
paramData['two_bts_num'] = twoBtsNum
|
|
|
paramData['two_bts_list'] = this.dialogData.editData.data.two_bts_list
|
|
|
|
|
|
- updateBtsBaseParam(paramData).then((res) => {
|
|
|
+ updateBtsBaseParam(paramData).then(() => {
|
|
|
this.getData()//刷新数据
|
|
|
this.$message({ message: '保存参数成功', type: 'success' })
|
|
|
}).catch(() => {
|