提交app代码
This commit is contained in:
@@ -44,7 +44,7 @@
|
||||
<!-- 工程列表 -->
|
||||
<template v-show="engineeringList.length" v-if="userInfo.authorities === 'engineering_user'">
|
||||
<view class="canneng-index-title mt20">工程列表</view>
|
||||
<Engineering ref="engineering" :store="store" @refresh="store.search()"/>
|
||||
<Engineering ref="engineering" :store="store" @refresh="store.search()" />
|
||||
</template>
|
||||
<!-- 设备列表 -->
|
||||
<template v-else v-show="engineeringList.length">
|
||||
@@ -271,6 +271,22 @@ export default {
|
||||
this.init()
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
uni.setTabBarItem({
|
||||
index: 2,
|
||||
visible: true,
|
||||
})
|
||||
if (uni.getStorageSync(this.$cacheKey.userInfo).authorities === 'tourist') {
|
||||
uni.setTabBarItem({
|
||||
index: 2,
|
||||
visible: false,
|
||||
})
|
||||
uni.showToast({
|
||||
title: '已同步设备历史数据',
|
||||
icon: 'none',
|
||||
})
|
||||
}
|
||||
},
|
||||
}
|
||||
</script>
|
||||
<style lang="scss">
|
||||
|
||||
Reference in New Issue
Block a user