页面切图
This commit is contained in:
@@ -154,8 +154,11 @@ export default {
|
||||
} else if (e.item.text === '用户') {
|
||||
uni.navigateTo({ url: '/pages/device/user' })
|
||||
} else if (e.item.text === '报表') {
|
||||
// uni.navigateTo({ url: '/pages/device/user' })
|
||||
this.$util.toast('效果是直接打开报表')
|
||||
}else if (e.item.text === '版本') {
|
||||
this.$util.toast('功能暂未开放')
|
||||
}else if (e.item.text === '模版') {
|
||||
this.$util.toast('效果是功能暂未开放直接打开报表')
|
||||
}
|
||||
this.$refs.fab.close()
|
||||
},
|
||||
@@ -167,6 +170,15 @@ export default {
|
||||
let userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
console.log(userInfo.role);
|
||||
switch (userInfo.role) {
|
||||
case 1:
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/version.png',
|
||||
text: '版本',
|
||||
}, {
|
||||
iconPath: '/static/template.png',
|
||||
text: '模版',
|
||||
})
|
||||
break;
|
||||
case 3:
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/transfer.png',
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
</view>
|
||||
<uni-fab ref="fab" direction="vertical" horizontal="right" vertical="bottom" :content="content"
|
||||
@trigger="trigger" />
|
||||
|
||||
|
||||
</view>
|
||||
</view>
|
||||
</Cn-page>
|
||||
@@ -121,6 +121,15 @@ export default {
|
||||
let userInfo = uni.getStorageSync(this.$cacheKey.userInfo)
|
||||
console.log(userInfo.role);
|
||||
switch (userInfo.role) {
|
||||
case 1:
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/version.png',
|
||||
text: '版本',
|
||||
}, {
|
||||
iconPath: '/static/template.png',
|
||||
text: '模版',
|
||||
})
|
||||
break;
|
||||
case 3:
|
||||
this.content.splice(1, 0, {
|
||||
iconPath: '/static/transfer.png',
|
||||
@@ -128,7 +137,7 @@ export default {
|
||||
})
|
||||
break;
|
||||
case 4:
|
||||
this.content.splice(0, 0,{
|
||||
this.content.splice(0, 0, {
|
||||
iconPath: '/static/subordinate.png',
|
||||
text: '用户',
|
||||
}, {
|
||||
|
||||
Reference in New Issue
Block a user