|
@@ -84,12 +84,25 @@
|
|
|
</div>
|
|
|
</el-form-item>
|
|
|
<el-form-item label="两站定位基站列表" v-if="checkLctType && mainData.bts_type == 1">
|
|
|
- <el-select v-model="dialogData.editData.twoBtsList" multiple clearable placeholder="请选择"
|
|
|
- style="width:100%">
|
|
|
- <el-option v-for="(item, index) in organizeBtsIdList" :key="index" :label="item.label"
|
|
|
- :value="item.value">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
+ <div class="btsparamdlg__item">
|
|
|
+ <div class="btsparamdlg__item-left">
|
|
|
+ <el-select v-model="dialogData.editData.twoBtsList" multiple clearable placeholder="请选择"
|
|
|
+ style="width:100%" @change="hUpdateTwoBtsList">
|
|
|
+ <el-option v-for="(item, index) in organizeBtsIdList" :key="index" :label="item.label"
|
|
|
+ :value="item.value">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </div>
|
|
|
+ <div class="btsparamdlg__item-right"><span style="color:#FF0000">也可以在下面直接输入</span></div>
|
|
|
+ </div>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="两站定位基站列表" v-if="checkLctType && mainData.bts_type == 1">
|
|
|
+ <div class="btsparamdlg__item">
|
|
|
+ <div class="btsparamdlg__item-left">
|
|
|
+ <el-input v-model="dialogData.editData.data.two_bts_list" auto-complete="off"></el-input>
|
|
|
+ </div>
|
|
|
+ <div class="btsparamdlg__item-right"><span style="color:#FF0000">基站ID以英文逗号分隔</span></div>
|
|
|
+ </div>
|
|
|
</el-form-item>
|
|
|
</el-form>
|
|
|
<div style="padding-top: 10px;text-align:right">
|
|
@@ -380,7 +393,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) {
|
|
@@ -389,8 +401,8 @@ 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 {//二维定位
|
|
@@ -398,9 +410,10 @@ export default {
|
|
|
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
|
|
|
|
|
|
updateBtsBaseParam(paramData).then((res) => {
|
|
|
this.getData()//刷新数据
|
|
@@ -408,6 +421,12 @@ export default {
|
|
|
}).catch(() => {
|
|
|
this.$message({ message: '保存参数失败', type: 'error' })
|
|
|
})
|
|
|
+ },
|
|
|
+ //更新两站列表
|
|
|
+ hUpdateTwoBtsList(item) {
|
|
|
+ this.$nextTick(function () {
|
|
|
+ this.dialogData.editData.data.two_bts_list = item.join(",")
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
}
|