diff --git a/weapp/package/startInspection/startInspection.js b/weapp/package/startInspection/startInspection.js index c2949ad..49b561a 100644 --- a/weapp/package/startInspection/startInspection.js +++ b/weapp/package/startInspection/startInspection.js @@ -406,6 +406,18 @@ Page({ } return false; }) + if (!pointPlan.length) { + wx.showModal({ + title: '提示', + content: '你没有当前点位的巡检权限,请联系管理员进行授权', + showCancel: false, + success: function () { + wx.switchTab({ + url: '/pages/index/index', + }) + } + }) + } that.setData({ planList: pointPlan })