Przeglądaj źródła

Merge branch '20201109_pc_vue_new_branch' of http://git.shengws.com/csx/Vue_New into 20201109_pc_vue_new_branch

see999 4 lat temu
rodzic
commit
ef2f4af11e
1 zmienionych plików z 8 dodań i 29 usunięć
  1. 8 29
      src/api/role/admin.js

+ 8 - 29
src/api/role/admin.js Wyświetl plik

26
   })
26
   })
27
 }
27
 }
28
 
28
 
29
-export function addAdmin(mobile, name, type, title, role, intro, user_title_name,department,department_id) {
30
-  const params = {
31
-    mobile: mobile,
32
-    name: name,
33
-    type: type,
34
-    title: title,
35
-    role: role,
36
-    intro: intro,
37
-    user_title_name: user_title_name,
38
-    department:department,
39
-    department_id:department_id,
40
-  }
41
-  console.log("epa",department_id,department)
29
+export function addAdmin(params) {
30
+  
31
+  console.log("epa",params)
42
   
32
   
43
   return request({
33
   return request({
44
     url: '/api/admin/add',
34
     url: '/api/admin/add',
45
-    method: 'post',
35
+    method: 'get',
46
     params: params
36
     params: params
47
   })
37
   })
48
 }
38
 }
58
   })
48
   })
59
 }
49
 }
60
 
50
 
61
-export function modifyAdmin(uid, name, type, title, role, intro, user_title_name, sort,department,department_id) {
62
-  console.log("进来",department,department_id)
63
-  const params = {
64
-    uid: uid,
65
-    name: name,
66
-    type: type,
67
-    title: title,
68
-    role: role,
69
-    intro: intro,
70
-    user_title_name: user_title_name,
71
-    sort: sort,
72
-    department:department,
73
-    department_id:department_id
74
-  }
51
+export function modifyAdmin(params) {
52
+  
53
+  
75
  
54
  
76
  
55
  
77
   return request({
56
   return request({
78
     url: '/api/admin/edit',
57
     url: '/api/admin/edit',
79
-    method: 'post',
58
+    method: 'get',
80
     params: params
59
     params: params
81
   })
60
   })
82
 }
61
 }