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