|
|
@ -9,17 +9,21 @@ |
|
|
|
<!-- <uni-list-item title="工号" clickable @click="onClick" :rightText="usermsg.phoneNumber"></uni-list-item> --> |
|
|
|
<uni-list-item title="姓名" clickable :rightText="userName" thumb="/static/icon_personal_name.png"> |
|
|
|
</uni-list-item> |
|
|
|
|
|
|
|
|
|
|
|
<uni-list-item v-if="userInfo!=null" title="部门" :rightText="userInfo.dept.name" |
|
|
|
thumb="/static/icon_personal_password.png"></uni-list-item> |
|
|
|
<uni-list-item v-if="userInfo!=null" title="岗位" :rightText="(userInfo.posts || []).map(post => post.name).join(',')" |
|
|
|
thumb="/static/icon_personal_password.png"></uni-list-item> |
|
|
|
<uni-list-item v-if="userInfo!=null" title="角色" :rightText="(userInfo.roles || []).map(role => role.name).join(',')" |
|
|
|
thumb="/static/icon_personal_password.png"></uni-list-item> |
|
|
|
<uni-list-item v-if="userInfo!=null" title="岗位" |
|
|
|
:rightText="(userInfo.posts || []).map(post => post.name).join(',')" |
|
|
|
thumb="/static/icon_personal_password.png"></uni-list-item> |
|
|
|
<uni-list-item v-if="userInfo!=null" title="角色" |
|
|
|
:rightText="(userInfo.roles || []).map(role => role.name).join(',')" |
|
|
|
thumb="/static/icon_personal_password.png"></uni-list-item> |
|
|
|
<uni-list-item title="" clickable rightText="清除缓存" thumb="/static/icon_personal_name.png" |
|
|
|
@click="clear"></uni-list-item> |
|
|
|
<uni-list-item title="修改密码" link to="/pages/setter/passwordpage" |
|
|
|
thumb="/static/icon_personal_password.png"></uni-list-item> |
|
|
|
<uni-list-item title="服务器地址" |
|
|
|
thumb="/static/icon_personal_password.png"></uni-list-item> |
|
|
|
<!-- <uni-list-item title="参数设置" link to="/pages/setter/setterDetail" |
|
|
|
thumb="/static/icon_personal_setting.png"></uni-list-item> --> |
|
|
|
</uni-list> |
|
|
@ -44,7 +48,9 @@ |
|
|
|
removeToken |
|
|
|
} from '@/common/utils/auth' |
|
|
|
import { |
|
|
|
ref,reactive,nextTick |
|
|
|
ref, |
|
|
|
reactive, |
|
|
|
nextTick |
|
|
|
} from "vue"; |
|
|
|
import { |
|
|
|
onLoad |
|
|
@ -53,18 +59,18 @@ |
|
|
|
const userName = ref(store.state.user.name); |
|
|
|
let test = ref("123"); |
|
|
|
let userInfo = ref(null); |
|
|
|
onLoad(()=>{ |
|
|
|
console.log(11) |
|
|
|
getUserProfile().then(res=>{ |
|
|
|
userInfo.value = res.data |
|
|
|
// nextTick(()=>{ |
|
|
|
// const userInfo = res.data.nickname |
|
|
|
// console.log("打印",userInfo) |
|
|
|
// }) |
|
|
|
|
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
onLoad(() => { |
|
|
|
console.log(11) |
|
|
|
getUserProfile().then(res => { |
|
|
|
userInfo.value = res.data |
|
|
|
// nextTick(()=>{ |
|
|
|
// const userInfo = res.data.nickname |
|
|
|
// console.log("打印",userInfo) |
|
|
|
// }) |
|
|
|
|
|
|
|
}) |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
function handlerlogout() { |
|
|
|
store.dispatch('LogOut', {}).then(() => { |
|
|
|