@ningboyz/apis 1.0.12 → 1.0.13
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/.prettierignore +0 -0
- package/.prettierrc +15 -0
- package/index.ts +30 -14
- package/package.json +4 -9
- package/src/antv/cnfg.ts +52 -0
- package/src/antv/index.ts +19 -0
- package/src/antv/main.ts +62 -0
- package/src/antv/para.ts +53 -0
- package/src/axios.ts +47 -38
- package/src/card/form.ts +18 -0
- package/src/card/gblb.ts +47 -3
- package/src/card/index.ts +18 -3
- package/src/card/main.ts +181 -11
- package/src/card/p4pz.ts +145 -0
- package/src/card/zcbd.ts +83 -7
- package/src/card/zccf.ts +87 -7
- package/src/card/zccz.ts +79 -7
- package/src/card/zcdb.ts +107 -7
- package/src/card/zclb.ts +75 -0
- package/src/card/zczj.ts +26 -0
- package/src/card/zczjProp.ts +28 -0
- package/src/cnfg/index.ts +3 -3
- package/src/core/dept.ts +65 -9
- package/src/core/dict.ts +8 -0
- package/src/core/index.ts +9 -6
- package/src/core/laid.ts +96 -0
- package/src/core/part.ts +3 -3
- package/src/core/path.ts +24 -1
- package/src/core/sysmenu.ts +9 -7
- package/src/core/tsystravel.ts +47 -0
- package/src/core/unit.ts +35 -6
- package/src/core/user.ts +53 -2
- package/src/expd/index.ts +3 -3
- package/src/flow/flow.ts +99 -0
- package/src/flow/index.ts +6 -3
- package/src/flow/node.ts +7 -2
- package/src/gams/index.ts +3 -3
- package/src/grow/grow.ts +17 -0
- package/src/grow/index.ts +13 -0
- package/src/gzjg/index.ts +3 -3
- package/src/gztb/index.ts +13 -0
- package/src/gztb/main.ts +18 -0
- package/src/load/index.ts +3 -3
- package/src/noti/index.ts +13 -0
- package/src/noti/main.ts +49 -0
- package/src/ocri/index.ts +3 -3
- package/src/pzpt/index.ts +3 -3
- package/src/tabl/index.ts +3 -3
- package/src/tabl/main.ts +47 -11
- package/src/task/index.ts +13 -0
- package/src/task/main.ts +26 -0
- package/src/wldy/index.ts +3 -3
- package/src/wldy/item.ts +3 -2
- package/src/wldy/page.ts +11 -0
- package/src/wtui/ctrl.ts +43 -0
- package/src/wtui/form.ts +74 -0
- package/src/wtui/index.ts +26 -5
- package/src/wtui/item.ts +78 -0
- package/src/wtui/main.ts +5 -2
- package/src/wtui/menu.ts +44 -0
- package/src/wtui/node.ts +66 -0
- package/src/wtui/todo.ts +4 -1
- package/src/wtui/user.ts +33 -0
- package/src/wtui/view.ts +9 -3
- package/src/wtui/zone.ts +61 -0
- package/src/core/place.ts +0 -51
- /package/src/wtui/{tenvr.ts → envr.ts} +0 -0
package/src/tabl/main.ts
CHANGED
|
@@ -7,13 +7,15 @@ class MainRequest {
|
|
|
7
7
|
this.httpRequest = httpRequest;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
selectdb(sourcend: number, sysclasc: number, withflow = 1, usesyzcg = 1, usesform = 1) {
|
|
10
|
+
selectdb(sourcend: number, sysclasc: number, withflow = 1, usesyzcg = 1, usesform = 1, gzjgmain = -1, taskmain = -1) {
|
|
11
11
|
const params = {
|
|
12
12
|
sourcend,
|
|
13
13
|
sysclasc,
|
|
14
14
|
withflow,
|
|
15
15
|
usesyzcg,
|
|
16
|
-
usesform
|
|
16
|
+
usesform,
|
|
17
|
+
gzjgmain,
|
|
18
|
+
taskmain
|
|
17
19
|
};
|
|
18
20
|
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/selectdb", undefined, params);
|
|
19
21
|
}
|
|
@@ -21,10 +23,9 @@ class MainRequest {
|
|
|
21
23
|
/**
|
|
22
24
|
* 新增Tabl
|
|
23
25
|
*/
|
|
24
|
-
insertdb(isauto: number,
|
|
26
|
+
insertdb(isauto: number, data: object) {
|
|
25
27
|
const params = {
|
|
26
|
-
isauto
|
|
27
|
-
jsauto
|
|
28
|
+
isauto
|
|
28
29
|
};
|
|
29
30
|
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/insertdb", data, params);
|
|
30
31
|
}
|
|
@@ -32,11 +33,15 @@ class MainRequest {
|
|
|
32
33
|
/**
|
|
33
34
|
* 修改Tabl-保留历史记录
|
|
34
35
|
*/
|
|
35
|
-
modifydx(
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
modifydx(data: object) {
|
|
37
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifydx", data, undefined);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* 批量修改Tabl-保留历史记录
|
|
42
|
+
*/
|
|
43
|
+
modifyd2(data: object) {
|
|
44
|
+
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/modifyd2", data, undefined);
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
/**
|
|
@@ -47,6 +52,35 @@ class MainRequest {
|
|
|
47
52
|
return this.httpRequest.post<TTabl.ITablMainResponse[]>("/tabl/tmain/deletedb", data, params);
|
|
48
53
|
}
|
|
49
54
|
|
|
55
|
+
/**报表查询Finished */
|
|
56
|
+
finishcx(
|
|
57
|
+
gzjgmain: number,
|
|
58
|
+
sourcend: number,
|
|
59
|
+
sourceqj: number = -1,
|
|
60
|
+
unitmain: number = -1,
|
|
61
|
+
withstat: number = -1,
|
|
62
|
+
dataguid: string = "",
|
|
63
|
+
withlock: number = -1,
|
|
64
|
+
gzjglock: number,
|
|
65
|
+
taskmain: number = -1,
|
|
66
|
+
voidonly: number = -1,
|
|
67
|
+
dataFind?: FormData
|
|
68
|
+
) {
|
|
69
|
+
const params = {
|
|
70
|
+
gzjgmain,
|
|
71
|
+
sourcend,
|
|
72
|
+
sourceqj,
|
|
73
|
+
unitmain,
|
|
74
|
+
withstat,
|
|
75
|
+
dataguid,
|
|
76
|
+
withlock,
|
|
77
|
+
gzjglock,
|
|
78
|
+
taskmain,
|
|
79
|
+
voidonly
|
|
80
|
+
};
|
|
81
|
+
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/finishedcx", dataFind, params);
|
|
82
|
+
}
|
|
83
|
+
|
|
50
84
|
selectcx(
|
|
51
85
|
gzjgmain: number,
|
|
52
86
|
sourcend: number,
|
|
@@ -56,6 +90,7 @@ class MainRequest {
|
|
|
56
90
|
dataguid: string = "",
|
|
57
91
|
withlock: number = -1,
|
|
58
92
|
gzjglock: number,
|
|
93
|
+
taskmain: number = -1,
|
|
59
94
|
dataFind?: FormData
|
|
60
95
|
) {
|
|
61
96
|
const params = {
|
|
@@ -66,7 +101,8 @@ class MainRequest {
|
|
|
66
101
|
withstat,
|
|
67
102
|
dataguid,
|
|
68
103
|
withlock,
|
|
69
|
-
gzjglock
|
|
104
|
+
gzjglock,
|
|
105
|
+
taskmain
|
|
70
106
|
};
|
|
71
107
|
return this.httpRequest.post<TTabl.ITablDataResponse[]>("/tabl/tmain/selectcx", dataFind, params);
|
|
72
108
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import MainRequest from "./main";
|
|
3
|
+
|
|
4
|
+
class TablRequest {
|
|
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 TablRequest;
|
package/src/task/main.ts
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { TTask } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class MainRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
selectdb(useronly: number, gzjgmain: number) {
|
|
11
|
+
const params = {
|
|
12
|
+
useronly,
|
|
13
|
+
gzjgmain
|
|
14
|
+
};
|
|
15
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/selectdb", undefined, params);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
detaildb(taskmain: number) {
|
|
19
|
+
const params = {
|
|
20
|
+
taskmain
|
|
21
|
+
};
|
|
22
|
+
return this.httpRequest.post<TTask.ITaskMainResponse[]>("/gapi/task/tmain/detaildb", undefined, params);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export default MainRequest;
|
package/src/wldy/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRequest } from "../axios";
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
2
|
import PageRequest from "./page";
|
|
3
3
|
import DataRequest from "./data";
|
|
4
4
|
import ItemRequest from "./item";
|
|
@@ -8,8 +8,8 @@ class WldyRequest {
|
|
|
8
8
|
public data: DataRequest;
|
|
9
9
|
public item: ItemRequest;
|
|
10
10
|
|
|
11
|
-
constructor(
|
|
12
|
-
const request = createRequest(
|
|
11
|
+
constructor(config: IAxiosConfig) {
|
|
12
|
+
const request = createRequest(config);
|
|
13
13
|
this.page = new PageRequest(request);
|
|
14
14
|
this.data = new DataRequest(request);
|
|
15
15
|
this.item = new ItemRequest(request);
|
package/src/wldy/item.ts
CHANGED
|
@@ -13,9 +13,10 @@ class ItemRequest {
|
|
|
13
13
|
* @param useruuid
|
|
14
14
|
* @param unitmain
|
|
15
15
|
*/
|
|
16
|
-
selectdb(wldypage: number) {
|
|
16
|
+
selectdb(wldypage: number, wldydata: number) {
|
|
17
17
|
const params = {
|
|
18
|
-
wldypage
|
|
18
|
+
wldypage,
|
|
19
|
+
wldydata
|
|
19
20
|
};
|
|
20
21
|
return this.httpRequest.post<TWldy.IWldyItemResponse[]>("/gapi/wldy/titem/selectdb", undefined, params);
|
|
21
22
|
}
|
package/src/wldy/page.ts
CHANGED
|
@@ -22,6 +22,17 @@ class PageRequest {
|
|
|
22
22
|
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectdb", undefined, params);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
/**
|
|
26
|
+
* 根据使用场景查询打印模板
|
|
27
|
+
* @param pageuses
|
|
28
|
+
*/
|
|
29
|
+
selectd2(pageuses: string) {
|
|
30
|
+
const params = {
|
|
31
|
+
pageuses
|
|
32
|
+
};
|
|
33
|
+
return this.httpRequest.post<TWldy.IWldyPageResponse[]>("/gapi/wldy/tpage/selectd2", undefined, params);
|
|
34
|
+
}
|
|
35
|
+
|
|
25
36
|
/**
|
|
26
37
|
* 添加打印模板数据
|
|
27
38
|
* @param data
|
package/src/wtui/ctrl.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { TWtui } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class OperateRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
selectdb(wtuiview: number) {
|
|
10
|
+
const params = {
|
|
11
|
+
wtuiview
|
|
12
|
+
};
|
|
13
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>("/wtui/tctrl/selectdb", undefined, params);
|
|
14
|
+
}
|
|
15
|
+
deletedb(data: object) {
|
|
16
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>("/wtui/tctrl/deletedb", data);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
insertdb(wtuimain: number, data: object) {
|
|
20
|
+
const params = {
|
|
21
|
+
wtuimain
|
|
22
|
+
};
|
|
23
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>("/wtui/tctrl/insertdb", data, params);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
updatedb(wtuiview: number, data: object) {
|
|
27
|
+
const params = {
|
|
28
|
+
wtuiview
|
|
29
|
+
};
|
|
30
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>("/wtui/tctrl/updatedb", data, params);
|
|
31
|
+
}
|
|
32
|
+
uploaddb(data: object) {
|
|
33
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>("/wtui/tctrl/uploaddb", data, undefined);
|
|
34
|
+
}
|
|
35
|
+
detaildb(ctrlIndx: number) {
|
|
36
|
+
const params = {
|
|
37
|
+
ctrlIndx
|
|
38
|
+
};
|
|
39
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>(" /wtui/tctrl/detaildb", undefined, params);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export default OperateRequest;
|
package/src/wtui/form.ts
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { TWtui } from "@ningboyz/types";
|
|
2
|
+
import { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class FormRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 获取表单定义
|
|
12
|
+
* @param zoneMain
|
|
13
|
+
*/
|
|
14
|
+
selectdb(zoneMain: number) {
|
|
15
|
+
const params = {
|
|
16
|
+
wtuizone: zoneMain
|
|
17
|
+
};
|
|
18
|
+
return this.httpRequest.post<TWtui.IWtuiFormResponse[]>("/gapi/wtui/tform/selectdb", undefined, params);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* 根据formName获取表单定义
|
|
23
|
+
* @param formName
|
|
24
|
+
*/
|
|
25
|
+
detaild2(formName: string) {
|
|
26
|
+
const params = {
|
|
27
|
+
formname: formName
|
|
28
|
+
};
|
|
29
|
+
return this.httpRequest.post<TWtui.IWtuiFormResponse[]>("/gapi/wtui/tform/detaild2", undefined, params);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* 添加表单定义
|
|
34
|
+
* @param wtuiZone
|
|
35
|
+
* @param wtuiMain
|
|
36
|
+
* @param data
|
|
37
|
+
*/
|
|
38
|
+
insertdb(wtuiZone: number, wtuiMain: number, data: object) {
|
|
39
|
+
const params = {
|
|
40
|
+
wtuizone: wtuiZone,
|
|
41
|
+
wtuimain: wtuiMain
|
|
42
|
+
};
|
|
43
|
+
return this.httpRequest.post<TWtui.IWtuiFormResponse[]>(`/gapi/wtui/tform/insertdb`, data, params);
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* 删除表单定义
|
|
48
|
+
* @param formData
|
|
49
|
+
*/
|
|
50
|
+
deletedb(formData: FormData) {
|
|
51
|
+
return this.httpRequest.post<TWtui.IWtuiFormResponse[]>("/gapi/wtui/tform/deletedb", formData);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* 修改表单定义
|
|
56
|
+
* @param data
|
|
57
|
+
*/
|
|
58
|
+
updatedb(data: object) {
|
|
59
|
+
return this.httpRequest.post<TWtui.IWtuiFormResponse[]>(`/gapi/wtui/tform/updatedb`, data);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* 获取表单定义
|
|
64
|
+
* @param formMain
|
|
65
|
+
*/
|
|
66
|
+
detaildb(formMain: number) {
|
|
67
|
+
const params = {
|
|
68
|
+
formmain: formMain
|
|
69
|
+
};
|
|
70
|
+
return this.httpRequest.post<TWtui.IWtuiFormResponse[]>(`/gapi/wtui/tform/detaildb`, undefined, params);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export default FormRequest;
|
package/src/wtui/index.ts
CHANGED
|
@@ -1,21 +1,42 @@
|
|
|
1
|
-
import { createRequest } from "../axios";
|
|
1
|
+
import { createRequest, IAxiosConfig } from "../axios";
|
|
2
|
+
import EnvrRequest from "./envr";
|
|
3
|
+
import FormRequest from "./form";
|
|
4
|
+
import ItemRequest from "./item";
|
|
2
5
|
import MainRequest from "./main";
|
|
3
|
-
import
|
|
6
|
+
import NodeRequest from "./node";
|
|
4
7
|
import TodoRequest from "./todo";
|
|
5
|
-
import
|
|
8
|
+
import ViewRequest from "./view";
|
|
9
|
+
import ZoneRequest from "./zone";
|
|
10
|
+
import UserRequest from "./user";
|
|
11
|
+
import CtrlRequest from "./ctrl";
|
|
12
|
+
import MenuRequest from "./menu";
|
|
6
13
|
|
|
7
14
|
class WtuiRequest {
|
|
8
15
|
public main: MainRequest;
|
|
9
16
|
public view: ViewRequest;
|
|
10
17
|
public todo: TodoRequest;
|
|
11
18
|
public envr: EnvrRequest;
|
|
19
|
+
public zone: ZoneRequest;
|
|
20
|
+
public form: FormRequest;
|
|
21
|
+
public item: ItemRequest;
|
|
22
|
+
public node: NodeRequest;
|
|
23
|
+
public user: UserRequest;
|
|
24
|
+
public ctrl: CtrlRequest;
|
|
25
|
+
public menu: MenuRequest;
|
|
12
26
|
|
|
13
|
-
constructor(
|
|
14
|
-
const request = createRequest(
|
|
27
|
+
constructor(config: IAxiosConfig) {
|
|
28
|
+
const request = createRequest(config);
|
|
15
29
|
this.main = new MainRequest(request);
|
|
16
30
|
this.view = new ViewRequest(request);
|
|
17
31
|
this.todo = new TodoRequest(request);
|
|
18
32
|
this.envr = new EnvrRequest(request);
|
|
33
|
+
this.zone = new ZoneRequest(request);
|
|
34
|
+
this.form = new FormRequest(request);
|
|
35
|
+
this.item = new ItemRequest(request);
|
|
36
|
+
this.node = new NodeRequest(request);
|
|
37
|
+
this.user = new UserRequest(request);
|
|
38
|
+
this.ctrl = new CtrlRequest(request);
|
|
39
|
+
this.menu = new MenuRequest(request);
|
|
19
40
|
}
|
|
20
41
|
}
|
|
21
42
|
|
package/src/wtui/item.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { TWtui } from "@ningboyz/types";
|
|
2
|
+
import { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class ItemRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* 获取表单设计
|
|
12
|
+
* @param wtuiMain
|
|
13
|
+
* @param zoneMain
|
|
14
|
+
* @param formMain
|
|
15
|
+
*/
|
|
16
|
+
selectdb(wtuiMain: number, zoneMain: number, formMain: number) {
|
|
17
|
+
const params = {
|
|
18
|
+
wtuimain: wtuiMain,
|
|
19
|
+
wtuizone: zoneMain,
|
|
20
|
+
wtuiform: formMain
|
|
21
|
+
};
|
|
22
|
+
return this.httpRequest.post<TWtui.IWtuiItemResponse[]>("/gapi/wtui/titem/selectdb", undefined, params);
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* 添加表单设计
|
|
27
|
+
* @param wtuiform
|
|
28
|
+
* @param wtuizone
|
|
29
|
+
* @param wtuimain
|
|
30
|
+
* @param data
|
|
31
|
+
*/
|
|
32
|
+
insertdb(wtuiform: number, wtuizone: number, wtuimain: number, data: object) {
|
|
33
|
+
const params = {
|
|
34
|
+
wtuiform,
|
|
35
|
+
wtuizone,
|
|
36
|
+
wtuimain
|
|
37
|
+
};
|
|
38
|
+
return this.httpRequest.post<TWtui.IWtuiItemResponse[]>(`/gapi/wtui/titem/insertdb`, data, params);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* 删除表单设计
|
|
43
|
+
* @param formData
|
|
44
|
+
*/
|
|
45
|
+
deletedb(formData: FormData) {
|
|
46
|
+
return this.httpRequest.post<TWtui.IWtuiItemResponse[]>("/gapi/wtui/titem/deletedb", formData);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* 修改表单设计
|
|
51
|
+
* @param data
|
|
52
|
+
*/
|
|
53
|
+
updatedb(data: object) {
|
|
54
|
+
return this.httpRequest.post<TWtui.IWtuiItemResponse[]>(`/gapi/wtui/titem/updatedb`, data);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* 获取表单设计
|
|
59
|
+
* @param itemmain
|
|
60
|
+
*/
|
|
61
|
+
detaildb(itemmain: number) {
|
|
62
|
+
const params = {
|
|
63
|
+
itemmain
|
|
64
|
+
};
|
|
65
|
+
return this.httpRequest.post<TWtui.IWtuiItemResponse[]>(`/gapi/wtui/titem/detaildb`, undefined, params);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* 排序
|
|
70
|
+
* @param formData
|
|
71
|
+
* @returns
|
|
72
|
+
*/
|
|
73
|
+
queuesby(formData: FormData) {
|
|
74
|
+
return this.httpRequest.post<TWtui.IWtuiItemResponse[]>(`/gapi/wtui/titem/queuesby`, formData, undefined);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export default ItemRequest;
|
package/src/wtui/main.ts
CHANGED
|
@@ -7,7 +7,7 @@ class MainRequest {
|
|
|
7
7
|
this.httpRequest = httpRequest;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
get4view(sysclasc: number, useruuid: string, unitmain: number, usrpartc
|
|
10
|
+
get4view(sysclasc: number, useruuid: string, unitmain: number, usrpartc: number | undefined) {
|
|
11
11
|
const params = {
|
|
12
12
|
sysclasc,
|
|
13
13
|
useruuid,
|
|
@@ -46,7 +46,10 @@ class MainRequest {
|
|
|
46
46
|
* 查看界面定义详情
|
|
47
47
|
* @param params
|
|
48
48
|
*/
|
|
49
|
-
detaildb(
|
|
49
|
+
detaildb(wtuiIndx: number) {
|
|
50
|
+
const params = {
|
|
51
|
+
wtuimain: wtuiIndx
|
|
52
|
+
};
|
|
50
53
|
return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/detaildb", undefined, params);
|
|
51
54
|
}
|
|
52
55
|
|
package/src/wtui/menu.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import type { TWtui } from "@ningboyz/types";
|
|
2
|
+
import type { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class ViewRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
selectdb(wtuimain: number) {
|
|
10
|
+
const params = {
|
|
11
|
+
wtuimain
|
|
12
|
+
};
|
|
13
|
+
return this.httpRequest.post<TWtui.IWtuiRootResponse[]>("/wtui/troot/selectdb", undefined, params);
|
|
14
|
+
}
|
|
15
|
+
deletedb(data: object) {
|
|
16
|
+
return this.httpRequest.post<TWtui.IWtuiRootResponse[]>("/wtui/troot/deletedb", data);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
insertdb(wtuimain: number, data: object) {
|
|
20
|
+
const params = {
|
|
21
|
+
wtuimain
|
|
22
|
+
};
|
|
23
|
+
return this.httpRequest.post<TWtui.IWtuiRootResponse[]>("/wtui/troot/insertdb", data, params);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
updatedb(wtuimain: number, data: object) {
|
|
27
|
+
const params = {
|
|
28
|
+
wtuimain
|
|
29
|
+
};
|
|
30
|
+
return this.httpRequest.post<TWtui.IWtuiRootResponse[]>("/wtui/troot/updatedb", data, params);
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @param params
|
|
35
|
+
*/
|
|
36
|
+
// detaildb(wtuiView: number) {
|
|
37
|
+
// const params = {
|
|
38
|
+
// wtuiview: wtuiView
|
|
39
|
+
// };
|
|
40
|
+
// return this.httpRequest.post<TWtui.IWtuiPageManage[]>("/wtui/troot/detaildb", undefined, params);
|
|
41
|
+
// }
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export default ViewRequest;
|
package/src/wtui/node.ts
ADDED
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { TWtui } from "@ningboyz/types";
|
|
2
|
+
import { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class NodeRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** 工作台查找资产 */
|
|
11
|
+
asmainly(useruuid: string, asmobile: number, asclient: number) {
|
|
12
|
+
const params = {
|
|
13
|
+
useruuid,
|
|
14
|
+
asmobile,
|
|
15
|
+
asclient,
|
|
16
|
+
};
|
|
17
|
+
return this.httpRequest.post<TWtui.IWtuiNodeResponse[]>(
|
|
18
|
+
"/wtui/tnode/asmainly",
|
|
19
|
+
undefined,
|
|
20
|
+
params
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
selectdb(wtuimain: number, wtuiroot: number) {
|
|
25
|
+
const params = {
|
|
26
|
+
wtuimain,
|
|
27
|
+
wtuiroot,
|
|
28
|
+
};
|
|
29
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>(
|
|
30
|
+
"/wtui/tnode/selectdb",
|
|
31
|
+
undefined,
|
|
32
|
+
params
|
|
33
|
+
);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
deletedb(data: object) {
|
|
37
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>(
|
|
38
|
+
"/wtui/tnode/deletedb",
|
|
39
|
+
data
|
|
40
|
+
);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
insertdb(wtuimain: number, data: object) {
|
|
44
|
+
const params = {
|
|
45
|
+
wtuimain,
|
|
46
|
+
};
|
|
47
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>(
|
|
48
|
+
"/wtui/tnode/insertdb",
|
|
49
|
+
data,
|
|
50
|
+
params
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
updatedb(wtuiview: number, data: object) {
|
|
55
|
+
const params = {
|
|
56
|
+
wtuiview,
|
|
57
|
+
};
|
|
58
|
+
return this.httpRequest.post<TWtui.IWtuiOperateResponse[]>(
|
|
59
|
+
"/wtui/tnode/updatedb",
|
|
60
|
+
data,
|
|
61
|
+
params
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export default NodeRequest;
|
package/src/wtui/todo.ts
CHANGED
|
@@ -7,7 +7,10 @@ class TodoRequest {
|
|
|
7
7
|
this.httpRequest = httpRequest;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
selectdb(
|
|
10
|
+
selectdb(wtuimain: number) {
|
|
11
|
+
const params = {
|
|
12
|
+
wtuimain
|
|
13
|
+
};
|
|
11
14
|
return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>("/gapi/wtui/ttodo/selectdb", undefined, params);
|
|
12
15
|
}
|
|
13
16
|
|
package/src/wtui/user.ts
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { TWtui } from "@ningboyz/types";
|
|
2
|
+
import { HttpRequest } from "../axios";
|
|
3
|
+
|
|
4
|
+
class NodeRequest {
|
|
5
|
+
private httpRequest: HttpRequest;
|
|
6
|
+
constructor(httpRequest: HttpRequest) {
|
|
7
|
+
this.httpRequest = httpRequest;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
/** 保存我的样式 */
|
|
11
|
+
usercnfgSavetodb(data: object) {
|
|
12
|
+
return this.httpRequest.post<TWtui.IWtuiUserCnfgResponse[]>("/gapi/wtui/tuser/usercnfg/savetodb", data, undefined);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
/** 获取我的样式 */
|
|
16
|
+
usercnfgGet4cnfg(entityID: string) {
|
|
17
|
+
const params = {
|
|
18
|
+
entityid: entityID
|
|
19
|
+
};
|
|
20
|
+
return this.httpRequest.post<TWtui.IWtuiUserCnfgResponse[]>("/gapi/wtui/tuser/usercnfg/get4cnfg", undefined, params);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** 获取我的样式 */
|
|
24
|
+
usercnfgSelectdb(cnfgUses: string, userOnly: number = -1) {
|
|
25
|
+
const params = {
|
|
26
|
+
cnfguses: cnfgUses,
|
|
27
|
+
useronly: userOnly
|
|
28
|
+
};
|
|
29
|
+
return this.httpRequest.post<TWtui.IWtuiUserCnfgResponse[]>("/gapi/wtui/tuser/usercnfg/selectdb", undefined, params);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export default NodeRequest;
|
package/src/wtui/view.ts
CHANGED
|
@@ -11,8 +11,11 @@ class ViewRequest {
|
|
|
11
11
|
* 根据wtuimain查看页面定义
|
|
12
12
|
* @param params
|
|
13
13
|
*/
|
|
14
|
-
selectdb(
|
|
15
|
-
|
|
14
|
+
selectdb(wtuimain: number) {
|
|
15
|
+
const params = {
|
|
16
|
+
wtuimain
|
|
17
|
+
};
|
|
18
|
+
return this.httpRequest.post<TWtui.IWtuiViewResponse[]>("/wtui/tview/selectdb", undefined, params);
|
|
16
19
|
}
|
|
17
20
|
|
|
18
21
|
/**
|
|
@@ -39,7 +42,10 @@ class ViewRequest {
|
|
|
39
42
|
* 根据wtuiview查看页面定义详情
|
|
40
43
|
* @param params
|
|
41
44
|
*/
|
|
42
|
-
detaildb(
|
|
45
|
+
detaildb(wtuiView: number) {
|
|
46
|
+
const params = {
|
|
47
|
+
wtuiview: wtuiView
|
|
48
|
+
};
|
|
43
49
|
return this.httpRequest.post<TWtui.IWtuiViewResponse[]>("/wtui/tview/detaildb", undefined, params);
|
|
44
50
|
}
|
|
45
51
|
|