@cpzxrobot/sdk 1.1.60 → 1.1.62

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -265,9 +265,13 @@ class UserGateway extends Object {
265
265
  return axios.get(`/api/v2/user/info/leader`);
266
266
  });
267
267
  },
268
- team: () => {
268
+ team: (searchName) => {
269
269
  return this.context.ready.then((axios) => {
270
- return axios.get(`/api/v2/user/info/team`);
270
+ return axios.get(`/api/v2/user/info/team`, {
271
+ params: {
272
+ name: searchName
273
+ }
274
+ });
271
275
  });
272
276
  },
273
277
  //同事
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.1.60",
3
+ "version": "1.1.62",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -14,6 +14,7 @@ export class ProductGateway extends Object {
14
14
  name: string;
15
15
  typeId: number;
16
16
  companyId: number;
17
+ typeName?: string;
17
18
  }) {
18
19
 
19
20
  return this.context.ready.then((axios) => {
package/readme.md CHANGED
@@ -159,8 +159,8 @@ baseURL: "/"
159
159
  | cpzxrobot().user.workReport.get | 获取用户的日报记录 |
160
160
  | cpzxrobot().user.workReport.add | 添加用户的日报记录 |
161
161
  | cpzxrobot().user.position.leader | 获取当前用户的领导信息 |
162
- | cpzxrobot().user.position.team | 获取当前用户的下属团队信息 |
163
- | cpzxrobot().user.position.colleague | 获取当前用户的同组团队信息,传入teamId参数 |
162
+ | cpzxrobot().user.position.team | 获取当前用户的下属团队信息, 可输入searchName进行模糊搜索 |
163
+ | cpzxrobot().user.position.colleague | 获取当前用户的同组团队信息 |
164
164
  | cpzxrobot().user.position.byDept | 按部门获得团队信息,传入deptName参数 |
165
165
  | cpzxrobot().product.list | 获得产品列表,传入factory_id和必要的分页参数 |
166
166
  | cpzxrobot().product.get | 获得产品信息,传入id参数 |
package/user_gateway.ts CHANGED
@@ -173,7 +173,7 @@ export class UserGateway extends Object {
173
173
  },
174
174
  submits: (id: number, pageNo: number | undefined = undefined, pageSize: number | undefined = undefined) => {
175
175
  return this.context.ready.then((axios) => {
176
- return axios.get(`/api/v2/coremde-sale/approval/submit/list`,{
176
+ return axios.get(`/api/v2/coremde-sale/approval/submit/list`, {
177
177
  params: {
178
178
  userId: id,
179
179
  pageNo,
@@ -293,9 +293,13 @@ export class UserGateway extends Object {
293
293
  return axios.get(`/api/v2/user/info/leader`);
294
294
  });
295
295
  },
296
- team: () => {
296
+ team: (searchName: string | undefined) => {
297
297
  return this.context.ready.then((axios) => {
298
- return axios.get(`/api/v2/user/info/team`);
298
+ return axios.get(`/api/v2/user/info/team`,{
299
+ params: {
300
+ name: searchName
301
+ }
302
+ });
299
303
  });
300
304
  },
301
305
  //同事