|
@@ -7,10 +7,18 @@
|
|
|
to="/"
|
|
|
>
|
|
|
<img
|
|
|
+ v-if="tenantLogo"
|
|
|
+ :src="tenantLogo"
|
|
|
+ class="sidebar-logo"
|
|
|
+ style="width: 36px; height: 36px"
|
|
|
+ />
|
|
|
+ <img
|
|
|
+ v-else
|
|
|
src="@/assets/images/base/logo.png"
|
|
|
class="sidebar-logo"
|
|
|
- style="width: 129px; height: 37px"
|
|
|
+ style="width: 36px; height: 36px"
|
|
|
/>
|
|
|
+ <span class="tenantName" :title="tenantName">{{ tenantName }}</span>
|
|
|
</router-link>
|
|
|
<!-- <breadcrumb class="breadcrumb-container" /> -->
|
|
|
<div class="indexlayout-top-menu">
|
|
@@ -126,22 +134,22 @@
|
|
|
</div>
|
|
|
<el-dropdown-menu slot="dropdown" class="user-dropdown">
|
|
|
<!-- divided -->
|
|
|
- <el-dropdown-item v-if="tenantStatus">
|
|
|
+ <el-dropdown-item v-if="tenantStatus" @click.native="onTenantChange">
|
|
|
<i class="icon_admin_tenant userSize"></i>
|
|
|
- <span class="dropdown-text" @click="onTenantChange">{{ tenantName }}</span>
|
|
|
+ <span class="dropdown-text">{{ tenantName }}</span>
|
|
|
<i style="margin-left: 3px" class="icon_admin_change userSize"></i>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="resetPassWord">
|
|
|
<i class="icon_admin_edit userSize"></i>
|
|
|
- <span class="dropdown-text" @click="resetPassWord">修改密码</span>
|
|
|
+ <span class="dropdown-text">修改密码</span>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item>
|
|
|
+ <el-dropdown-item @click.native="accountSetting">
|
|
|
<i class="icon_admin_account userSize"></i>
|
|
|
- <span class="dropdown-text" @click="accountSetting">账号设置</span>
|
|
|
+ <span class="dropdown-text">账号设置</span>
|
|
|
</el-dropdown-item>
|
|
|
- <el-dropdown-item style="border-top: 1px solid #EBEEF5;">
|
|
|
+ <el-dropdown-item style="border-top: 1px solid #EBEEF5;" @click.native="logout">
|
|
|
<i class="icon_admin_exit userSize"></i>
|
|
|
- <span class="dropdown-text" @click="logout">安全退出</span>
|
|
|
+ <span class="dropdown-text">安全退出</span>
|
|
|
</el-dropdown-item>
|
|
|
</el-dropdown-menu>
|
|
|
</el-dropdown>
|
|
@@ -304,7 +312,8 @@ export default {
|
|
|
tenantForm: {
|
|
|
tenantId: Number(tenantConfig.tenantId) || null,
|
|
|
},
|
|
|
- tenantList: []
|
|
|
+ tenantList: [],
|
|
|
+ tenantLogo: tenantConfig.tenantLogo || null,
|
|
|
};
|
|
|
},
|
|
|
|
|
@@ -359,9 +368,11 @@ export default {
|
|
|
if(res) {
|
|
|
const tenantForm = this.tenantForm
|
|
|
let tenantName = null
|
|
|
+ let tenantLogo = null
|
|
|
this.tenantList.forEach(item => {
|
|
|
if(item.id == tenantForm.tenantId) {
|
|
|
tenantName = item.name
|
|
|
+ tenantLogo = item.logo
|
|
|
}
|
|
|
});
|
|
|
let tenantConfig = sessionStorage.getItem('tenantConfig')
|
|
@@ -371,6 +382,7 @@ export default {
|
|
|
// if(url == this.$route.path) {
|
|
|
tenantConfig.tenantId = tenantForm.tenantId
|
|
|
tenantConfig.tenantName = tenantName
|
|
|
+ tenantConfig.tenantLogo = tenantLogo
|
|
|
sessionStorage.setItem('tenantConfig', JSON.stringify(tenantConfig))
|
|
|
this.$router.push({
|
|
|
path: '/redirect',
|
|
@@ -683,4 +695,18 @@ export default {
|
|
|
justify-content: center;
|
|
|
height: 75px;
|
|
|
}
|
|
|
+.sidebar-logo {
|
|
|
+ margin-right: 8px;
|
|
|
+}
|
|
|
+.tenantName {
|
|
|
+ font-size: 20px;
|
|
|
+ font-family: PingFangSC-Semibold, PingFang SC;
|
|
|
+ font-weight: 600;
|
|
|
+ color: #FFFFFF;
|
|
|
+ line-height: 28px;
|
|
|
+ max-width: 150px;
|
|
|
+ white-space: nowrap;
|
|
|
+ text-overflow: ellipsis;
|
|
|
+ overflow: hidden;
|
|
|
+}
|
|
|
</style>
|