diff --git a/weapp/package/AIOTOverview/AIOTOverview.wxml b/weapp/package/AIOTOverview/AIOTOverview.wxml index 015d3e0..aaeb148 100644 --- a/weapp/package/AIOTOverview/AIOTOverview.wxml +++ b/weapp/package/AIOTOverview/AIOTOverview.wxml @@ -14,7 +14,7 @@ 设备数量 - {{data.length}} + {{data.length+'个'}} 正常设备 diff --git a/weapp/package/groundDisasterInspection/groundDisasterInspection.js b/weapp/package/groundDisasterInspection/groundDisasterInspection.js index cb11132..0a1dfe5 100644 --- a/weapp/package/groundDisasterInspection/groundDisasterInspection.js +++ b/weapp/package/groundDisasterInspection/groundDisasterInspection.js @@ -78,8 +78,9 @@ Page({ const that = this // that.getPatrolTemplate() Request.get(getPatrolTemplates()).then(res=>{ - if(res){ - const rlst=res.rows?.map(item=>{return { + if(res.rows.length){ + //只需要地灾的相关模板 + const rlst=res.rows?.filter(q=>q.name.includes('地灾'))?.map(item=>{return { id:item.id, name:item.name }})