@@ -33,7 +33,8 @@ Page({
},
onLoad(options) {
this.setData({
- userrole: wx.getStorageSync('userrole')
+ userrole: wx.getStorageSync('userrole'),
+ insert: wx.getStorageSync('auth').wreturn.options.some(v => v == 'insert'), //查询新增权限
})
this.getList(true)
@@ -16,7 +16,7 @@
<view style="height: 20px;" />
</Yl_ListBox>
</view>
-<Yl_FloatingButton bindtap="toAdd" />
+<Yl_FloatingButton wx:if="{{insert}}" bindtap="toAdd" />
<view class="DrawerClose {{modalName=='viewModal'?'show':''}}" bindtap="hideModal">
<text class="cuIcon-pullright"></text>