|
|
@@ -16,9 +16,10 @@
|
|
|
<h1>
|
|
|
<img
|
|
|
alt=""
|
|
|
- src="/static/assets/client-base-v4/image/template-logo.png"
|
|
|
+ :src="logoUrl"
|
|
|
style="margin-top: -40px; width: 100px; height: 100px"
|
|
|
/>
|
|
|
+ <!-- src="/static/assets/client-base-v4/image/template-logo.png" -->
|
|
|
<div class="desc" data-v-7b9d9b52="">
|
|
|
Prodog 希望帮助您更好的管理物料
|
|
|
</div>
|
|
|
@@ -234,6 +235,7 @@ export default {
|
|
|
authSetting: [],
|
|
|
getImageSrc,
|
|
|
backgroundImageUrl: '/static/assets/client-base-v4/image/background.svg',
|
|
|
+ logoUrl: '', // logo路径
|
|
|
};
|
|
|
},
|
|
|
|
|
|
@@ -262,12 +264,35 @@ export default {
|
|
|
this.queryAllAuthSetting();
|
|
|
this.unqiueAccountManagementDto();
|
|
|
|
|
|
+ this.getLogoName();
|
|
|
+
|
|
|
this.getCurrentDate();
|
|
|
|
|
|
this.showLeanwoText = CustomerEnvironment.LOGIN_SHOW_LEANWO_TEXT;
|
|
|
},
|
|
|
|
|
|
methods: {
|
|
|
+
|
|
|
+ // 查询系统logo
|
|
|
+ getLogoName: function () {
|
|
|
+ const _self = this;
|
|
|
+ $.ajax({
|
|
|
+ type: 'GET',
|
|
|
+ url: Common.getApiURL('clientLogoResource/selectByClientId?logoName=mainLogoName'),
|
|
|
+ dataType: 'json',
|
|
|
+ beforeSend: function (request) {
|
|
|
+ Common.addTokenToRequest(request);
|
|
|
+ },
|
|
|
+ success: function (res) {
|
|
|
+ if (res.errorCode === 0) {
|
|
|
+ _self.logoUrl = `/Files/0/Images/com.leanwo.prodog.system.model.ClientLogo/${res.data.imageName}`;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error: function (XMLHttpRequest, textStatus, errorThrown) {
|
|
|
+ Common.processException(XMLHttpRequest, textStatus, errorThrown);
|
|
|
+ },
|
|
|
+ });
|
|
|
+ },
|
|
|
initView: function () {
|
|
|
var _self = this;
|
|
|
const storageInfo = LoginService.restoreFromLocalStorage();
|