|
|
@ -37,16 +37,7 @@
|
|
|
|
></el-option>
|
|
|
|
></el-option>
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="通道">
|
|
|
|
|
|
|
|
<el-select v-model="formdata.channel">
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="item in tdOptions"
|
|
|
|
|
|
|
|
:key="item.id"
|
|
|
|
|
|
|
|
:label="item.name"
|
|
|
|
|
|
|
|
:value="item.id"
|
|
|
|
|
|
|
|
></el-option>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
<el-form-item label="开始日期">
|
|
|
|
<el-form-item label="开始日期">
|
|
|
|
<!-- <el-date-picker
|
|
|
|
<!-- <el-date-picker
|
|
|
|
v-model="formdata.timeVal"
|
|
|
|
v-model="formdata.timeVal"
|
|
|
@ -389,10 +380,9 @@ export default {
|
|
|
|
dyOptions: [{ id: -1, name: "全部" }], //电压数据
|
|
|
|
dyOptions: [{ id: -1, name: "全部" }], //电压数据
|
|
|
|
xlOptions: [{ id: -1, name: "全部" }], //线路数据
|
|
|
|
xlOptions: [{ id: -1, name: "全部" }], //线路数据
|
|
|
|
gtOptions: [{ id: -1, name: "全部" }], //杆塔数据
|
|
|
|
gtOptions: [{ id: -1, name: "全部" }], //杆塔数据
|
|
|
|
tdOptions: [{ id: -1, name: "全部", alias: null }], //通道数据
|
|
|
|
|
|
|
|
gjOptions: [{ id: -1, label: -1, name: "全部" }], //告警数据
|
|
|
|
gjOptions: [{ id: -1, label: -1, name: "全部" }], //告警数据
|
|
|
|
formdata: {
|
|
|
|
formdata: {
|
|
|
|
channel: 1,
|
|
|
|
|
|
|
|
dyId: -1,
|
|
|
|
dyId: -1,
|
|
|
|
lineId: -1,
|
|
|
|
lineId: -1,
|
|
|
|
towerId: -1,
|
|
|
|
towerId: -1,
|
|
|
@ -568,14 +558,9 @@ export default {
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
this.gjOptions = [{ id: -1, label: -1, name: "全部" }];
|
|
|
|
this.gjOptions = [{ id: -1, label: -1, name: "全部" }];
|
|
|
|
this.gjOptions = this.gjOptions.concat(res.data.list);
|
|
|
|
this.gjOptions = this.gjOptions.concat(res.data.list);
|
|
|
|
this.tdOptions = [{ id: -1, name: "全部", alias: null }];
|
|
|
|
|
|
|
|
this.tdOptions = this.tdOptions.concat(res.data.channellist);
|
|
|
|
|
|
|
|
console.log(this.tdOptions);
|
|
|
|
|
|
|
|
console.log(this.gjOptions);
|
|
|
|
console.log(this.gjOptions);
|
|
|
|
this.formdata.label = this.gjOptions[0].label;
|
|
|
|
this.formdata.label = this.gjOptions[0].label;
|
|
|
|
this.formdata.channel = this.tdOptions[1].id;
|
|
|
|
|
|
|
|
console.log(this.formdata.label);
|
|
|
|
console.log(this.formdata.label);
|
|
|
|
console.log(this.formdata.channel);
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {});
|
|
|
|
.catch((err) => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|