You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
890 B
32 lines
890 B
4 years ago
|
<template>
|
||
|
<el-form ref="form" :model="form" label-width="80px">
|
||
4 years ago
|
<el-form-item :label="$t('account.form.user')">
|
||
|
<el-input v-model="form.user" :placeholder="$t('account.form.input_user',{user:$t('account.form.user')})"></el-input>
|
||
4 years ago
|
</el-form-item>
|
||
4 years ago
|
<el-form-item :label="$t('account.form.password')">
|
||
|
<el-input v-model="form.password" type="password" :placeholder="$t('account.form.input_password',{password:$t('account.form.password')})"></el-input>
|
||
4 years ago
|
</el-form-item>
|
||
|
<el-form-item>
|
||
4 years ago
|
<el-button type="primary" @click="onLogin(form.user,form.password)">{{$t('account.login')}}</el-button>
|
||
4 years ago
|
</el-form-item>
|
||
|
</el-form>
|
||
|
</template>
|
||
|
|
||
|
<script lang="ts">
|
||
|
|
||
|
export default {
|
||
|
name: 'login',
|
||
|
data(){
|
||
|
return {
|
||
|
form:{
|
||
|
user:'',
|
||
|
password:''
|
||
|
}
|
||
|
}
|
||
|
},
|
||
|
props:{
|
||
|
onLogin:Function
|
||
|
}
|
||
|
}
|
||
|
</script>
|