hurx 1 month ago
parent
commit
7763e4dbde
1 changed files with 7 additions and 0 deletions
  1. 7 0
      src/api/system/dept/index.ts

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

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