From 0fc30e29566d3356cf3860ce1770f1ac315d5c88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=AF=E5=B0=8F=E7=8E=8B=E5=91=80=5C24601?= <819653817@qq.com> Date: Mon, 8 Apr 2024 18:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=9B=E8=A1=8C=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- subpages/nohouse/pages/nohouse/nohouse.js | 9 ++++++++- .../pages/resnoinformation/resnoinformation.js | 3 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/subpages/nohouse/pages/nohouse/nohouse.js b/subpages/nohouse/pages/nohouse/nohouse.js index 20288ee..074838f 100644 --- a/subpages/nohouse/pages/nohouse/nohouse.js +++ b/subpages/nohouse/pages/nohouse/nohouse.js @@ -15,7 +15,6 @@ Page({ */ data: { - cascaderName:'海伦路街道', ShowTree: false, searchOrgIdPath:'', angencyList:[], @@ -27,6 +26,7 @@ Page({ cascaderFwValue: '', cascaderValue:'', dictType:[], + maxLength:5, showResident:false, cascaderName:null, showStreet:false, @@ -239,6 +239,13 @@ onFinish(e) { level, }, }); + if(this.data.cascaderName.length>=this.data.maxLength){ + this.setData({ + cascaderName :this.data.cascaderName.substring(0, this.data.maxLength) + '...' + }) + + } + console.log('qwe',this.data.cascaderName) this.getTableData() }, diff --git a/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js b/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js index 5e683a6..34bcf8b 100644 --- a/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js +++ b/subpages/resnoinformation/pages/resnoinformation/resnoinformation.js @@ -256,7 +256,8 @@ Page({ level, }, }); - this.getTableData() + + this.getTopTreeData() }, }) \ No newline at end of file