设备管理条件
parent
9abbb0893b
commit
176abb9c7d
|
|
@ -443,11 +443,38 @@
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
|
this.getSupplier();
|
||||||
|
this.getProject();
|
||||||
this.queryDataList();
|
this.queryDataList();
|
||||||
this.getDeviceTypes();
|
this.getDeviceTypes();
|
||||||
this.getAgriculturalBasic();
|
this.getAgriculturalBasic();
|
||||||
},
|
},
|
||||||
methods: {
|
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(){
|
queryBtn(){
|
||||||
this.list = [];
|
this.list = [];
|
||||||
this.queryDataList(true);
|
this.queryDataList(true);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue