<el-main>
  <div class="login-root">
    <div class="login-container">
      <div class="login-form" @keyup.enter="doLogin">
        <h3>数据中心</h3>
        <el-form :model="ruleForm" :rules="rules" ref="ruleForm"  status-icon>
          <el-form-item prop="username" :error="passwordErr">
            <el-input placeholder="用户名"  maxlength="15" v-model="ruleForm.username" @focus="clearErr"></el-input>
          </el-form-item>
          <el-form-item prop="password" :error="passwordErr">
            <el-input v-model="ruleForm.password" type="password" maxlength="30" placeholder="密码" @focus="clearErr"></el-input>
          </el-form-item>
          <el-form-item>
            <el-button type="primary" @click="doLogin">立即登录</el-button>
          </el-form-item>
        </el-form>
      </div>
    </div>
  </div>
</el-main>
