设备管理条件

master
ihzero 2024-01-30 15:24:48 +08:00
parent 9abbb0893b
commit 176abb9c7d
1 changed files with 27 additions and 0 deletions

View File

@ -443,11 +443,38 @@
},
},
onLoad() {
this.getSupplier();
this.getProject();
this.queryDataList();
this.getDeviceTypes();
this.getAgriculturalBasic();
},
methods: {
getSupplier(){
this.$http.get('/api/keywords',{params:{
type_key:'device-supplier'
}}).then(({data})=>{
this.supplierlist=data.data.map(e=>{
return {
label:e.name,
value:e.key
}
})
console.log(this.supplierlist);
})
},
getProject(){
this.$http.get('/api/keywords',{params:{
type_key:'device-project'
}}).then(({data})=>{
this.projectlist=data.data.map(e=>{
return {
label:e.name,
value:e.key
}
})
})
},
queryBtn(){
this.list = [];
this.queryDataList(true);