@cpzxrobot/sdk 1.2.72 → 1.2.74
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.
- package/dist/user_gateway.js +7 -3
- package/package.json +1 -1
- package/user_gateway.ts +15 -11
package/dist/user_gateway.js
CHANGED
|
@@ -285,9 +285,13 @@ class UserGateway extends Object {
|
|
|
285
285
|
return axios.get(`/api/v2/user/info/${userId}`);
|
|
286
286
|
}
|
|
287
287
|
// 待处理任务列表
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
288
|
+
get task() {
|
|
289
|
+
return {
|
|
290
|
+
list: async (params) => {
|
|
291
|
+
var axios = await this.context.ready;
|
|
292
|
+
return axios.post('/api/v2/task/list', params);
|
|
293
|
+
}
|
|
294
|
+
};
|
|
291
295
|
}
|
|
292
296
|
//根据组织机构id获得该组织机构下所有人员
|
|
293
297
|
listByGroup(groupId) {
|
package/package.json
CHANGED
package/user_gateway.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Cpzxrobot, type Factory,type Unit } from "./types";
|
|
1
|
+
import { Cpzxrobot, type Factory, type Unit } from "./types";
|
|
2
2
|
|
|
3
3
|
export class UserGateway extends Object {
|
|
4
4
|
_selectedFarm: Factory = {
|
|
@@ -315,16 +315,20 @@ export class UserGateway extends Object {
|
|
|
315
315
|
}
|
|
316
316
|
|
|
317
317
|
// 待处理任务列表
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
318
|
+
get task() {
|
|
319
|
+
return {
|
|
320
|
+
list: async (params: {
|
|
321
|
+
pageNo: number,
|
|
322
|
+
pageSize: number,
|
|
323
|
+
taskTypeId: number,
|
|
324
|
+
demandTimeStart: string,
|
|
325
|
+
demandTimeEnd: string,
|
|
326
|
+
applyUserId: number
|
|
327
|
+
}) => {
|
|
328
|
+
var axios = await this.context.ready;
|
|
329
|
+
return axios.post('/api/v2/task/list', params);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
328
332
|
}
|
|
329
333
|
|
|
330
334
|
//根据组织机构id获得该组织机构下所有人员
|