Commit 44e79501 authored by 沈翠玲's avatar 沈翠玲

问题清单

parent 437726ca
...@@ -96,9 +96,9 @@ ...@@ -96,9 +96,9 @@
v-if="!isWaiXie" v-if="!isWaiXie"
>{{ $t('修改报工') }}</u-button >{{ $t('修改报工') }}</u-button
> >
<!-- <u-button type="primary" @click="commonClick('FinshTask')">{{ <u-button type="primary" @click="commonClick('FinshTask')">{{
$t('完成作业') $t('完成作业')
}}</u-button> --> }}</u-button>
<u-button <u-button
type="primary" type="primary"
@click="commonClick('ViewPpicture')" @click="commonClick('ViewPpicture')"
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<u-form-item prop="username"> <u-form-item prop="username">
<input <input
v-model="loginForm.username" v-model="loginForm.username"
@confirm="focusOnPsw"
type="text" type="text"
auto-complete="off" auto-complete="off"
:placeholder="$t('账号')" :placeholder="$t('账号')"
...@@ -16,9 +17,11 @@ ...@@ -16,9 +17,11 @@
<input <input
v-model="loginForm.password" v-model="loginForm.password"
type="password" type="password"
ref="psw"
@blur="$refs['psw']['focus'] = false"
auto-complete="off" auto-complete="off"
:placeholder="$t('密码')" :placeholder="$t('密码')"
@keyup.enter="submit" @confirm="submit"
> >
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" /> <svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
</input> </input>
...@@ -71,6 +74,13 @@ import {setLocal} from '@/lang' ...@@ -71,6 +74,13 @@ import {setLocal} from '@/lang'
} }
}, },
methods: { methods: {
focusOnPsw(){
console.log('回车了')
if(this.$refs['psw']) {
console.log(this.$refs['psw'])
this.$refs['psw']['focus'] = true
}
},
submit(){ submit(){
this.$refs.loginForm.validate().then(valid => { this.$refs.loginForm.validate().then(valid => {
if (valid) { if (valid) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment