Compare commits
No commits in common. "39e2c6ea81b428909f0f84f4a6388a3f460a4917" and "af7208449d3e424b9a85e6d6ab861275c2692af2" have entirely different histories.
39e2c6ea81
...
af7208449d
@ -39,9 +39,9 @@
|
||||
<i class="el-icon-arrow-down el-icon--right"></i>
|
||||
</span>
|
||||
<el-dropdown-menu slot="dropdown">
|
||||
<!-- <el-dropdown-item command="modifyPassword"
|
||||
<el-dropdown-item command="modifyPassword"
|
||||
>修改密码</el-dropdown-item
|
||||
> -->
|
||||
>
|
||||
<el-dropdown-item command="logout">退出登录</el-dropdown-item>
|
||||
</el-dropdown-menu>
|
||||
</el-dropdown>
|
||||
|
||||
@ -124,23 +124,23 @@ export default {
|
||||
form.password = md5(form.password)
|
||||
if (form.id) {
|
||||
userUpdate(form).then(res => {
|
||||
if (res.data.code === 200) {
|
||||
if (res.code === 200) {
|
||||
this.$message.success('更新用户成功')
|
||||
this.userPage()
|
||||
this.close()
|
||||
} else {
|
||||
this.$message.success(res.data.msg || '更新用户失败')
|
||||
this.$message.success(res.msg || '更新用户失败')
|
||||
}
|
||||
|
||||
})
|
||||
} else {
|
||||
userSave(form).then(res => {
|
||||
if (res.data.code === 200) {
|
||||
if (res.code === 200) {
|
||||
this.$message.success('新增用户成功')
|
||||
this.userPage()
|
||||
this.close()
|
||||
} else {
|
||||
this.$message.success(res.data.msg || '新增用户失败')
|
||||
this.$message.success(res.msg || '新增用户失败')
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user