hurx hace 1 mes
padre
commit
70a3be9a3c
Se han modificado 1 ficheros con 8 adiciones y 0 borrados
  1. 8 0
      src/api/system/dept/index.ts

+ 8 - 0
src/api/system/dept/index.ts

@@ -63,3 +63,11 @@ export const delDept = (deptId: number | string) => {
     method: 'delete'
     method: 'delete'
   });
   });
 };
 };
+
+// 查询客户部门
+export const listCustomerDept = (customerId: string | number): AxiosPromise<DeptVO[]> => {
+  return request({
+    url: `/system/dept/customerDeptList/${customerId}`, // 拼接 customerId 到路径
+    method: 'get'
+  });
+};