|
@@ -4,9 +4,10 @@
|
|
|
<div class="login-par">
|
|
|
<el-form :model="ruleForm" :rules="rules" ref="ruleForm" label-position="left" label-width="0px" class="demo-ruleForm login-container">
|
|
|
<div class="login-logo">
|
|
|
- <img src="../assets/image/login_logo.png" style="width:100px;height:80px;"/>
|
|
|
+ <img v-if="!appLogo" src="../assets/image/login_logo.png" style="width:100px;height:80px;"/>
|
|
|
+ <img v-else :src="'/upload/'+appLogo" style="width:100px;height:80px;"/>
|
|
|
</div>
|
|
|
- <h3 class="title">{{ $t('workingHoursHousekeeper') }}</h3>
|
|
|
+ <h3 class="title">{{ appName? appName:"生产车间工时管家" }}</h3>
|
|
|
<el-form-item class="login-input" prop="username">
|
|
|
<el-input type="text" v-model="ruleForm.username" autocomplete="off" :placeholder="$t('zhang-hao-shou-ji-hao')" clearable prefix-icon="el-icon-user-solid"></el-input>
|
|
|
</el-form-item>
|
|
@@ -32,19 +33,19 @@
|
|
|
<p><span style="color: #333">QQ:</span><span id="QQ">3052894409</span></p>
|
|
|
</div>
|
|
|
</el-link>
|
|
|
- <el-link type="primary" style="margin-right:5px;" @click="dialogVisible=true" :underline="false">
|
|
|
+ <!-- <el-link type="primary" style="margin-right:5px;" @click="dialogVisible=true" :underline="false">
|
|
|
{{ $t('shi-yong-shuo-ming') }} </el-link>
|
|
|
- <el-link type="primary" v-if="!isCorpWX" @click="jumpTo" :underline="false">{{ $t('qi-ye-zhu-ce') }}</el-link>
|
|
|
+ <el-link type="primary" v-if="!isCorpWX" @click="jumpTo" :underline="false">{{ $t('qi-ye-zhu-ce') }}</el-link> -->
|
|
|
</div>
|
|
|
</el-form>
|
|
|
</div>
|
|
|
<el-dialog :title="$t('shi-yong-shuo-ming')" :visible.sync="dialogVisible" width="500px">
|
|
|
- <p><a style="color:#409EFF;text-decoration:none" href="upload/生产车间管家使用说明_基础版.docx" download="生产车间管家使用说明_基础版.docx"
|
|
|
+ <!-- <p><a style="color:#409EFF;text-decoration:none" href="upload/生产车间管家使用说明_基础版.docx" download="生产车间管家使用说明_基础版.docx"
|
|
|
target="_blank">生产车间管家使用说明_基础版.docx</a></p>
|
|
|
<p><a style="color:#409EFF;text-decoration:none" href="upload/生产车间管家使用说明_项目管理专业版.docx" download="生产车间管家使用说明_项目管理专业版.docx"
|
|
|
target="_blank">生产车间管家使用说明_项目管理专业版.docx</a></p>
|
|
|
<p><a style="color:#409EFF;text-decoration:none" href="upload/生产车间管家使用说明_建筑工程专业版.docx" download="生产车间管家使用说明_建筑工程专业版.docx"
|
|
|
- target="_blank">生产车间管家使用说明_建筑工程专业版.docx</a></p>
|
|
|
+ target="_blank">生产车间管家使用说明_建筑工程专业版.docx</a></p> -->
|
|
|
<!-- <p><a style="color:#409EFF;text-decoration:none" href="upload/生产车间管家使用说明_项目经理.docx" download="生产车间管家使用说明_项目经理.docx"
|
|
|
target="_blank">生产车间管家使用说明_项目经理.docx</a></p>
|
|
|
<p><a style="color:#409EFF;text-decoration:none" href="upload/生产车间管家使用说明_普通员工.docx" download="生产车间管家使用说明_普通员工.docx"
|
|
@@ -72,6 +73,7 @@
|
|
|
inject:['reloads'],
|
|
|
data() {
|
|
|
return {
|
|
|
+ appSettingErrMsg: null,
|
|
|
isCorpWX: false,
|
|
|
dialogVisible: false,
|
|
|
logining: false,
|
|
@@ -87,7 +89,9 @@
|
|
|
wxworkFlg: false,
|
|
|
bindingqywx: false,
|
|
|
|
|
|
- wxHrefFlg: false
|
|
|
+ wxHrefFlg: false,
|
|
|
+ appName: localStorage.appName,
|
|
|
+ appLogo: localStorage.appLogo,
|
|
|
};
|
|
|
},
|
|
|
watch: {
|
|
@@ -98,6 +102,9 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
+ if (!localStorage.appName) {
|
|
|
+ localStorage.appName = "生产车间工时管家";
|
|
|
+ }
|
|
|
// this.langChange()
|
|
|
if (localStorage.userInfo != null) {
|
|
|
var user = JSON.parse(localStorage.userInfo);
|
|
@@ -117,7 +124,7 @@
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
|
- // this.wxworkCli()
|
|
|
+ this.getSettings();
|
|
|
var ua = navigator.userAgent.toLowerCase();
|
|
|
console.log(ua, '打印出来')
|
|
|
if (ua.indexOf("wxwork") > 0) {
|
|
@@ -250,6 +257,25 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
+ getSettings() {
|
|
|
+ this.http.post('/sys-config/getAppSetting', {},
|
|
|
+ res => {
|
|
|
+ if (res.code == "ok") {
|
|
|
+ this.appName = res.data.appName;
|
|
|
+ this.appLogo = res.data.appLogo;
|
|
|
+ localStorage.appName = this.appName;
|
|
|
+ localStorage.appLogo = this.appLogo;
|
|
|
+ } else {
|
|
|
+ this.appSettingErrMsg = res.msg;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ error => {
|
|
|
+ this.$message({
|
|
|
+ message: error,
|
|
|
+ type: "error"
|
|
|
+ });
|
|
|
+ });
|
|
|
+ },
|
|
|
wxworkCli() {
|
|
|
// this.wxworkFlg = true
|
|
|
// this.$nextTick(()=>{
|