This commit is contained in:
BianLzhaoMin 2025-12-12 19:31:06 +08:00
parent 230e70abbb
commit cfcfe5b58f
1 changed files with 9 additions and 3 deletions

View File

@ -317,7 +317,7 @@ export default {
this.typeList2 = []
if (this.isTool) {
const params = {
typeId: this.queryParams.typeId,
typeId: this.queryParams.typeId == 0 ? '' : this.queryParams.typeId,
pageNum: this.queryParams.pageNum,
pageSize: this.queryParams.pageSize,
}
@ -327,7 +327,11 @@ export default {
this.loading = false
})
} else {
getList(this.queryParams).then((response) => {
const params = { ...this.queryParams }
if (params.typeId == 0) {
params.typeId = ''
}
getList(params).then((response) => {
this.typeList = response.data.rows
this.total = response.data.total
this.loading = false
@ -363,7 +367,8 @@ export default {
label: '装备类型',
id: 0,
children: filterTree(response.data),
level: 0,
level: 1,
isTool: false,
},
]
this.treeOptions2 = [
@ -372,6 +377,7 @@ export default {
id: 0,
children: filterTree2(res.data),
level: 0,
isTool: true,
},
]
this.defaultExpandedKeys = this.collectExpandKeys(this.treeOptions)