| | |
| | | }
|
| | | },
|
| | | }).then(({ value }) => {
|
| | | resetUserPwd(row.userId, value).then(response => {
|
| | | resetUserPwd(row.userId, value).then(() => {
|
| | | this.$modal.msgSuccess("修改成功,新密码是:" + value)
|
| | | })
|
| | | }).catch(() => {})
|
| | |
| | | this.$refs["form"].validate(valid => {
|
| | | if (valid) {
|
| | | if (this.form.userId != undefined) {
|
| | | updateUser(this.form).then(response => {
|
| | | updateUser(this.form).then(() => {
|
| | | this.$modal.msgSuccess("修改成功")
|
| | | this.open = false
|
| | | this.getList()
|
| | | })
|
| | | } else {
|
| | | addUser(this.form).then(response => {
|
| | | addUser(this.form).then(() => {
|
| | | this.$modal.msgSuccess("新增成功")
|
| | | this.open = false
|
| | | this.getList()
|