哈尔滨打包调整
This commit is contained in:
parent
df3b8eebd7
commit
81de72cab0
@ -1,6 +1,6 @@
|
|||||||
# just a flag
|
# just a flag
|
||||||
NODE_ENV = 'development'
|
NODE_ENV = 'development'
|
||||||
VUE_APP_PRO = 'local'
|
# VUE_APP_PRO = 'local'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
|
# VUE_APP_BASE_API = 'https://joylink.club/jlcloud'
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
element-loading-background="rgba(0, 0, 0, 0)"
|
element-loading-background="rgba(0, 0, 0, 0)"
|
||||||
>
|
>
|
||||||
<el-button v-if="syncLogin && loadingCode" type="text" style="font-size: 24px;font-weight: bold;" @click="loginRefresh">关联设备未登录,点击重新检测</el-button>
|
<el-button v-if="syncLogin && loadingCode" type="text" style="font-size: 24px;font-weight: bold;" @click="loginRefresh">关联设备未登录,点击重新检测</el-button>
|
||||||
<div v-if="loginTitle && !syncLogin" :class="$route.query.project=='hyd'?'text-box':'left-logo-box'">
|
<div v-if="loginTitle && !syncLogin" :class="project.endsWith('hyd')?'text-box':'left-logo-box'">
|
||||||
<img class="logo" :src="logoImg" :style="{width: logoWidth}">
|
<img class="logo" :src="logoImg" :style="{width: logoWidth}">
|
||||||
<span>{{ loginTitle==='空串'?'':loginTitle }}</span>
|
<span>{{ loginTitle==='空串'?'':loginTitle }}</span>
|
||||||
</div>
|
</div>
|
||||||
@ -21,8 +21,8 @@
|
|||||||
<el-button class="language_btn" type="text" @click="handleLanguage">{{ language }}</el-button>
|
<el-button class="language_btn" type="text" @click="handleLanguage">{{ language }}</el-button>
|
||||||
</el-tooltip>
|
</el-tooltip>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!syncLogin" class="content-box" :style="$route.query.project=='hyd'?'width: 450px;':''">
|
<div v-if="!syncLogin" class="content-box" :style="project.endsWith('hyd')?'width: 450px;':''">
|
||||||
<div v-if="$route.query.project!='hyd'" class="qrcode-main">
|
<div v-if="!project.endsWith('hyd')" class="qrcode-main">
|
||||||
<div class="login-code-box" @click="loginRefresh">
|
<div class="login-code-box" @click="loginRefresh">
|
||||||
<qrcode-vue
|
<qrcode-vue
|
||||||
v-loading="loadingCode"
|
v-loading="loadingCode"
|
||||||
@ -49,7 +49,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<el-form ref="loginForm" class="login-form" :model="loginForm" :rules="loginRules" label-position="left">
|
<el-form ref="loginForm" class="login-form" :model="loginForm" :rules="loginRules" label-position="left">
|
||||||
<div v-if="!isProject&&$route.query.project!='hyd'" class="title_box">{{ $t('login.welcomeTo') + title }}</div>
|
<div v-if="!isProject&&!project.endsWith('hyd')" class="title_box">{{ $t('login.welcomeTo') + title }}</div>
|
||||||
<el-form-item prop="username" class="item_form_box">
|
<el-form-item prop="username" class="item_form_box">
|
||||||
<span class="svg-container svg-container_login">
|
<span class="svg-container svg-container_login">
|
||||||
<svg-icon icon-class="user" />
|
<svg-icon icon-class="user" />
|
||||||
@ -183,7 +183,11 @@ export default {
|
|||||||
project() {
|
project() {
|
||||||
const project = this.$route.query.project;
|
const project = this.$route.query.project;
|
||||||
const split = this.$route.path.split('/')[1];
|
const split = this.$route.path.split('/')[1];
|
||||||
if (split == 'design') {
|
if (process.env.VUE_APP_PRO === 'local' && split == 'design') {
|
||||||
|
return split + 'hyd';
|
||||||
|
} else if (process.env.VUE_APP_PRO === 'local' && split == 'login') {
|
||||||
|
return 'hyd';
|
||||||
|
} else if (split == 'design') {
|
||||||
return project ? split + project : split;
|
return project ? split + project : split;
|
||||||
} else if (split == 'login') {
|
} else if (split == 'login') {
|
||||||
return project || 'login';
|
return project || 'login';
|
||||||
@ -210,7 +214,7 @@ export default {
|
|||||||
return ProjectIcon[projectName];
|
return ProjectIcon[projectName];
|
||||||
},
|
},
|
||||||
bgImg() {
|
bgImg() {
|
||||||
const bgImgAll = this.$route.query.project == 'hyd' ? '' : bgImg;
|
const bgImgAll = process.env.VUE_APP_PRO === 'local' ? '' : bgImg;
|
||||||
const synchronousLogin = ['IBP', 'LSW', 'CCTV', 'ISCS_LW', 'ISCS_CW', 'VR_PSD'];
|
const synchronousLogin = ['IBP', 'LSW', 'CCTV', 'ISCS_LW', 'ISCS_CW', 'VR_PSD'];
|
||||||
const imgMap = {
|
const imgMap = {
|
||||||
ISCS_LW: bgIscsImg,
|
ISCS_LW: bgIscsImg,
|
||||||
@ -236,6 +240,9 @@ export default {
|
|||||||
LSW: '检测教研机登录中'
|
LSW: '检测教研机登录中'
|
||||||
};
|
};
|
||||||
return this.$route.query.type ? textMap[this.$route.query.type] : '';
|
return this.$route.query.type ? textMap[this.$route.query.type] : '';
|
||||||
|
},
|
||||||
|
isLocal() { // 是否为本地项目
|
||||||
|
return process.env.VUE_APP_PRO === 'local';
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -263,7 +270,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
document.title = loginInfo[this.project].browserTitle || loginInfo[this.project].title;
|
document.title = loginInfo[this.project].browserTitle || loginInfo[this.project].title;
|
||||||
if (this.syncLogin || this.$route.query.project != 'hyd') {
|
if (this.syncLogin || process.env.VUE_APP_PRO !== 'local') {
|
||||||
this.loginRefresh();
|
this.loginRefresh();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user