This commit is contained in:
parent
230e70abbb
commit
cfcfe5b58f
|
|
@ -317,7 +317,7 @@ export default {
|
||||||
this.typeList2 = []
|
this.typeList2 = []
|
||||||
if (this.isTool) {
|
if (this.isTool) {
|
||||||
const params = {
|
const params = {
|
||||||
typeId: this.queryParams.typeId,
|
typeId: this.queryParams.typeId == 0 ? '' : this.queryParams.typeId,
|
||||||
pageNum: this.queryParams.pageNum,
|
pageNum: this.queryParams.pageNum,
|
||||||
pageSize: this.queryParams.pageSize,
|
pageSize: this.queryParams.pageSize,
|
||||||
}
|
}
|
||||||
|
|
@ -327,7 +327,11 @@ export default {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
})
|
})
|
||||||
} else {
|
} 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.typeList = response.data.rows
|
||||||
this.total = response.data.total
|
this.total = response.data.total
|
||||||
this.loading = false
|
this.loading = false
|
||||||
|
|
@ -363,7 +367,8 @@ export default {
|
||||||
label: '装备类型',
|
label: '装备类型',
|
||||||
id: 0,
|
id: 0,
|
||||||
children: filterTree(response.data),
|
children: filterTree(response.data),
|
||||||
level: 0,
|
level: 1,
|
||||||
|
isTool: false,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
this.treeOptions2 = [
|
this.treeOptions2 = [
|
||||||
|
|
@ -372,6 +377,7 @@ export default {
|
||||||
id: 0,
|
id: 0,
|
||||||
children: filterTree2(res.data),
|
children: filterTree2(res.data),
|
||||||
level: 0,
|
level: 0,
|
||||||
|
isTool: true,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
this.defaultExpandedKeys = this.collectExpandKeys(this.treeOptions)
|
this.defaultExpandedKeys = this.collectExpandKeys(this.treeOptions)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue