|
|
@ -34,7 +34,7 @@
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item label="装置名称">
|
|
|
|
<el-form-item label="装置名称">
|
|
|
|
<el-select v-model="formdata.deviceid" @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>
|
|
|
@ -165,7 +165,7 @@ export default {
|
|
|
|
lineid: "",
|
|
|
|
lineid: "",
|
|
|
|
towerid: "",
|
|
|
|
towerid: "",
|
|
|
|
channelid: "",
|
|
|
|
channelid: "",
|
|
|
|
deviceid: "",
|
|
|
|
termid: "",
|
|
|
|
timeVal: "",
|
|
|
|
timeVal: "",
|
|
|
|
},
|
|
|
|
},
|
|
|
|
picList: [],
|
|
|
|
picList: [],
|
|
|
@ -206,6 +206,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 = 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();
|
|
|
@ -216,6 +217,7 @@ 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 = 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()
|
|
|
@ -226,16 +228,18 @@ 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 = this.zzOptions.concat(res.data.list);
|
|
|
|
this.zzOptions = this.zzOptions.concat(res.data.list);
|
|
|
|
this.formdata.deviceid = this.zzOptions[0].id;
|
|
|
|
this.formdata.termid = this.zzOptions[0].id;
|
|
|
|
this.getSearchtd();
|
|
|
|
this.getSearchtd();
|
|
|
|
})
|
|
|
|
})
|
|
|
|
.catch((err) => {});
|
|
|
|
.catch((err) => {});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
//获取通道数据
|
|
|
|
//获取通道数据
|
|
|
|
getSearchtd() {
|
|
|
|
getSearchtd() {
|
|
|
|
getSearchInfo({ type: 5, id: this.formdata.deviceid })
|
|
|
|
getSearchInfo({ type: 5, id: this.formdata.termid })
|
|
|
|
.then((res) => {
|
|
|
|
.then((res) => {
|
|
|
|
|
|
|
|
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) {
|
|
|
|