界面标题等logo修改

master
anthonywj 2 years ago
parent 9324c084c0
commit 0c9a7b5c82

@ -8,7 +8,7 @@ ENV = 'production'
#林纪裕cd #林纪裕cd
# VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:81/UDI_WMS_MC/' VUE_APP_BASE_API = 'http://r.jiyuudims.cloud:81/UDI_WMS_MC/'
# VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://127.0.0.1:9150/UDI_WMS_MC/'
@ -31,7 +31,7 @@ ENV = 'production'
# VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://116.204.106.103:9150/UDI_WMS_MC/'
# 漳州中医院 # 漳州中医院
VUE_APP_BASE_API = 'http://192.168.240.119:9150/UDI_WMS_MC/' # VUE_APP_BASE_API = 'http://192.168.240.119:9150/UDI_WMS_MC/'
# 应用访问路径 例如使用前缀 /admin/ # 应用访问路径 例如使用前缀 /admin/

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

@ -69,3 +69,15 @@ export function getCodeSms() {
timeout: 20000 timeout: 20000
}) })
} }
export function getTitleConfig() {
return request({
url: '/spms/getTitleConfig',
headers: {
isToken: false
},
method: 'get',
timeout: 20000
})
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.2 KiB

After

Width:  |  Height:  |  Size: 19 KiB

@ -60,7 +60,7 @@ export default {
.sidebar-logo-container { .sidebar-logo-container {
position: relative; position: relative;
width: 100%; width: 100%;
height: 100px; height: 110px;
line-height: 50px; line-height: 50px;
background: #2b2f3a; background: #2b2f3a;
text-align: center; text-align: center;
@ -72,7 +72,7 @@ export default {
& .sidebar-logo { & .sidebar-logo {
width: 100px; width: 100px;
height: 73px; height: 100px;
margin-top: 12px; margin-top: 12px;
vertical-align: middle; vertical-align: middle;
margin-right: 12px; margin-right: 12px;
@ -94,7 +94,7 @@ export default {
&.collapse { &.collapse {
.sidebar-logo { .sidebar-logo {
width: 44px; width: 44px;
height: 32px; height: 44px;
margin-right: 0px; margin-right: 0px;
} }
} }

@ -2,7 +2,7 @@
<div class="login-container"> <div class="login-container">
<div class="textTitle"> <div class="textTitle">
<!-- <h3 class="toptitle">平潭协和医院</h3>--> <!-- <h3 class="toptitle">平潭协和医院</h3>-->
<h3 class="toptitle">漳州市中医院</h3> <h3 class="toptitle">{{ title }}</h3>
<h3 class="topSubtitle">医院UDI管理系统</h3> <h3 class="topSubtitle">医院UDI管理系统</h3>
</div> </div>
<el-form <el-form
@ -98,6 +98,7 @@ import Verify from "vue2-verify";
import axios from "axios"; import axios from "axios";
import Cookies from "js-cookie"; import Cookies from "js-cookie";
import {decrypt, encrypt} from "@/utils/jsencrypt"; import {decrypt, encrypt} from "@/utils/jsencrypt";
import {getCodeImg, getTitleConfig} from "@/api/login";
export default { export default {
data() { data() {
@ -134,6 +135,7 @@ export default {
showDialog: false, // dialog showDialog: false, // dialog
redirect: null, // redirect: null, //
hospName: "", hospName: "",
title: "福建省XXX医院"
}; };
}, },
methods: { methods: {
@ -238,6 +240,11 @@ export default {
} }
}); });
}, },
getTitleConfig() {
getTitleConfig().then(res => {
this.title = res.data.title;
});
},
}, },
components: { components: {
Verify, Verify,
@ -249,7 +256,7 @@ export default {
// URL Encode // URL Encode
this.redirect = decodeURIComponent(query.redirect); this.redirect = decodeURIComponent(query.redirect);
} }
this.getTitleConfig();
axios.get("./config.json").then((res) => { axios.get("./config.json").then((res) => {
this.hospName = res.data.hosp_name; this.hospName = res.data.hosp_name;
}); });

Loading…
Cancel
Save