@ningboyz/apis 1.1.69 → 1.1.71
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/.prettierrc +15 -15
- package/index.ts +90 -90
- package/package.json +24 -24
- package/packages/antv/cnfg.ts +47 -47
- package/packages/antv/index.ts +20 -20
- package/packages/antv/main.ts +54 -54
- package/packages/antv/para.ts +47 -47
- package/packages/antv/type.ts +59 -59
- package/packages/axios.ts +136 -136
- package/packages/card/form.ts +18 -18
- package/packages/card/gblb.ts +113 -113
- package/packages/card/index.ts +49 -49
- package/packages/card/main.ts +270 -270
- package/packages/card/p4pz.ts +93 -93
- package/packages/card/tdata.ts +104 -104
- package/packages/card/type.ts +792 -792
- package/packages/card/tzclbgblb.ts +36 -36
- package/packages/card/zcbd.ts +110 -110
- package/packages/card/zccf.ts +105 -105
- package/packages/card/zccz.ts +112 -112
- package/packages/card/zcdb.ts +120 -120
- package/packages/card/zclb.ts +93 -93
- package/packages/card/zczj.ts +21 -21
- package/packages/card/zczjProp.ts +21 -21
- package/packages/cnfg/index.ts +14 -14
- package/packages/cnfg/main.ts +42 -42
- package/packages/cnfg/type.ts +4 -4
- package/packages/core/dddw.ts +51 -51
- package/packages/core/dept.ts +94 -94
- package/packages/core/dict.ts +69 -69
- package/packages/core/index.ts +62 -62
- package/packages/core/laid.ts +85 -85
- package/packages/core/local.ts +29 -29
- package/packages/core/mast.ts +23 -23
- package/packages/core/part.ts +62 -62
- package/packages/core/path.ts +46 -46
- package/packages/core/sysbilltype.ts +53 -53
- package/packages/core/sysclas.ts +16 -16
- package/packages/core/sysenvr.ts +15 -15
- package/packages/core/syskjnd.ts +18 -18
- package/packages/core/sysmenu.ts +119 -119
- package/packages/core/systravel.ts +40 -40
- package/packages/core/type.ts +73 -73
- package/packages/core/types.ts +571 -563
- package/packages/core/unit.ts +75 -75
- package/packages/core/user.ts +385 -375
- package/packages/cron/index.ts +14 -14
- package/packages/cron/main.ts +55 -55
- package/packages/cron/type.ts +18 -18
- package/packages/elem/index.ts +14 -14
- package/packages/elem/main.ts +68 -68
- package/packages/elem/type.ts +7 -7
- package/packages/expd/index.ts +14 -14
- package/packages/expd/main.ts +23 -23
- package/packages/expd/type.ts +18 -18
- package/packages/flow/duty.ts +57 -57
- package/packages/flow/flow.ts +97 -97
- package/packages/flow/index.ts +25 -25
- package/packages/flow/main.ts +61 -61
- package/packages/flow/node.ts +76 -76
- package/packages/flow/type.ts +214 -214
- package/packages/flow/void.ts +64 -64
- package/packages/gams/cnfg.ts +64 -64
- package/packages/gams/index.ts +19 -19
- package/packages/gams/titem.ts +40 -40
- package/packages/gams/ttype.ts +40 -40
- package/packages/gams/type.ts +88 -88
- package/packages/grow/grow.ts +17 -17
- package/packages/grow/index.ts +14 -14
- package/packages/grow/type.ts +7 -7
- package/packages/gzjg/gzlm.ts +82 -82
- package/packages/gzjg/index.ts +16 -16
- package/packages/gzjg/main.ts +62 -62
- package/packages/gzjg/type.ts +100 -100
- package/packages/gztb/index.ts +14 -14
- package/packages/gztb/main.ts +33 -33
- package/packages/gztb/type.ts +27 -27
- package/packages/gzzd/index.ts +14 -14
- package/packages/gzzd/main.ts +82 -82
- package/packages/gzzd/type.ts +68 -68
- package/packages/hzcb/index.ts +14 -14
- package/packages/hzcb/main.ts +43 -43
- package/packages/hzcb/type.ts +20 -20
- package/packages/index.ts +26 -26
- package/packages/load/data.ts +20 -20
- package/packages/load/index.ts +23 -23
- package/packages/load/main.ts +19 -19
- package/packages/load/type.ts +30 -30
- package/packages/load/yqdw.ts +15 -15
- package/packages/load/yqkm.ts +15 -15
- package/packages/myoa/index.ts +19 -19
- package/packages/myoa/main.ts +142 -142
- package/packages/myoa/room.ts +45 -45
- package/packages/myoa/type.ts +186 -186
- package/packages/myoa/withcard.ts +114 -114
- package/packages/noti/index.ts +14 -14
- package/packages/noti/main.ts +47 -47
- package/packages/noti/type.ts +26 -26
- package/packages/ocri/index.ts +13 -13
- package/packages/ocri/path.ts +17 -17
- package/packages/ocri/type.ts +6 -6
- package/packages/pzpt/cnfg.ts +92 -92
- package/packages/pzpt/glfa.ts +59 -59
- package/packages/pzpt/glkm.ts +51 -51
- package/packages/pzpt/index.ts +47 -47
- package/packages/pzpt/item.ts +54 -54
- package/packages/pzpt/k0km.ts +41 -41
- package/packages/pzpt/k8km.ts +55 -55
- package/packages/pzpt/kbkm.ts +25 -25
- package/packages/pzpt/pzpz.ts +60 -60
- package/packages/pzpt/pzpzp6pz.ts +44 -44
- package/packages/pzpt/type.ts +50 -50
- package/packages/pzpt/types.ts +481 -481
- package/packages/pzpt/yqkb.ts +20 -20
- package/packages/pzpt/yqkm.ts +34 -34
- package/packages/tabl/index.ts +14 -14
- package/packages/tabl/main.ts +116 -116
- package/packages/tabl/type.ts +148 -148
- package/packages/task/index.ts +13 -13
- package/packages/task/main.ts +48 -48
- package/packages/task/type.ts +18 -18
- package/packages/type.ts +9 -9
- package/packages/wldy/data.ts +52 -52
- package/packages/wldy/index.ts +20 -20
- package/packages/wldy/item.ts +52 -52
- package/packages/wldy/page.ts +63 -63
- package/packages/wldy/type.ts +48 -48
- package/packages/wtui/ctrl.ts +45 -45
- package/packages/wtui/envr.ts +15 -15
- package/packages/wtui/form.ts +61 -61
- package/packages/wtui/index.ts +44 -44
- package/packages/wtui/item.ts +62 -62
- package/packages/wtui/main.ts +85 -85
- package/packages/wtui/menu.ts +37 -37
- package/packages/wtui/node.ts +55 -55
- package/packages/wtui/todo.ts +77 -77
- package/packages/wtui/type.ts +384 -384
- package/packages/wtui/user.ts +39 -39
- package/packages/wtui/view.ts +90 -90
- package/packages/wtui/zone.ts +52 -52
- package/packages/yzcg/index.ts +14 -14
- package/packages/yzcg/main.ts +49 -49
- package/packages/yzcg/type.ts +22 -22
- package/packages/yzht/index.ts +14 -14
- package/packages/yzht/main.ts +50 -44
- package/packages/yzht/type.ts +38 -32
- package/packages/zbys/detail.ts +55 -55
- package/packages/zbys/index.ts +13 -13
- package/packages/zbys/type.ts +40 -40
- package/packages/zbzd/index.ts +14 -14
- package/packages/zbzd/main.ts +48 -48
- package/packages/zbzd/type.ts +29 -29
- package/readme.md +1 -1
- package/packages/antv/type.ts~ +0 -57
- package/packages/card/index.ts~ +0 -47
- package/packages/card/tzclbsort.ts~ +0 -36
- package/packages/card/zccz.ts~ +0 -106
- package/packages/core/laid.ts~ +0 -84
- package/packages/expd/type.ts~ +0 -17
- package/packages/noti/main.ts~ +0 -47
- package/packages/noti/type.ts~ +0 -29
- package/packages/wtui/type.ts~ +0 -380
package/packages/yzht/type.ts
CHANGED
|
@@ -1,32 +1,38 @@
|
|
|
1
|
-
/** ========== main ========== */
|
|
2
|
-
export interface IYzhtMainSelectdbQuerys {
|
|
3
|
-
userindx: number;
|
|
4
|
-
datahide: number;
|
|
5
|
-
withflow: number;
|
|
6
|
-
directat: number;
|
|
7
|
-
queuesby: number;
|
|
8
|
-
useronly: number;
|
|
9
|
-
sourcend: number;
|
|
10
|
-
lockonly: number;
|
|
11
|
-
lockmyoa: number;
|
|
12
|
-
viewonly: number;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export class TYzhtMainSelectdbQuerys implements IYzhtMainSelectdbQuerys {
|
|
16
|
-
userindx: number = 0
|
|
17
|
-
datahide: number = -1;
|
|
18
|
-
withflow: number = -1;
|
|
19
|
-
directat: number = -1;
|
|
20
|
-
queuesby: number = -1;
|
|
21
|
-
useronly: number = -1;
|
|
22
|
-
sourcend: number = -1;
|
|
23
|
-
lockonly: number = -1;
|
|
24
|
-
lockmyoa: number = -1;
|
|
25
|
-
viewonly: number = -1;
|
|
26
|
-
}
|
|
27
|
-
export interface IYzhtMainDeletedbQuerys {
|
|
28
|
-
datahide: number; //1:表示作废;
|
|
29
|
-
}
|
|
30
|
-
export class TYzhtMainDeletedbQuerys implements IYzhtMainDeletedbQuerys {
|
|
31
|
-
datahide: number = -1;
|
|
32
|
-
}
|
|
1
|
+
/** ========== main ========== */
|
|
2
|
+
export interface IYzhtMainSelectdbQuerys {
|
|
3
|
+
userindx: number;
|
|
4
|
+
datahide: number;
|
|
5
|
+
withflow: number;
|
|
6
|
+
directat: number;
|
|
7
|
+
queuesby: number;
|
|
8
|
+
useronly: number;
|
|
9
|
+
sourcend: number;
|
|
10
|
+
lockonly: number;
|
|
11
|
+
lockmyoa: number;
|
|
12
|
+
viewonly: number;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export class TYzhtMainSelectdbQuerys implements IYzhtMainSelectdbQuerys {
|
|
16
|
+
userindx: number = 0
|
|
17
|
+
datahide: number = -1;
|
|
18
|
+
withflow: number = -1;
|
|
19
|
+
directat: number = -1;
|
|
20
|
+
queuesby: number = -1;
|
|
21
|
+
useronly: number = -1;
|
|
22
|
+
sourcend: number = -1;
|
|
23
|
+
lockonly: number = -1;
|
|
24
|
+
lockmyoa: number = -1;
|
|
25
|
+
viewonly: number = -1;
|
|
26
|
+
}
|
|
27
|
+
export interface IYzhtMainDeletedbQuerys {
|
|
28
|
+
datahide: number; //1:表示作废;
|
|
29
|
+
}
|
|
30
|
+
export class TYzhtMainDeletedbQuerys implements IYzhtMainDeletedbQuerys {
|
|
31
|
+
datahide: number = -1;
|
|
32
|
+
}
|
|
33
|
+
export interface IYzhtMainDetaildbQuerys {
|
|
34
|
+
yzhtmain: number;
|
|
35
|
+
}
|
|
36
|
+
export class TYzhtMainDetaildbQuerys implements IYzhtMainDetaildbQuerys {
|
|
37
|
+
yzhtmain: number = -1;
|
|
38
|
+
}
|
package/packages/zbys/detail.ts
CHANGED
|
@@ -1,55 +1,55 @@
|
|
|
1
|
-
import { TElem } from "@ningboyz/types";
|
|
2
|
-
import { HttpRequest } from "../axios";
|
|
3
|
-
import { IElemDetailSelectdbQuerys, IElemDetailInsertdbQuerys, IElemDetailQueuesbyQuerys } from "./type";
|
|
4
|
-
class DetailRequest {
|
|
5
|
-
private httpRequest: HttpRequest;
|
|
6
|
-
constructor(httpRequest: HttpRequest) {
|
|
7
|
-
this.httpRequest = httpRequest;
|
|
8
|
-
}
|
|
9
|
-
/**
|
|
10
|
-
* 获取要素明细
|
|
11
|
-
* @param querys
|
|
12
|
-
*/
|
|
13
|
-
selectdb(querys: IElemDetailSelectdbQuerys) {
|
|
14
|
-
return this.httpRequest.post<TElem.IElemDataResponse[]>("/elem/tdata/selectdb", querys, undefined);
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* 添加要素明细
|
|
18
|
-
* @param querys
|
|
19
|
-
*/
|
|
20
|
-
insertdb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
21
|
-
return this.httpRequest.post<TElem.IElemDataResponse[]>("/elem/tdata/insertdb", querys, params);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* 删除要素明细
|
|
26
|
-
* @param params
|
|
27
|
-
*/
|
|
28
|
-
deletedb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
29
|
-
return this.httpRequest.post<TElem.IElemDataResponse[]>("/elem/tdata/deletedb", querys, params);
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* 修改要素明细
|
|
34
|
-
* @param params
|
|
35
|
-
*/
|
|
36
|
-
updatedb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
37
|
-
return this.httpRequest.post<TElem.IElemDataResponse[]>(`/elem/tdata/updatedb`, querys, params);
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* 上传要素明细
|
|
41
|
-
* @param params
|
|
42
|
-
*/
|
|
43
|
-
uploaddb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
44
|
-
return this.httpRequest.post<TElem.IElemDataResponse[]>(`/elem/tdata/uploaddb`, querys, params);
|
|
45
|
-
}
|
|
46
|
-
/**
|
|
47
|
-
* 排序要素明细
|
|
48
|
-
* @param params
|
|
49
|
-
*/
|
|
50
|
-
queuesby(querys: IElemDetailQueuesbyQuerys, params: object) {
|
|
51
|
-
return this.httpRequest.post<TElem.IElemDataResponse[]>(`/elem/tdata/queuesby`, querys, params);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export default DetailRequest;
|
|
1
|
+
import { TElem } from "@ningboyz/types";
|
|
2
|
+
import { HttpRequest } from "../axios";
|
|
3
|
+
import { IElemDetailSelectdbQuerys, IElemDetailInsertdbQuerys, IElemDetailQueuesbyQuerys } from "./type";
|
|
4
|
+
class DetailRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
/**
|
|
10
|
+
* 获取要素明细
|
|
11
|
+
* @param querys
|
|
12
|
+
*/
|
|
13
|
+
selectdb(querys: IElemDetailSelectdbQuerys) {
|
|
14
|
+
return this.httpRequest.post<TElem.IElemDataResponse[]>("/elem/tdata/selectdb", querys, undefined);
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* 添加要素明细
|
|
18
|
+
* @param querys
|
|
19
|
+
*/
|
|
20
|
+
insertdb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
21
|
+
return this.httpRequest.post<TElem.IElemDataResponse[]>("/elem/tdata/insertdb", querys, params);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* 删除要素明细
|
|
26
|
+
* @param params
|
|
27
|
+
*/
|
|
28
|
+
deletedb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
29
|
+
return this.httpRequest.post<TElem.IElemDataResponse[]>("/elem/tdata/deletedb", querys, params);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 修改要素明细
|
|
34
|
+
* @param params
|
|
35
|
+
*/
|
|
36
|
+
updatedb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
37
|
+
return this.httpRequest.post<TElem.IElemDataResponse[]>(`/elem/tdata/updatedb`, querys, params);
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* 上传要素明细
|
|
41
|
+
* @param params
|
|
42
|
+
*/
|
|
43
|
+
uploaddb(querys: IElemDetailInsertdbQuerys, params: object) {
|
|
44
|
+
return this.httpRequest.post<TElem.IElemDataResponse[]>(`/elem/tdata/uploaddb`, querys, params);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* 排序要素明细
|
|
48
|
+
* @param params
|
|
49
|
+
*/
|
|
50
|
+
queuesby(querys: IElemDetailQueuesbyQuerys, params: object) {
|
|
51
|
+
return this.httpRequest.post<TElem.IElemDataResponse[]>(`/elem/tdata/queuesby`, querys, params);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export default DetailRequest;
|
package/packages/zbys/index.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
-
import DetailRequest from "./detail";
|
|
3
|
-
|
|
4
|
-
class ZbysRequest {
|
|
5
|
-
public detail: DetailRequest;
|
|
6
|
-
constructor(config: IAxiosConfig) {
|
|
7
|
-
const request = createRequest(config);
|
|
8
|
-
this.detail = new DetailRequest(request);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export default ZbysRequest;
|
|
13
|
-
export * from "./type";
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import DetailRequest from "./detail";
|
|
3
|
+
|
|
4
|
+
class ZbysRequest {
|
|
5
|
+
public detail: DetailRequest;
|
|
6
|
+
constructor(config: IAxiosConfig) {
|
|
7
|
+
const request = createRequest(config);
|
|
8
|
+
this.detail = new DetailRequest(request);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export default ZbysRequest;
|
|
13
|
+
export * from "./type";
|
package/packages/zbys/type.ts
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/** ===============detail============== */
|
|
2
|
-
export interface IElemDetailSelectdbQuerys {
|
|
3
|
-
sourcend: number;
|
|
4
|
-
fromelem: number;
|
|
5
|
-
elemfrom: string;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export class TElemDetailSelectdbQuerys implements IElemDetailSelectdbQuerys {
|
|
9
|
-
fromelem: number = -1;
|
|
10
|
-
sourcend: number = -1;
|
|
11
|
-
elemfrom: string = "";
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IElemDetailInsertdbQuerys {
|
|
15
|
-
sourcend: number;
|
|
16
|
-
/**取左侧类中:TElemElemResponse.elemIndx*/
|
|
17
|
-
fromelem: number;
|
|
18
|
-
/**取左侧类中:TElemElemResponse.elemFrom*/
|
|
19
|
-
elemfrom: string;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
export class TElemDetailInsertdbQuerys implements IElemDetailInsertdbQuerys {
|
|
23
|
-
fromelem: number = -1;
|
|
24
|
-
sourcend: number = -1;
|
|
25
|
-
elemfrom: string = "";
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
export interface IElemDetailQueuesbyQuerys {
|
|
29
|
-
sourcend: number;
|
|
30
|
-
/**取左侧类中:TElemElemResponse.elemIndx*/
|
|
31
|
-
fromelem: number;
|
|
32
|
-
/**取左侧类中:TElemElemResponse.elemFrom*/
|
|
33
|
-
elemfrom: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export class TElemDetailQueuesbyQuerys implements IElemDetailQueuesbyQuerys {
|
|
37
|
-
fromelem: number = -1;
|
|
38
|
-
elemfrom: string = "";
|
|
39
|
-
sourcend: number = -1;
|
|
40
|
-
}
|
|
1
|
+
/** ===============detail============== */
|
|
2
|
+
export interface IElemDetailSelectdbQuerys {
|
|
3
|
+
sourcend: number;
|
|
4
|
+
fromelem: number;
|
|
5
|
+
elemfrom: string;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class TElemDetailSelectdbQuerys implements IElemDetailSelectdbQuerys {
|
|
9
|
+
fromelem: number = -1;
|
|
10
|
+
sourcend: number = -1;
|
|
11
|
+
elemfrom: string = "";
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IElemDetailInsertdbQuerys {
|
|
15
|
+
sourcend: number;
|
|
16
|
+
/**取左侧类中:TElemElemResponse.elemIndx*/
|
|
17
|
+
fromelem: number;
|
|
18
|
+
/**取左侧类中:TElemElemResponse.elemFrom*/
|
|
19
|
+
elemfrom: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export class TElemDetailInsertdbQuerys implements IElemDetailInsertdbQuerys {
|
|
23
|
+
fromelem: number = -1;
|
|
24
|
+
sourcend: number = -1;
|
|
25
|
+
elemfrom: string = "";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface IElemDetailQueuesbyQuerys {
|
|
29
|
+
sourcend: number;
|
|
30
|
+
/**取左侧类中:TElemElemResponse.elemIndx*/
|
|
31
|
+
fromelem: number;
|
|
32
|
+
/**取左侧类中:TElemElemResponse.elemFrom*/
|
|
33
|
+
elemfrom: string;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export class TElemDetailQueuesbyQuerys implements IElemDetailQueuesbyQuerys {
|
|
37
|
+
fromelem: number = -1;
|
|
38
|
+
elemfrom: string = "";
|
|
39
|
+
sourcend: number = -1;
|
|
40
|
+
}
|
package/packages/zbzd/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
-
import MainRequest from "./main";
|
|
3
|
-
|
|
4
|
-
class ZbzdRequest {
|
|
5
|
-
public main: MainRequest;
|
|
6
|
-
|
|
7
|
-
constructor(config: IAxiosConfig) {
|
|
8
|
-
const request = createRequest(config);
|
|
9
|
-
this.main = new MainRequest(request);
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
export default ZbzdRequest;
|
|
14
|
-
export * from "./type"
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import MainRequest from "./main";
|
|
3
|
+
|
|
4
|
+
class ZbzdRequest {
|
|
5
|
+
public main: MainRequest;
|
|
6
|
+
|
|
7
|
+
constructor(config: IAxiosConfig) {
|
|
8
|
+
const request = createRequest(config);
|
|
9
|
+
this.main = new MainRequest(request);
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export default ZbzdRequest;
|
|
14
|
+
export * from "./type"
|
package/packages/zbzd/main.ts
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
import { TZbzd } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import { IZbzdMainSelectdbQuerys, IZbzdMainInsertdbQuerys, IZbzdMainDetaildbQuerys } from "./type";
|
|
4
|
-
import { IParams } from "../type";
|
|
5
|
-
|
|
6
|
-
class ParaRequest {
|
|
7
|
-
private httpRequest: HttpRequest;
|
|
8
|
-
constructor(httpRequest: HttpRequest) {
|
|
9
|
-
this.httpRequest = httpRequest;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* 获取预算指标
|
|
14
|
-
*/
|
|
15
|
-
selectdb(querys: IZbzdMainSelectdbQuerys) {
|
|
16
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys);
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* 新增预算指标
|
|
21
|
-
*/
|
|
22
|
-
insertdb(querys: IZbzdMainInsertdbQuerys, params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
23
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb", querys, params);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* 修改预算指标
|
|
28
|
-
*/
|
|
29
|
-
updatedb(querys: IZbzdMainInsertdbQuerys, params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
30
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", querys, params);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
/**
|
|
34
|
-
* 删除预算指标
|
|
35
|
-
*/
|
|
36
|
-
deletedb(params: object) {
|
|
37
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/deletedb", undefined, params);
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* 获取预算指标详情
|
|
42
|
-
*/
|
|
43
|
-
detaildb(querys: IZbzdMainDetaildbQuerys, params: object) {
|
|
44
|
-
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/detaildb", querys, params);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
export default ParaRequest;
|
|
1
|
+
import { TZbzd } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
import { IZbzdMainSelectdbQuerys, IZbzdMainInsertdbQuerys, IZbzdMainDetaildbQuerys } from "./type";
|
|
4
|
+
import { IParams } from "../type";
|
|
5
|
+
|
|
6
|
+
class ParaRequest {
|
|
7
|
+
private httpRequest: HttpRequest;
|
|
8
|
+
constructor(httpRequest: HttpRequest) {
|
|
9
|
+
this.httpRequest = httpRequest;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* 获取预算指标
|
|
14
|
+
*/
|
|
15
|
+
selectdb(querys: IZbzdMainSelectdbQuerys) {
|
|
16
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/selectdb", querys);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* 新增预算指标
|
|
21
|
+
*/
|
|
22
|
+
insertdb(querys: IZbzdMainInsertdbQuerys, params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
23
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/insertdb", querys, params);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* 修改预算指标
|
|
28
|
+
*/
|
|
29
|
+
updatedb(querys: IZbzdMainInsertdbQuerys, params: IParams<TZbzd.IZbzdMainResponse>) {
|
|
30
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/updatedb", querys, params);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* 删除预算指标
|
|
35
|
+
*/
|
|
36
|
+
deletedb(params: object) {
|
|
37
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/deletedb", undefined, params);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 获取预算指标详情
|
|
42
|
+
*/
|
|
43
|
+
detaildb(querys: IZbzdMainDetaildbQuerys, params: object) {
|
|
44
|
+
return this.httpRequest.post<TZbzd.IZbzdMainResponse[]>("/zbzd/tmain/detaildb", querys, params);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export default ParaRequest;
|
package/packages/zbzd/type.ts
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
/** ========== main ========== */
|
|
2
|
-
export interface IZbzdMainSelectdbQuerys {
|
|
3
|
-
withflow: number;
|
|
4
|
-
useronly: number;
|
|
5
|
-
sourcend: number;
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
export class TZbzdMainSelectdbQuerys implements IZbzdMainSelectdbQuerys {
|
|
9
|
-
withflow: number = 0
|
|
10
|
-
useronly: number = -1;
|
|
11
|
-
sourcend: number = -1
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export interface IZbzdMainInsertdbQuerys {
|
|
15
|
-
sourcend: number;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export class TZbzdMainInsertdbQuerys implements IZbzdMainInsertdbQuerys {
|
|
19
|
-
sourcend: number = -1
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
export interface IZbzdMainDetaildbQuerys {
|
|
24
|
-
zbzdzdid: number;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export class TZbzdMainDetaildbQuerys implements IZbzdMainDetaildbQuerys {
|
|
28
|
-
zbzdzdid: number = -1;
|
|
29
|
-
}
|
|
1
|
+
/** ========== main ========== */
|
|
2
|
+
export interface IZbzdMainSelectdbQuerys {
|
|
3
|
+
withflow: number;
|
|
4
|
+
useronly: number;
|
|
5
|
+
sourcend: number;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export class TZbzdMainSelectdbQuerys implements IZbzdMainSelectdbQuerys {
|
|
9
|
+
withflow: number = 0
|
|
10
|
+
useronly: number = -1;
|
|
11
|
+
sourcend: number = -1
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface IZbzdMainInsertdbQuerys {
|
|
15
|
+
sourcend: number;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export class TZbzdMainInsertdbQuerys implements IZbzdMainInsertdbQuerys {
|
|
19
|
+
sourcend: number = -1
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export interface IZbzdMainDetaildbQuerys {
|
|
24
|
+
zbzdzdid: number;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export class TZbzdMainDetaildbQuerys implements IZbzdMainDetaildbQuerys {
|
|
28
|
+
zbzdzdid: number = -1;
|
|
29
|
+
}
|
package/readme.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
### @ningboyz/apis
|
|
1
|
+
### @ningboyz/apis
|
package/packages/antv/type.ts~
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/** cnfg */
|
|
2
|
-
export interface IAntvCnfgSelectdbQuerys {
|
|
3
|
-
antvmain: number;
|
|
4
|
-
}
|
|
5
|
-
|
|
6
|
-
export class TAntvCnfgSelectdbQuerys implements IAntvCnfgSelectdbQuerys {
|
|
7
|
-
antvmain: number = -1;
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export interface IAntvCnfgDetaildbQuerys {
|
|
11
|
-
antvmain: number;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
export class TAntvCnfgDetaildbQuerys implements IAntvCnfgDetaildbQuerys {
|
|
15
|
-
antvmain: number = -1;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
/** main */
|
|
19
|
-
export interface IAntvMainDetaildbQuerys {
|
|
20
|
-
antvmain: number;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export class TAntvMainDetaildbQuerys implements IAntvMainDetaildbQuerys {
|
|
24
|
-
antvmain: number = -1;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export interface IAntvMainGet5DataQuerys {
|
|
28
|
-
antvname: string;
|
|
29
|
-
cnfgname: string;
|
|
30
|
-
unittypetext: string;
|
|
31
|
-
[key: string]: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export class TAntvMainGet5DataQuerys implements IAntvMainGet5DataQuerys {
|
|
35
|
-
antvname: string = "";
|
|
36
|
-
cnfgname: string = "";
|
|
37
|
-
unittypetext: string = "";
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/** para */
|
|
41
|
-
export interface IAntvParaSelectdbQuerys {
|
|
42
|
-
antvmain: number;
|
|
43
|
-
antvcnfg: number;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export class TAntvParaSelectdbQuerys implements IAntvParaSelectdbQuerys {
|
|
47
|
-
antvmain: number = -1;
|
|
48
|
-
antvcnfg: number = -1;
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export interface IAntvParaDetaildbQuerys {
|
|
52
|
-
antvmain: number;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
export class TAntvParaDetaildbQuerys implements IAntvParaDetaildbQuerys {
|
|
56
|
-
antvmain: number = -1;
|
|
57
|
-
}
|
package/packages/card/index.ts~
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
-
import GblbRequest from "./gblb";
|
|
3
|
-
import MainRequest from "./main";
|
|
4
|
-
import ZcbdRequest from "./zcbd";
|
|
5
|
-
import ZccfRequest from "./zccf";
|
|
6
|
-
import ZcczRequest from "./zccz";
|
|
7
|
-
import ZcdbRequest from "./zcdb";
|
|
8
|
-
import ZclbRequest from "./zclb";
|
|
9
|
-
import FormRequest from "./form";
|
|
10
|
-
import ZczjRequest from "./zczj";
|
|
11
|
-
import P4pzRequest from "./p4pz";
|
|
12
|
-
import ZczjPropRequest from "./zczjProp";
|
|
13
|
-
import TzclbgblbRequest from "./tzclbgblb";
|
|
14
|
-
|
|
15
|
-
class CardRequest {
|
|
16
|
-
public gblb: GblbRequest;
|
|
17
|
-
public main: MainRequest;
|
|
18
|
-
public zcbd: ZcbdRequest;
|
|
19
|
-
public zccf: ZccfRequest;
|
|
20
|
-
public zccz: ZcczRequest;
|
|
21
|
-
public zcdb: ZcdbRequest;
|
|
22
|
-
public zclb: ZclbRequest;
|
|
23
|
-
public form: FormRequest;
|
|
24
|
-
public p4pz: P4pzRequest;
|
|
25
|
-
public zczj: ZczjRequest;
|
|
26
|
-
public zczjProp: ZczjPropRequest;
|
|
27
|
-
public tzclbgblb: TzclbgblbRequest;
|
|
28
|
-
|
|
29
|
-
constructor(config: IAxiosConfig) {
|
|
30
|
-
const request = createRequest(config);
|
|
31
|
-
this.gblb = new GblbRequest(request);
|
|
32
|
-
this.main = new MainRequest(request);
|
|
33
|
-
this.zcbd = new ZcbdRequest(request);
|
|
34
|
-
this.zccf = new ZccfRequest(request);
|
|
35
|
-
this.zccz = new ZcczRequest(request);
|
|
36
|
-
this.zcdb = new ZcdbRequest(request);
|
|
37
|
-
this.zclb = new ZclbRequest(request);
|
|
38
|
-
this.form = new FormRequest(request);
|
|
39
|
-
this.p4pz = new P4pzRequest(request);
|
|
40
|
-
this.zczj = new ZczjRequest(request);
|
|
41
|
-
this.zczjProp = new ZczjPropRequest(request);
|
|
42
|
-
this.tzclbgblb = new TzclbgblbRequest(request);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export default CardRequest;
|
|
47
|
-
export * from "./type";
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { TCard } from "@ningboyz/types";
|
|
2
|
-
import type { HttpRequest } from "../axios";
|
|
3
|
-
import {
|
|
4
|
-
ICardZclbsortUploaddbQuerys, ICardZclbsortSelectdbQuerys
|
|
5
|
-
} from "./type";
|
|
6
|
-
import {TParams} from "../core";
|
|
7
|
-
|
|
8
|
-
/** 资产类别关联国标类别香菇按接口 */
|
|
9
|
-
class TzclbsortRequest {
|
|
10
|
-
private httpRequest: HttpRequest;
|
|
11
|
-
|
|
12
|
-
constructor(httpRequest: HttpRequest) {
|
|
13
|
-
this.httpRequest = httpRequest;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* 获取资产类别关联国标类别列表
|
|
18
|
-
* @param querys
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
selectdb(querys: ICardZclbsortSelectdbQuerys) {
|
|
22
|
-
return this.httpRequest.post<TCard.TSyszclbgblbResponse[]>("/gapi/card/tzclbsort/selectdb", querys, undefined);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* 导入资产类别关联国标类别
|
|
27
|
-
* @param querys
|
|
28
|
-
* @param params
|
|
29
|
-
* @returns
|
|
30
|
-
*/
|
|
31
|
-
uploaddb(querys: ICardZclbsortUploaddbQuerys, params: TParams<TCard.TSyszclbgblbResponse[]>) {
|
|
32
|
-
return this.httpRequest.post<TCard.TSyszclbgblbResponse[]>("/gapi/card/tzclbsort/uploaddb", querys, params);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export default TzclbsortRequest;
|