From 77c3d82d1b7c38c95dc03bbe6da58d9087e68019 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Fri, 19 Apr 2024 11:13:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=87=E6=8D=A2=E7=BB=84=E7=BB=87=E6=97=B6?= =?UTF-8?q?=E6=9C=89=E4=B8=BA=E7=A9=BA=E7=9A=84=E6=83=85=E5=86=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/resiAndHouse/resiAndHouse.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pages/resiAndHouse/resiAndHouse.js b/pages/resiAndHouse/resiAndHouse.js index 0864023..d4f097c 100644 --- a/pages/resiAndHouse/resiAndHouse.js +++ b/pages/resiAndHouse/resiAndHouse.js @@ -259,12 +259,13 @@ Page({ }, onChangeJm(e) { const { value, tabIndex, selectedOptions } = e.detail; - if (tabIndex > 0 && selectedOptions[selectedOptions.length - 1].level != 'house') { - const level = selectedOptions[selectedOptions.length - 1].level - const orgId = selectedOptions[selectedOptions.length - 1].id + if (tabIndex > 0 ) { + const level = selectedOptions[selectedOptions.length - 1].level; + const orgId = selectedOptions[selectedOptions.length - 1].id; + const cascaderName = selectedOptions.map(item=>item.label).join(''); this.setData({ searchOrgIdPath:orgId, - cascaderName:selectedOptions.map(item=>item.label).join(','), + cascaderName, tableData:[], pageNo: 1, }) @@ -300,10 +301,11 @@ Page({ onFinishJm(e) { this.setData({ pageNo: 1, - searchOrgIdPath: e.detail.selectedOptions[e.detail.selectedOptions.length - 1].agencyId, - cascaderName: e.detail.selectedOptions.map(item => item.agencyName).join(','), + searchOrgIdPath: e.detail.selectedOptions[e.detail.selectedOptions.length - 1].id, + cascaderName: e.detail.selectedOptions.map(item => item.label).join(','), tableData: [] }) + this.getTableData() this.getAllOrgCategoryCount() }, onChangeFw(e) {