自测bug

This commit is contained in:
2025-02-18 08:44:43 +08:00
parent 881eace12f
commit 6e774dfc5d
18 changed files with 51 additions and 57 deletions

View File

@@ -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) {