<template>
  <div class="password">
    <el-form ref="form" :model="formData" label-width="80px" class="form">
      <el-form-item label="旧密码:">
        <el-input v-model="formData.oldPwd" placeholder="请输入旧密码" />
      </el-form-item>
      <el-form-item label="新密码:">
        <el-input v-model="formData.newPwd" placeholder="请输入新密码" />
      </el-form-item>
      <el-form-item label="确认密码:">
        <el-input v-model="formData.confirmPwd" placeholder="请再次输入密码" />
      </el-form-item>
      <el-form-item class="submit">
        <el-button type="primary">确认</el-button>
        <el-button type="warning" @click="$_back">取消</el-button>
      </el-form-item>
    </el-form>
  </div>
</template>

<script>
export default {
  data() {
    return {
      formData: {
        oldPwd: '',
        newPwd: '',
        confirmPwd: ''
      }
    }
  },
  methods: {
    // back() {
    //   this.$router.go(-1)
    // }
  }
}
</script>

<style lang="scss" scoped>
.form{
  width: 600px;
  margin: 80px auto;

  .el-button{
    width: 120px;
  }
}
</style>
