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

问题清单

parent 437726ca
......@@ -96,9 +96,9 @@
v-if="!isWaiXie"
>{{ $t('修改报工') }}</u-button
>
<!-- <u-button type="primary" @click="commonClick('FinshTask')">{{
<u-button type="primary" @click="commonClick('FinshTask')">{{
$t('完成作业')
}}</u-button> -->
}}</u-button>
<u-button
type="primary"
@click="commonClick('ViewPpicture')"
......
......@@ -5,6 +5,7 @@
<u-form-item prop="username">
<input
v-model="loginForm.username"
@confirm="focusOnPsw"
type="text"
auto-complete="off"
:placeholder="$t('账号')"
......@@ -16,9 +17,11 @@
<input
v-model="loginForm.password"
type="password"
ref="psw"
@blur="$refs['psw']['focus'] = false"
auto-complete="off"
:placeholder="$t('密码')"
@keyup.enter="submit"
@confirm="submit"
>
<svg-icon slot="prefix" icon-class="password" class="el-input__icon input-icon" />
</input>
......@@ -71,6 +74,13 @@ import {setLocal} from '@/lang'
}
},
methods: {
focusOnPsw(){
console.log('回车了')
if(this.$refs['psw']) {
console.log(this.$refs['psw'])
this.$refs['psw']['focus'] = true
}
},
submit(){
this.$refs.loginForm.validate().then(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