diff --git a/src/views/realTimeSearch/index.vue b/src/views/realTimeSearch/index.vue index f0016f5..a7f848e 100644 --- a/src/views/realTimeSearch/index.vue +++ b/src/views/realTimeSearch/index.vue @@ -34,7 +34,7 @@ - + @@ -165,7 +165,7 @@ export default { lineid: "", towerid: "", channelid: "", - deviceid: "", + termid: "", timeVal: "", }, picList: [], @@ -206,6 +206,7 @@ export default { getSearchxl() { getSearchInfo({ type: 2, id: this.formdata.dyid }) .then((res) => { + this.xlOptions = [{ id: 0, name: '全部'}] this.xlOptions = this.xlOptions.concat(res.data.list); this.formdata.lineid = this.xlOptions[0].id; this.getSearchgt(); @@ -216,6 +217,7 @@ export default { getSearchgt() { getSearchInfo({ type: 3, id: this.formdata.lineid }) .then((res) => { + this.gtOptions = [{ id: 0, name: '全部'}] this.gtOptions = this.gtOptions.concat(res.data.list); this.formdata.towerid = this.gtOptions[0].id; this.getSearchzz() @@ -226,16 +228,18 @@ export default { getSearchzz() { getSearchInfo({ type: 4, id: this.formdata.towerid }) .then((res) => { + this.zzOptions = [{ id: 0, name: '全部'}] this.zzOptions = this.zzOptions.concat(res.data.list); - this.formdata.deviceid = this.zzOptions[0].id; + this.formdata.termid = this.zzOptions[0].id; this.getSearchtd(); }) .catch((err) => {}); }, //获取通道数据 getSearchtd() { - getSearchInfo({ type: 5, id: this.formdata.deviceid }) + getSearchInfo({ type: 5, id: this.formdata.termid }) .then((res) => { + this.tdOptions = [{ id: 0, name: '全部'}] this.tdOptions = this.tdOptions.concat(res.data.list); this.formdata.channelid = this.tdOptions[0].id; // if (this.signtype == 0) {