|
|
@@ -6,13 +6,17 @@
|
|
|
style="height: 100%;width: 100%;display: flex;flex-direction: column;align-items: center;">
|
|
|
<van-image style="width: 232px;height: 50px;margin-top: 100px" :src="hgLogon"></van-image>
|
|
|
|
|
|
- <div style="width: 332px;height: 240px;margin-top:40px; display: flex;border-radius: 10px;z-index: 10;
|
|
|
+ <div style="width: 332px;height: 290px;margin-top:40px; display: flex;border-radius: 10px;z-index: 10;
|
|
|
flex-direction: column;align-items: center;justify-content: center;background: #8c939d">
|
|
|
- <div style="width: 80%;border-radius: 3px;margin: 20px">
|
|
|
+ <div style="width: 80%;border-radius: 3px;margin: 20px 20px 10px 20px">
|
|
|
+ <!-- 输输入用户名 -->
|
|
|
+ <dk-app-field v-model="ftyCode" formatter-flg :label="$t('appftyCode')"/>
|
|
|
+ </div>
|
|
|
+ <div style="width: 80%;border-radius: 3px;margin: 10px 20px ">
|
|
|
<!-- 输输入用户名 -->
|
|
|
<dk-app-field v-model="userCode" formatter-flg :label="$t('appUserCode')"/>
|
|
|
</div>
|
|
|
- <div style="width: 80%;border-radius: 3px;margin: 20px">
|
|
|
+ <div style="width: 80%;border-radius: 3px;margin: 10px 20px ">
|
|
|
<!-- 输入密码 -->
|
|
|
<dk-app-field v-model="userPwd" type-input="password" :label="$t('appUserPw')"/>
|
|
|
</div>
|
|
|
@@ -47,6 +51,7 @@ export default {
|
|
|
return {
|
|
|
userCode: '', //用户名
|
|
|
userPwd: '', // 密码
|
|
|
+ ftyCode:'', // 工厂编码
|
|
|
showLan: false, // 语言标识
|
|
|
actions: this.$config.languages, //语言
|
|
|
loading: false, // 加载
|
|
|
@@ -88,6 +93,7 @@ export default {
|
|
|
let param = {
|
|
|
userCode: this.userCode,
|
|
|
userPwd: this.userPwd,
|
|
|
+ ftyCode: this.ftyCode,
|
|
|
appCode: this.$config.appCode.PDA_PROD
|
|
|
}
|
|
|
this.handleSubmit(param)
|
|
|
@@ -98,9 +104,9 @@ export default {
|
|
|
* @author : 姜永辉
|
|
|
* @date : 2023/2/17 10:14
|
|
|
*/
|
|
|
- handleSubmit({userCode, userPwd, appCode}) {
|
|
|
+ handleSubmit({userCode, userPwd,ftyCode, appCode}) {
|
|
|
this.loading = true
|
|
|
- this.handleLogin({userCode, userPwd, appCode}).then(res => {
|
|
|
+ this.handleLogin({ftyCode,userCode, userPwd, appCode}).then(res => {
|
|
|
this.$Message.destroy()
|
|
|
if (res.code === this.$config.SUCCESS_CODE) {
|
|
|
if (res.data) {
|
|
|
@@ -146,6 +152,11 @@ export default {
|
|
|
*/
|
|
|
validate() {
|
|
|
//用户密码校验
|
|
|
+ if (this.ftyCode == null || "" == this.ftyCode) {
|
|
|
+ this.$appToast(this.$t('pleaseEnterAppFtyCode'))
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ //用户密码校验
|
|
|
if (this.userCode == null || "" == this.userCode) {
|
|
|
this.$appToast(this.$t('pleaseEnterAppUserName'))
|
|
|
return false
|