自测bug
This commit is contained in:
@@ -92,7 +92,8 @@ export default {
|
||||
type: 'select',
|
||||
label: '能源类型',
|
||||
selectOptions: [],
|
||||
param: 'energyTypeId'
|
||||
param: 'energyTypeId',
|
||||
clearable: false
|
||||
},
|
||||
{
|
||||
type: 'select',
|
||||
@@ -162,7 +163,6 @@ export default {
|
||||
window.addEventListener('resize', () => {
|
||||
this.tableH = this.tableHeight(260)
|
||||
})
|
||||
this.getList();
|
||||
this.getTypeList()
|
||||
// 获取对象树形结构
|
||||
this.getObjTree()
|
||||
@@ -171,7 +171,10 @@ export default {
|
||||
getTypeList() {
|
||||
getEnergyTypeListAll().then((res) => {
|
||||
this.formConfig[0].selectOptions = res.data || []
|
||||
this.formConfig[0].defaultSelect = res.data[0].id
|
||||
this.queryParams.energyTypeId = res.data[0].id
|
||||
this.energyTypeList = res.data || []
|
||||
this.getList();
|
||||
})
|
||||
},
|
||||
buttonClick(val) {
|
||||
|
||||
Reference in New Issue
Block a user