logo更改
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
d6f9b5cc7d
commit
b8279e1f4c
|
@ -278,7 +278,7 @@ async function VueInit() {
|
||||||
if (eval(process.env.VUE_APP_LOGIN_FOR_PERMISSION)) {
|
if (eval(process.env.VUE_APP_LOGIN_FOR_PERMISSION)) {
|
||||||
setInterval(() => {
|
setInterval(() => {
|
||||||
var lang = zzSessionStorage.getItem('lang') ? zzSessionStorage.getItem('lang') : 'zh'
|
var lang = zzSessionStorage.getItem('lang') ? zzSessionStorage.getItem('lang') : 'zh'
|
||||||
if (_vm.$route.path === '/ReviewersResearchForm' || _vm.$route.path === '/ReviewersResearch' || path === '/' || _vm.$route.path === '/login' || _vm.$route.path === '/researchForm' || _vm.$route.path === '/researchLogin' || _vm.$route.path === '/email-recompose' || _vm.$route.path === '/recompose' || _vm.$route.path === '/resetpassword' || _vm.$route.path === '/error') {
|
if (_vm.$route.path === '/ReviewersResearchForm' || _vm.$route.path === '/ReviewersResearch' || _vm.$route.path === '/' || _vm.$route.path === '/login' || _vm.$route.path === '/researchForm' || _vm.$route.path === '/researchLogin' || _vm.$route.path === '/email-recompose' || _vm.$route.path === '/recompose' || _vm.$route.path === '/resetpassword' || _vm.$route.path === '/error') {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (_vm.$store.state.user.userId !== zzSessionStorage.getItem('userId')) {
|
if (_vm.$store.state.user.userId !== zzSessionStorage.getItem('userId')) {
|
||||||
|
|
|
@ -7,15 +7,12 @@
|
||||||
<div class="login-l">
|
<div class="login-l">
|
||||||
<div class="login-logo">
|
<div class="login-logo">
|
||||||
<img
|
<img
|
||||||
v-if="language === 'zh'"
|
v-if="language === 'zh' && hospital.HospitalLogoPath"
|
||||||
:src="
|
:src="OSSclientConfig.basePath + hospital.HospitalLogoPath"
|
||||||
hospital.HospitalLogoPath
|
crossOrigin="anonymous"
|
||||||
? OSSclientConfig.basePath + hospital.HospitalLogoPath
|
|
||||||
: logoImg
|
|
||||||
"
|
|
||||||
alt=""
|
alt=""
|
||||||
/>
|
/>
|
||||||
<img v-else src="@/assets/zzlogo3.png" alt="" />
|
<!-- <img v-else src="@/assets/zzlogo3.png" alt="" /> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="login-image">
|
<div class="login-image">
|
||||||
<img src="@/assets/login-bg.png" />
|
<img src="@/assets/login-bg.png" />
|
||||||
|
|
|
@ -2,18 +2,17 @@
|
||||||
<div class="trials-navbar" style="position: relative">
|
<div class="trials-navbar" style="position: relative">
|
||||||
<div class="leftMenu">
|
<div class="leftMenu">
|
||||||
<img
|
<img
|
||||||
v-if="language === 'zh'"
|
v-if="language === 'zh' && hospital.HospitalLogoPath"
|
||||||
:src="
|
:src="OSSclientConfig.basePath + hospital.HospitalLogoPath"
|
||||||
hospital.HospitalLogoPath
|
crossOrigin="anonymous"
|
||||||
? OSSclientConfig.basePath + hospital.HospitalLogoPath
|
|
||||||
: logoImg
|
|
||||||
"
|
|
||||||
alt=""
|
alt=""
|
||||||
|
style="min-width: 170px;"
|
||||||
/>
|
/>
|
||||||
<img v-else src="@/assets/zzlogo3.png" alt="" />
|
<div v-else style="width: 170px;"></div>
|
||||||
|
<!-- <img v-else src="@/assets/zzlogo3.png" alt="" /> -->
|
||||||
<span style="white-space: nowrap">
|
<span style="white-space: nowrap">
|
||||||
<!-- 中心影像系统(EICS) -->
|
<!-- 中心影像系统(EICS) -->
|
||||||
{{ $t("trials:trials:title:eics") }}
|
{{ $t('trials:trials:title:eics') }}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="center-menu">
|
<div class="center-menu">
|
||||||
|
@ -38,7 +37,7 @@
|
||||||
>
|
>
|
||||||
<i class="el-icon-odometer" />
|
<i class="el-icon-odometer" />
|
||||||
<!-- 检查 -->
|
<!-- 检查 -->
|
||||||
<span slot="title">{{ $t("trials:menuTitle:inspection") }}</span>
|
<span slot="title">{{ $t('trials:menuTitle:inspection') }}</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item
|
<el-menu-item
|
||||||
v-if="!hasPermi(['role:zys'])"
|
v-if="!hasPermi(['role:zys'])"
|
||||||
|
@ -48,7 +47,7 @@
|
||||||
<i class="el-icon-box" />
|
<i class="el-icon-box" />
|
||||||
<!-- 我的项目 -->
|
<!-- 我的项目 -->
|
||||||
<span slot="title">
|
<span slot="title">
|
||||||
{{ $t("trials:tab:trials") }}
|
{{ $t('trials:tab:trials') }}
|
||||||
</span>
|
</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
<el-menu-item
|
<el-menu-item
|
||||||
|
@ -67,7 +66,7 @@
|
||||||
>
|
>
|
||||||
<i class="el-icon-chat-dot-square" />
|
<i class="el-icon-chat-dot-square" />
|
||||||
<!-- 通知消息 -->
|
<!-- 通知消息 -->
|
||||||
<span slot="title">{{ $t("trials:tab:notice") }}</span>
|
<span slot="title">{{ $t('trials:tab:notice') }}</span>
|
||||||
</el-menu-item>
|
</el-menu-item>
|
||||||
|
|
||||||
<el-submenu index="4" class="my_info">
|
<el-submenu index="4" class="my_info">
|
||||||
|
@ -79,17 +78,17 @@
|
||||||
</span>
|
</span>
|
||||||
<!-- 账户信息 -->
|
<!-- 账户信息 -->
|
||||||
<el-menu-item v-if="!hasPermi(['role:air'])" index="4-2">{{
|
<el-menu-item v-if="!hasPermi(['role:air'])" index="4-2">{{
|
||||||
$t("trials:trials-myinfo:title:accountInfo")
|
$t('trials:trials-myinfo:title:accountInfo')
|
||||||
}}</el-menu-item>
|
}}</el-menu-item>
|
||||||
<!-- 管理后台 -->
|
<!-- 管理后台 -->
|
||||||
<el-menu-item
|
<el-menu-item
|
||||||
v-if="hasPermi(['role:dev', 'role:oa', 'role:admin'])"
|
v-if="hasPermi(['role:dev', 'role:oa', 'role:admin'])"
|
||||||
index="4-4"
|
index="4-4"
|
||||||
>{{ $t("trials:trials-myinfo:title:system") }}</el-menu-item
|
>{{ $t('trials:trials-myinfo:title:system') }}</el-menu-item
|
||||||
>
|
>
|
||||||
<!-- 退出 -->
|
<!-- 退出 -->
|
||||||
<el-menu-item index="4-3">{{
|
<el-menu-item index="4-3">{{
|
||||||
$t("trials:trials-myinfo:button:loginout")
|
$t('trials:trials-myinfo:button:loginout')
|
||||||
}}</el-menu-item>
|
}}</el-menu-item>
|
||||||
</el-submenu>
|
</el-submenu>
|
||||||
</el-menu>
|
</el-menu>
|
||||||
|
@ -99,128 +98,128 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { loginOut } from "@/api/user";
|
import { loginOut } from '@/api/user'
|
||||||
import { mapGetters, mapMutations } from "vuex";
|
import { mapGetters, mapMutations } from 'vuex'
|
||||||
import TopLang from "./topLang";
|
import TopLang from './topLang'
|
||||||
import NoticeMarquee from "./noticeMarquee";
|
import NoticeMarquee from './noticeMarquee'
|
||||||
import { getHospital } from "@/api/hospital.js";
|
import { getHospital } from '@/api/hospital.js'
|
||||||
import logoImg from "@/assets/zzlogo2.png";
|
import logoImg from '@/assets/zzlogo2.png'
|
||||||
export default {
|
export default {
|
||||||
components: { TopLang, NoticeMarquee },
|
components: { TopLang, NoticeMarquee },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
logoImg,
|
logoImg,
|
||||||
activeIndex: "2",
|
activeIndex: '2',
|
||||||
isReviewer: false,
|
isReviewer: false,
|
||||||
userTypeShortName: zzSessionStorage.getItem("userTypeShortName"),
|
userTypeShortName: zzSessionStorage.getItem('userTypeShortName'),
|
||||||
notice: "",
|
notice: '',
|
||||||
hospital: {
|
hospital: {
|
||||||
HospitalLogoPath: null,
|
HospitalLogoPath: null,
|
||||||
HospitalName: null,
|
HospitalName: null,
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapGetters([
|
...mapGetters([
|
||||||
"sidebar",
|
'sidebar',
|
||||||
"name",
|
'name',
|
||||||
"userName",
|
'userName',
|
||||||
"device",
|
'device',
|
||||||
"TotalNeedSignSystemDocCount",
|
'TotalNeedSignSystemDocCount',
|
||||||
"language",
|
'language',
|
||||||
]),
|
]),
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
$route(v) {
|
$route(v) {
|
||||||
this.changeRoute(v);
|
this.changeRoute(v)
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.isReviewer = JSON.parse(zzSessionStorage.getItem("IsReviewer"));
|
this.isReviewer = JSON.parse(zzSessionStorage.getItem('IsReviewer'))
|
||||||
this.changeRoute(this.$route);
|
this.changeRoute(this.$route)
|
||||||
this.getInfo();
|
this.getInfo()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
...mapMutations({ setLanguage: "lang/setLanguage" }),
|
...mapMutations({ setLanguage: 'lang/setLanguage' }),
|
||||||
// 获取医院信息
|
// 获取医院信息
|
||||||
async getInfo() {
|
async getInfo() {
|
||||||
try {
|
try {
|
||||||
let res = await getHospital();
|
let res = await getHospital()
|
||||||
if (res.IsSuccess) {
|
if (res.IsSuccess) {
|
||||||
Object.keys(this.hospital).forEach((key) => {
|
Object.keys(this.hospital).forEach((key) => {
|
||||||
this.hospital[key] = res.Result[key];
|
this.hospital[key] = res.Result[key]
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err);
|
console.log(err)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeRoute(v) {
|
changeRoute(v) {
|
||||||
if (v.path === "/trials/trials-inspection") {
|
if (v.path === '/trials/trials-inspection') {
|
||||||
this.activeIndex = "1";
|
this.activeIndex = '1'
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
v.path === "/trials/trials-list" ||
|
v.path === '/trials/trials-list' ||
|
||||||
~v.path.indexOf("/trials/trials-panel")
|
~v.path.indexOf('/trials/trials-panel')
|
||||||
) {
|
) {
|
||||||
this.activeIndex = "2";
|
this.activeIndex = '2'
|
||||||
}
|
}
|
||||||
if (v.path === "/trials/trials-notice") {
|
if (v.path === '/trials/trials-notice') {
|
||||||
this.activeIndex = "3";
|
this.activeIndex = '3'
|
||||||
}
|
}
|
||||||
if (v.path === "/trials/trials-myinfo") {
|
if (v.path === '/trials/trials-myinfo') {
|
||||||
this.activeIndex = "4-2";
|
this.activeIndex = '4-2'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
handleSelect(key, keyPath) {
|
handleSelect(key, keyPath) {
|
||||||
switch (key) {
|
switch (key) {
|
||||||
case "4-2":
|
case '4-2':
|
||||||
this.go("/trials/trials-myinfo");
|
this.go('/trials/trials-myinfo')
|
||||||
break;
|
break
|
||||||
case "4-3":
|
case '4-3':
|
||||||
this.logout();
|
this.logout()
|
||||||
break;
|
break
|
||||||
case "4-4":
|
case '4-4':
|
||||||
this.go("/system");
|
this.go('/system')
|
||||||
break;
|
break
|
||||||
case "1":
|
case '1':
|
||||||
this.go("/trials/trials-inspection");
|
this.go('/trials/trials-inspection')
|
||||||
break;
|
break
|
||||||
case "2":
|
case '2':
|
||||||
if (~this.$route.path.indexOf("/trials/trials-panel")) {
|
if (~this.$route.path.indexOf('/trials/trials-panel')) {
|
||||||
return;
|
return
|
||||||
}
|
}
|
||||||
var lastWorkbench = zzSessionStorage.getItem("lastWorkbench");
|
var lastWorkbench = zzSessionStorage.getItem('lastWorkbench')
|
||||||
if (lastWorkbench) {
|
if (lastWorkbench) {
|
||||||
this.go(lastWorkbench);
|
this.go(lastWorkbench)
|
||||||
} else {
|
} else {
|
||||||
this.go("/trials/trials-list");
|
this.go('/trials/trials-list')
|
||||||
}
|
}
|
||||||
break;
|
break
|
||||||
case "3":
|
case '3':
|
||||||
this.go("/trials/trials-notice");
|
this.go('/trials/trials-notice')
|
||||||
break;
|
break
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toggleSideBar() {
|
toggleSideBar() {
|
||||||
this.$store.dispatch("app/toggleSideBar");
|
this.$store.dispatch('app/toggleSideBar')
|
||||||
},
|
},
|
||||||
async logout() {
|
async logout() {
|
||||||
await loginOut();
|
await loginOut()
|
||||||
await this.$store.dispatch("user/logout");
|
await this.$store.dispatch('user/logout')
|
||||||
this.$router.push(`/login`);
|
this.$router.push(`/login`)
|
||||||
this.$i18n.locale = "zh";
|
this.$i18n.locale = 'zh'
|
||||||
this.setLanguage("zh");
|
this.setLanguage('zh')
|
||||||
this.$updateDictionary();
|
this.$updateDictionary()
|
||||||
},
|
},
|
||||||
go(value) {
|
go(value) {
|
||||||
this.$router.push({ path: value });
|
this.$router.push({ path: value })
|
||||||
},
|
},
|
||||||
account() {
|
account() {
|
||||||
this.$router.push({ name: "Account" });
|
this.$router.push({ name: 'Account' })
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
|
Loading…
Reference in New Issue