소스 검색

用户新增接口调整

wangtao 3 년 전
부모
커밋
e03595498f
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/api/system/user.js
  2. 1 1
      src/views/user/account-manage/index.vue

+ 2 - 2
src/api/system/user.js

@@ -46,11 +46,11 @@ export function resetPwd(params) { //密码重置
     })
 }
 
-export function userAdd(params) { //系统-用户添加
+export function userAdd(data) { //系统-用户添加
     return request({
         url: '/sys/user/addUser',
         method: 'post',
-        params
+        data
     })
 }
 

+ 1 - 1
src/views/user/account-manage/index.vue

@@ -850,7 +850,7 @@ export default {
           }else if(this.form.sex == "未知"){
             arr.sex = "2"
           }
-          this.form.roleIds = [this.form.roleIds]
+          this.form.roleIds = this.form.roleIds
           if (this.form.userId != undefined) {
             userEdit(arr).then(response => {
               if(response.status == "SUCCESS"){