master
fanluyan 2 years ago
parent 94c09ee072
commit 87e904bec6

@ -1,7 +1,7 @@
<template> <template>
<div class="realTimeSearch"> <div class="realTimeSearch">
<div class="searchMain" > <div class="searchMain">
<div class="searchBox"> <div class="searchBox" ref="searchref">
<el-form :inline="true" :model="formdata" class="demo-form-inline"> <el-form :inline="true" :model="formdata" class="demo-form-inline">
<el-form-item label="电压等级"> <el-form-item label="电压等级">
<el-select v-model="formdata.dyid" @change="getSearchxl"> <el-select v-model="formdata.dyid" @change="getSearchxl">
@ -35,7 +35,12 @@
</el-form-item> </el-form-item>
<el-form-item label="装置名称"> <el-form-item label="装置名称">
<el-select v-model="formdata.termid" @change="getSearchtd"> <el-select v-model="formdata.termid" @change="getSearchtd">
<el-option v-for="item in zzOptions" :key="item.id" :label="item.name" :value="item.id"> <el-option
v-for="item in zzOptions"
:key="item.id"
:label="item.name"
:value="item.id"
>
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
@ -104,7 +109,7 @@
></video> ></video>
<div class="caption"> <div class="caption">
<p class="infoTop"> <p class="infoTop">
{{ item.linename }} / {{ item.displayname }}; {{ item.linename }} / {{ item.displayname }}
</p> </p>
<p class="infoBottom"> <p class="infoBottom">
拍照时间{{ 拍照时间{{
@ -155,11 +160,11 @@ export default {
zoomable: true, zoomable: true,
url: "src", url: "src",
}, },
dyOptions: [{ id: 0, name: '全部'}], // dyOptions: [{ id: 0, name: "全部" }], //
xlOptions: [{ id: 0, name: '全部'}], //线 xlOptions: [{ id: 0, name: "全部" }], //线
gtOptions: [{ id: 0, name: '全部'}], // gtOptions: [{ id: 0, name: "全部" }], //
zzOptions: [{ id: 0, name: '全部'}], // zzOptions: [{ id: 0, name: "全部" }], //
tdOptions: [{ id: 0, name: '全部'}], // tdOptions: [{ id: 0, name: "全部" }], //
formdata: { formdata: {
dyid: "", dyid: "",
lineid: "", lineid: "",
@ -206,7 +211,7 @@ export default {
getSearchxl() { getSearchxl() {
getSearchInfo({ type: 2, id: this.formdata.dyid }) getSearchInfo({ type: 2, id: this.formdata.dyid })
.then((res) => { .then((res) => {
this.xlOptions = [{ id: 0, name: '全部'}] this.xlOptions = [{ id: 0, name: "全部" }];
this.xlOptions = this.xlOptions.concat(res.data.list); this.xlOptions = this.xlOptions.concat(res.data.list);
this.formdata.lineid = this.xlOptions[0].id; this.formdata.lineid = this.xlOptions[0].id;
this.getSearchgt(); this.getSearchgt();
@ -217,10 +222,10 @@ export default {
getSearchgt() { getSearchgt() {
getSearchInfo({ type: 3, id: this.formdata.lineid }) getSearchInfo({ type: 3, id: this.formdata.lineid })
.then((res) => { .then((res) => {
this.gtOptions = [{ id: 0, name: '全部'}] this.gtOptions = [{ id: 0, name: "全部" }];
this.gtOptions = this.gtOptions.concat(res.data.list); this.gtOptions = this.gtOptions.concat(res.data.list);
this.formdata.towerid = this.gtOptions[0].id; this.formdata.towerid = this.gtOptions[0].id;
this.getSearchzz() this.getSearchzz();
}) })
.catch((err) => {}); .catch((err) => {});
}, },
@ -228,7 +233,7 @@ export default {
getSearchzz() { getSearchzz() {
getSearchInfo({ type: 4, id: this.formdata.towerid }) getSearchInfo({ type: 4, id: this.formdata.towerid })
.then((res) => { .then((res) => {
this.zzOptions = [{ id: 0, name: '全部'}] this.zzOptions = [{ id: 0, name: "全部" }];
this.zzOptions = this.zzOptions.concat(res.data.list); this.zzOptions = this.zzOptions.concat(res.data.list);
this.formdata.termid = this.zzOptions[0].id; this.formdata.termid = this.zzOptions[0].id;
this.getSearchtd(); this.getSearchtd();
@ -239,7 +244,7 @@ export default {
getSearchtd() { getSearchtd() {
getSearchInfo({ type: 5, id: this.formdata.termid }) getSearchInfo({ type: 5, id: this.formdata.termid })
.then((res) => { .then((res) => {
this.tdOptions = [{ id: 0, name: '全部'}] this.tdOptions = [{ id: 0, name: "全部" }];
this.tdOptions = this.tdOptions.concat(res.data.list); this.tdOptions = this.tdOptions.concat(res.data.list);
this.formdata.channelid = this.tdOptions[0].id; this.formdata.channelid = this.tdOptions[0].id;
// if (this.signtype == 0) { // if (this.signtype == 0) {

Loading…
Cancel
Save