vue2-client 1.14.33 → 1.14.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -143,8 +143,8 @@ export default {
143
143
  handler () {
144
144
  if (this.userInfo) {
145
145
  console.log('userinfo', this.userInfo)
146
- this.openUserBtnShow = this.userInfo.f_meter_type.includes('物联网表')
147
- this.valveBtnShow = this.userInfo.f_meter_type.includes('物联网表') && this.userInfo.f_user_state !== '停用'
146
+ this.openUserBtnShow = this.userInfo.f_meter_type.includes('物联网表') && this.login?.r.includes('开户权限')
147
+ this.valveBtnShow = this.userInfo.f_meter_type.includes('物联网表') && this.userInfo.f_user_state !== '停用' && this.login?.r.includes('开关阀权限')
148
148
  }
149
149
  },
150
150
  deep: true
@@ -277,7 +277,7 @@ export default {
277
277
  },
278
278
  mounted () {},
279
279
  computed: {
280
- ...mapState('account', { currUser: 'user' }),
280
+ ...mapState('account', { currUser: 'user',login: 'login' }),
281
281
  ...mapState('setting', { isMobile: 'isMobile' })
282
282
  }
283
283
  }