wangwei 4 years ago
parent
commit
0231948522
1 changed files with 6 additions and 3 deletions
  1. 6 3
      src/api/sys/member.ts

+ 6 - 3
src/api/sys/member.ts

@@ -27,11 +27,12 @@ enum Api {
 /**
  * @description: GetUnitList
  */
-export function getUnitList() {
+export function getUnitList(params) {
   console.log('-------------------getUnitList---------------');
   return defHttp.request<GetUnitListModel>({
     url: Api.UnitUrl,
     method: 'GET',
+    params,
   });
 }
 
@@ -88,11 +89,12 @@ export function deleteUnit(params: UnitIdParams) {
 /**
  * @description: GetPersonList -----------------------------------------------
  */
-export function getPersonList() {
+export function getPersonList(params) {
   console.log('-------------------getPersonList---------------');
   return defHttp.request<GetPersonListModel>({
     url: Api.PersonUrl,
     method: 'GET',
+    params,
   });
 }
 
@@ -149,11 +151,12 @@ export function deletePerson(params: PersonIdParams) {
 /**
  * @description: GetMemberList -----------------------------------------------
  */
-export function getMemberList() {
+export function getMemberList(params) {
   console.log('-------------------getMemberList---------------');
   return defHttp.request<GetMemberListModel>({
     url: Api.MemberUrl,
     method: 'GET',
+    params,
   });
 }