From cfcfe5b58f0be61ba429c7855c7c3cfd230e2416 Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 12 Dec 2025 19:31:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/lessor/equipment/equipType/index.vue | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/views/lessor/equipment/equipType/index.vue b/src/views/lessor/equipment/equipType/index.vue index f68229ca..1aefcbf5 100644 --- a/src/views/lessor/equipment/equipType/index.vue +++ b/src/views/lessor/equipment/equipType/index.vue @@ -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)