.
This commit is contained in:
parent
ca253a2cd4
commit
4b74506744
@ -17,11 +17,14 @@
|
||||
<image v-if="avatar" @click="toPage('avatar')" :src="avatar" class="cu-avatar xl round"
|
||||
mode="widthFix">
|
||||
</image>
|
||||
<view v-if="name" @click="toPage('info')" class="user-info">
|
||||
<view @click="toPage('info')" class="user-info">
|
||||
<view class="u_title">
|
||||
<text><text style="font-size: 30rpx;">系统管理员</text>(系统管理员)</text>
|
||||
<text>15232658595</text>
|
||||
<text>浙江及时雨智能灌溉设备有限责任公司</text>
|
||||
<text>
|
||||
<text style="font-size: 30rpx;">{{ user.userName }}</text>
|
||||
({{user.role.roleName}})
|
||||
</text>
|
||||
<text>{{user.mobilePhone}}</text>
|
||||
<text>{{user.company.companyName}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@ -117,7 +120,7 @@
|
||||
ref
|
||||
} from "vue";
|
||||
import config from '@/config.js'
|
||||
const name = store.state.user.name;
|
||||
const user = store.state.user.user;
|
||||
const version = config.appInfo.version;
|
||||
const avatar = ref(store.state.user.avatar);
|
||||
const windowHeight = ref(uni.getSystemInfoSync().windowHeight - 50);
|
||||
@ -127,13 +130,6 @@
|
||||
avatar.value = store.state.user.avatar;
|
||||
})
|
||||
|
||||
//有无菜单权限
|
||||
function setAuthorizationt(name) {
|
||||
// console.log(rolses)
|
||||
// return rolses.findIndex(item => item.children[0].name == name) > -1
|
||||
|
||||
return true;
|
||||
}
|
||||
//页面跳转
|
||||
function toPage(type) {
|
||||
switch (type) {
|
||||
|
Loading…
Reference in New Issue
Block a user