|
|
@@ -12,16 +12,19 @@
|
|
|
aria-haspopup="true"
|
|
|
aria-expanded="false"
|
|
|
>
|
|
|
-
|
|
|
{{ loginInfo != undefined ? loginInfo.userName : "" }}
|
|
|
<span class="caret" />
|
|
|
</a>
|
|
|
<ul class="dropdown-menu">
|
|
|
<li>
|
|
|
- <a @click="setUserParameters">{{ $t("lang.top-nav-user-info.personalSettings") }}</a>
|
|
|
+ <a @click="setUserParameters">{{
|
|
|
+ $t("lang.top-nav-user-info.personalSettings")
|
|
|
+ }}</a>
|
|
|
</li>
|
|
|
<li>
|
|
|
- <a @click="logout"><i class="fa fa-sign-out pull-right" />{{ $t("lang.top-nav-user-info.cancellation") }}</a>
|
|
|
+ <a @click="logout"><i class="fa fa-sign-out pull-right" />{{
|
|
|
+ $t("lang.top-nav-user-info.cancellation")
|
|
|
+ }}</a>
|
|
|
</li>
|
|
|
</ul>
|
|
|
</li>
|
|
|
@@ -31,12 +34,13 @@
|
|
|
<script>
|
|
|
import Common from '../common/Common.js';
|
|
|
import AuthSettingResource from '../api/commom/AuthSettingResource.js';
|
|
|
+import store from '../store/index.js';
|
|
|
|
|
|
export default {
|
|
|
props: {
|
|
|
loginInfo: {
|
|
|
type: Object,
|
|
|
- default: function(){
|
|
|
+ default: function () {
|
|
|
return null;
|
|
|
},
|
|
|
},
|
|
|
@@ -44,16 +48,20 @@ export default {
|
|
|
|
|
|
data: function () {
|
|
|
this.Common = Common;
|
|
|
- return {
|
|
|
- };
|
|
|
+ return {};
|
|
|
},
|
|
|
|
|
|
computed: {
|
|
|
userImageSrc: function () {
|
|
|
- if (this.loginInfo == null || this.loginInfo.imageName == null) {
|
|
|
+ if (this.loginInfo == null || this.loginInfo.userImageUrl == null) {
|
|
|
return null;
|
|
|
}
|
|
|
- return Common.getThumbnailImageSrc('com.leanwo.prodog.base.model.User', this.loginInfo.imageName);
|
|
|
+
|
|
|
+ return Common.getResourceUrl(
|
|
|
+ 'image',
|
|
|
+ 'com.leanwo.prodog.base.model.User',
|
|
|
+ store.state.downloadStore.imageSrc,
|
|
|
+ );
|
|
|
},
|
|
|
},
|
|
|
|
|
|
@@ -106,9 +114,9 @@ export default {
|
|
|
|
|
|
<style scoped>
|
|
|
.user-profile-img {
|
|
|
- width: 29px;
|
|
|
- height: 29px;
|
|
|
- border-radius: 50%;
|
|
|
- margin-top: 10px;
|
|
|
+ width: 29px;
|
|
|
+ height: 29px;
|
|
|
+ border-radius: 50%;
|
|
|
+ margin-top: 10px;
|
|
|
}
|
|
|
</style>
|