Browse Source

按权限展示水电

master
wangyx 4 weeks ago
parent
commit
ec8099937f
  1. 6
      pages/tabBar/work/index.vue
  2. 2
      pagesA/sdPage/sfReport.vue

6
pages/tabBar/work/index.vue

@ -38,7 +38,7 @@
</view> </view>
</view> </view>
<view class="conItem"> <view class="conItem" v-if="showElectric || showWater">
<view class="conItem-title">水电</view> <view class="conItem-title">水电</view>
<view class="conItem-cont"> <view class="conItem-cont">
<view <view
@ -91,6 +91,8 @@ export default {
return { return {
showCheckOut: false, // showCheckOut: false, //
showInspection: false, // showInspection: false, //
showElectric: false, //
showWater: false, //
fyList: [ fyList: [
// { image: '/static/img/.png', text: '' }, // { image: '/static/img/.png', text: '' },
{ image: "/static/img/退房检查.png", text: "退房检查" }, { image: "/static/img/退房检查.png", text: "退房检查" },
@ -140,6 +142,8 @@ export default {
} }
this.showCheckOut = hasMenu(res.data || res, "Check_out"); this.showCheckOut = hasMenu(res.data || res, "Check_out");
this.showInspection = hasMenu(res.data || res, "Inspection"); this.showInspection = hasMenu(res.data || res, "Inspection");
this.showElectric = hasMenu(res.data || res, "ElectricMeterRecord");
this.showWater = hasMenu(res.data || res, "WaterMeterRecord");
}, },
handelFyClick(item) { handelFyClick(item) {
if (item.text == "退房检查") { if (item.text == "退房检查") {

2
pagesA/sdPage/sfReport.vue

@ -129,7 +129,7 @@
<view style="color: #f93838; margin-right: 4rpx; font-size: 24rpx" <view style="color: #f93838; margin-right: 4rpx; font-size: 24rpx"
>*</view >*</view
> >
<text>图片/视频</text> <text>上传图片</text>
</view> </view>
<u-upload <u-upload
:max-count="10" :max-count="10"

Loading…
Cancel
Save