.
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"
|
<image v-if="avatar" @click="toPage('avatar')" :src="avatar" class="cu-avatar xl round"
|
||||||
mode="widthFix">
|
mode="widthFix">
|
||||||
</image>
|
</image>
|
||||||
<view v-if="name" @click="toPage('info')" class="user-info">
|
<view @click="toPage('info')" class="user-info">
|
||||||
<view class="u_title">
|
<view class="u_title">
|
||||||
<text><text style="font-size: 30rpx;">系统管理员</text>(系统管理员)</text>
|
<text>
|
||||||
<text>15232658595</text>
|
<text style="font-size: 30rpx;">{{ user.userName }}</text>
|
||||||
<text>浙江及时雨智能灌溉设备有限责任公司</text>
|
({{user.role.roleName}})
|
||||||
|
</text>
|
||||||
|
<text>{{user.mobilePhone}}</text>
|
||||||
|
<text>{{user.company.companyName}}</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@ -117,7 +120,7 @@
|
|||||||
ref
|
ref
|
||||||
} from "vue";
|
} from "vue";
|
||||||
import config from '@/config.js'
|
import config from '@/config.js'
|
||||||
const name = store.state.user.name;
|
const user = store.state.user.user;
|
||||||
const version = config.appInfo.version;
|
const version = config.appInfo.version;
|
||||||
const avatar = ref(store.state.user.avatar);
|
const avatar = ref(store.state.user.avatar);
|
||||||
const windowHeight = ref(uni.getSystemInfoSync().windowHeight - 50);
|
const windowHeight = ref(uni.getSystemInfoSync().windowHeight - 50);
|
||||||
@ -127,13 +130,6 @@
|
|||||||
avatar.value = store.state.user.avatar;
|
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) {
|
function toPage(type) {
|
||||||
switch (type) {
|
switch (type) {
|
||||||
|
Loading…
Reference in New Issue
Block a user