master
13703816893 2 years ago
parent 82dd0d9d25
commit ad87a737c7

@ -34,7 +34,7 @@
</el-select>
</el-form-item>
<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>
</el-select>
@ -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) {

Loading…
Cancel
Save