<template>
  <el-dialog
    class="psdDialog"
    title="修改密码"
    :visible.sync="dialogFormPsd"
    width="420px"
  >
    <el-form :model="psdForm" label-position="left" label-width="80px">
      <el-form-item label="登录账号:">
        <el-input v-model="psdForm.name" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="原密码:">
        <el-input v-model="psdForm.originalPsd" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="新密码:">
        <el-input v-model="psdForm.newPsd" autocomplete="off"></el-input>
      </el-form-item>
      <el-form-item label="确认密码:">
        <el-input v-model="psdForm.confirmPsd" autocomplete="off"></el-input>
      </el-form-item>
    </el-form>
    <div slot="footer" class="dialog-footer">
      <el-button @click="closeDialog">取 消</el-button>
      <el-button type="primary" @click="closeDialog">确 定</el-button>
    </div>
  </el-dialog>
</template>
<script>
export default {
  props: ["dialogFormPsd"],

  data() {
    return {
      psdForm: {
        name: "",
        originalPsd: "",
        newPsd: "",
        confirmPsd: "",
      },
    };
  },
  methods: {
    closeDialog() {
      this.$emit("psdDialogClose");
    },
  },
};
</script>
