| | |
| | | <template> |
| | | <div> |
| | | <el-dialog :visible.sync="dialogVisible" @close="$emit('close')" title="重置密码" |
| | | width="30%"> |
| | | <el-dialog :visible.sync="dialogVisible" @close="$emit('close')" title="重置密码" width="30%" |
| | | :modal-append-to-body="false"> |
| | | <el-form ref="form" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="姓名" prop="nickName"> |
| | | <el-input :disabled="true" v-model="form.nickName" placeholder="请输入" style="width: 50%;"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="登陆账号" prop="account"> |
| | | <el-input :disabled="true" v-model="form.account" placeholder="请输入" style="width: 50%;"></el-input> |
| | | <el-input :disabled="true" v-model="form.userName" placeholder="请输入" style="width: 50%;"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="新密码" prop="password"> |
| | | <el-input v-model="form.password" placeholder="请输入" style="width: 50%;"></el-input> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import CryptoJS from 'crypto-js'; |
| | | export default { |
| | | props: { |
| | | dialogVisible: { |
| | |
| | | } else { |
| | | callback(); |
| | | } |
| | | }}], |
| | | } |
| | | }], |
| | | } |
| | | }; |
| | | }, |
| | |
| | | this.form = { |
| | | userId: this.row.userId, |
| | | nickName: this.row.nickName, |
| | | account: this.row.userName, |
| | | userName: this.row.userName, |
| | | } |
| | | } |
| | | }, |
| | |
| | | this.form.orderNum = 0 |
| | | this.form.ancestors = 0 |
| | | this.form.parentId = 100 |
| | | this.form.password = CryptoJS.MD5(this.form.password).toString() |
| | | this.$emit('confirm', this.form) |
| | | } |
| | | }) |