添加装置

master
fanluyan 2 years ago
parent df34a6f986
commit a4081c8117

@ -1,6 +1,6 @@
<template>
<el-dialog
class="addLineDialog"
class="addtowerDialog"
:title="title"
:visible.sync="isShow"
:close-on-click-modal="false"
@ -19,7 +19,12 @@
</el-form-item>
<el-form-item label="线路编号:" prop="lineId">
<el-select v-model="formdata.lineId" placeholder="请选择">
<el-option v-for="item in lineOptions" :key="item.id" :label="item.name" :value="item.id"></el-option>
<el-option
v-for="item in lineOptions"
:key="item.id"
:label="item.name"
:value="item.id"
></el-option>
</el-select>
</el-form-item>
</el-form>
@ -43,16 +48,19 @@ export default {
formdata: {},
rules: {
name: [{ required: true, message: "请输入杆塔名称", trigger: "blur" }],
lineId: [{ required: true, message: "请选择线路编号", trigger: "blur" }],
lineId: [
{ required: true, message: "请选择线路编号", trigger: "blur" },
],
},
};
},
mounted() {
this.getLineListdata()
this.getLineListdata();
},
methods: {
getLineListdata() {
getLineListApi({ pageindex: 1, pagesize: 100 }).then((res) => {
getLineListApi({ pageindex: 1, pagesize: 100 })
.then((res) => {
this.lineOptions = res.data.list;
})
.catch((err) => {});
@ -105,7 +113,14 @@ export default {
},
handleClose() {
this.$parent.deviceList();
}
},
},
};
</script>
<style lang="less">
.addtowerDialog {
.el-select {
width: 100%;
}
}
</style>

@ -448,6 +448,7 @@ export default {
this.channelList[0].termId
);
console.log("返回最新图片");
this.i = 0;
} else if (res.data == false && this.i > 10) {
clearInterval(this.timer);
this.timer = null;

Loading…
Cancel
Save