|
|
|
@ -15,7 +15,11 @@
|
|
|
|
|
:model="formInfo"
|
|
|
|
|
>
|
|
|
|
|
<el-form-item label="线路" prop="lineVal">
|
|
|
|
|
<el-select v-model="formInfo.lineVal" placeholder="请选择">
|
|
|
|
|
<el-select
|
|
|
|
|
v-model="formInfo.lineVal"
|
|
|
|
|
placeholder="请选择"
|
|
|
|
|
@change="getTower"
|
|
|
|
|
>
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in lineOptions"
|
|
|
|
|
:key="item.id"
|
|
|
|
@ -135,11 +139,11 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
this.formInfo = val;
|
|
|
|
|
let channelnr = []
|
|
|
|
|
val.list.forEach(item => {
|
|
|
|
|
channelnr.push(item.id)
|
|
|
|
|
let channelnr = [];
|
|
|
|
|
val.list.forEach((item) => {
|
|
|
|
|
channelnr.push(item.id);
|
|
|
|
|
});
|
|
|
|
|
this.$set(this.formInfo,'channelVal',channelnr)
|
|
|
|
|
this.$set(this.formInfo, "channelVal", channelnr);
|
|
|
|
|
},
|
|
|
|
|
// 保存确定操作
|
|
|
|
|
submitForm() {
|
|
|
|
@ -173,7 +177,7 @@ export default {
|
|
|
|
|
sim: this.formInfo.simCard,
|
|
|
|
|
displayName: this.formInfo.cmdid,
|
|
|
|
|
towerid: this.formInfo.towerVal,
|
|
|
|
|
id: this.formInfo.id
|
|
|
|
|
id: this.formInfo.id,
|
|
|
|
|
};
|
|
|
|
|
updateTerminalJoggle(this.formInfo)
|
|
|
|
|
.then((res) => {
|
|
|
|
@ -200,7 +204,8 @@ export default {
|
|
|
|
|
this.formInfo.lineVal = "";
|
|
|
|
|
} else {
|
|
|
|
|
this.lineOptions = res.data.list;
|
|
|
|
|
this.formInfo.lineVal = res.data.list[0].id;
|
|
|
|
|
// this.formInfo.lineVal = res.data.list[0].id;
|
|
|
|
|
this.$set(this.formInfo, "lineVal", res.data.list[0].id);
|
|
|
|
|
}
|
|
|
|
|
// this.dyOptions = res.data.list;
|
|
|
|
|
// this.formdata.dyid = res.data.list == [] ? "" : res.data.list[0].id;
|
|
|
|
@ -216,7 +221,8 @@ export default {
|
|
|
|
|
this.formInfo.towerVal = "";
|
|
|
|
|
} else {
|
|
|
|
|
this.toweridOptions = res.data.list;
|
|
|
|
|
this.formInfo.towerVal = res.data.list[0].id;
|
|
|
|
|
// this.formInfo.towerVal = res.data.list[0].id;
|
|
|
|
|
this.$set(this.formInfo, "towerVal", res.data.list[0].id);
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {});
|
|
|
|
@ -227,8 +233,7 @@ export default {
|
|
|
|
|
.then((res) => {
|
|
|
|
|
this.channelOptions = res.data.list;
|
|
|
|
|
})
|
|
|
|
|
.catch((err) => {
|
|
|
|
|
});
|
|
|
|
|
.catch((err) => {});
|
|
|
|
|
},
|
|
|
|
|
display() {
|
|
|
|
|
this.isShow = true;
|
|
|
|
@ -236,10 +241,10 @@ export default {
|
|
|
|
|
hide() {
|
|
|
|
|
this.isShow = false;
|
|
|
|
|
},
|
|
|
|
|
handleclose(){
|
|
|
|
|
handleclose() {
|
|
|
|
|
this.$parent.terminalList();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
};
|
|
|
|
|
</script>
|
|
|
|
|
<style lang="less">
|
|
|
|
|