|
@@ -152,7 +152,7 @@ import {
|
|
getMenuList,
|
|
getMenuList,
|
|
getRoleChecked,
|
|
getRoleChecked,
|
|
setMenuRole,
|
|
setMenuRole,
|
|
- resetPassword
|
|
|
|
|
|
+ editSubAccount
|
|
} from '@/api/setting'
|
|
} from '@/api/setting'
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -299,10 +299,8 @@ export default {
|
|
}
|
|
}
|
|
if (valid) {
|
|
if (valid) {
|
|
if (this.addFormType === 'edit') {
|
|
if (this.addFormType === 'edit') {
|
|
- resetPassword({
|
|
|
|
- adminUserId: this.ruleForm.adminUserId,
|
|
|
|
- password: this.ruleForm.password
|
|
|
|
- }).then(res => {
|
|
|
|
|
|
+ params.adminUserId = this.ruleForm.adminUserId
|
|
|
|
+ editSubAccount(params).then(res => {
|
|
this.cancelAddForm()
|
|
this.cancelAddForm()
|
|
this.getList()
|
|
this.getList()
|
|
this.$successMsg('编辑成功')
|
|
this.$successMsg('编辑成功')
|