@ningboyz/apis 1.0.16 → 1.0.18

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.
Files changed (107) hide show
  1. package/index.ts +20 -21
  2. package/package.json +1 -1
  3. package/{src → packages}/antv/cnfg.ts +13 -18
  4. package/{src → packages}/antv/index.ts +1 -0
  5. package/{src → packages}/antv/main.ts +14 -22
  6. package/{src → packages}/antv/para.ts +11 -17
  7. package/packages/antv/type.ts +56 -0
  8. package/{src → packages}/axios.ts +25 -25
  9. package/{src → packages}/card/gblb.ts +38 -43
  10. package/{src → packages}/card/index.ts +1 -0
  11. package/packages/card/main.ts +210 -0
  12. package/packages/card/p4pz.ts +93 -0
  13. package/packages/card/type.ts +570 -0
  14. package/{src → packages}/card/zcbd.ts +33 -46
  15. package/{src → packages}/card/zccf.ts +34 -50
  16. package/{src → packages}/card/zccz.ts +39 -46
  17. package/packages/card/zcdb.ts +113 -0
  18. package/{src → packages}/card/zclb.ts +28 -29
  19. package/{src → packages}/card/zczj.ts +5 -10
  20. package/{src → packages}/card/zczjProp.ts +5 -12
  21. package/{src → packages}/cnfg/main.ts +9 -6
  22. package/{src → packages}/core/dept.ts +35 -52
  23. package/packages/core/dict.ts +61 -0
  24. package/{src → packages}/core/index.ts +2 -1
  25. package/packages/core/laid.ts +75 -0
  26. package/{src → packages}/core/part.ts +18 -22
  27. package/{src → packages}/core/path.ts +14 -24
  28. package/{src → packages}/core/sysbilltype.ts +5 -10
  29. package/{src → packages}/core/sysclas.ts +3 -7
  30. package/{src → packages}/core/sysmenu.ts +39 -26
  31. package/{src/core/tsystravel.ts → packages/core/systravel.ts} +13 -20
  32. package/{src → packages}/core/type.ts +13 -15
  33. package/packages/core/types.ts +451 -0
  34. package/{src → packages}/core/unit.ts +20 -34
  35. package/packages/core/user.ts +294 -0
  36. package/{src → packages}/expd/index.ts +1 -0
  37. package/{src → packages}/expd/main.ts +3 -5
  38. package/packages/expd/type.ts +8 -0
  39. package/packages/flow/type.ts +0 -0
  40. package/{src → packages}/gzjg/gzlm.ts +10 -2
  41. package/{src → packages}/gzjg/main.ts +8 -0
  42. package/packages/wtui/ctrl.ts +45 -0
  43. package/{src → packages}/wtui/form.ts +20 -33
  44. package/{src → packages}/wtui/item.ts +18 -32
  45. package/packages/wtui/main.ts +69 -0
  46. package/packages/wtui/menu.ts +37 -0
  47. package/packages/wtui/node.ts +37 -0
  48. package/packages/wtui/todo.ts +60 -0
  49. package/packages/wtui/type.ts +327 -0
  50. package/packages/wtui/user.ts +39 -0
  51. package/{src → packages}/wtui/view.ts +25 -28
  52. package/{src → packages}/wtui/zone.ts +11 -19
  53. package/src/card/main.ts +0 -234
  54. package/src/card/p4pz.ts +0 -145
  55. package/src/card/zcdb.ts +0 -141
  56. package/src/core/dict.ts +0 -77
  57. package/src/core/laid.ts +0 -96
  58. package/src/core/user.ts +0 -311
  59. package/src/wtui/ctrl.ts +0 -43
  60. package/src/wtui/main.ts +0 -65
  61. package/src/wtui/menu.ts +0 -44
  62. package/src/wtui/node.ts +0 -66
  63. package/src/wtui/todo.ts +0 -50
  64. package/src/wtui/user.ts +0 -33
  65. /package/{src → packages}/card/form.ts +0 -0
  66. /package/{src → packages}/cnfg/index.ts +0 -0
  67. /package/{src → packages}/core/sysenvr.ts +0 -0
  68. /package/{src → packages}/core/syskjnd.ts +0 -0
  69. /package/{src → packages}/flow/duty.ts +0 -0
  70. /package/{src → packages}/flow/flow.ts +0 -0
  71. /package/{src → packages}/flow/index.ts +0 -0
  72. /package/{src → packages}/flow/main.ts +0 -0
  73. /package/{src → packages}/flow/node.ts +0 -0
  74. /package/{src → packages}/gams/cnfg.ts +0 -0
  75. /package/{src → packages}/gams/index.ts +0 -0
  76. /package/{src → packages}/grow/grow.ts +0 -0
  77. /package/{src → packages}/grow/index.ts +0 -0
  78. /package/{src → packages}/gzjg/index.ts +0 -0
  79. /package/{src → packages}/gzjg/types.ts +0 -0
  80. /package/{src → packages}/gztb/index.ts +0 -0
  81. /package/{src → packages}/gztb/main.ts +0 -0
  82. /package/{src → packages}/load/index.ts +0 -0
  83. /package/{src → packages}/load/yqdw.ts +0 -0
  84. /package/{src → packages}/load/yqkm.ts +0 -0
  85. /package/{src → packages}/noti/index.ts +0 -0
  86. /package/{src → packages}/noti/main.ts +0 -0
  87. /package/{src → packages}/ocri/index.ts +0 -0
  88. /package/{src → packages}/ocri/path.ts +0 -0
  89. /package/{src → packages}/pzpt/cnfg.ts +0 -0
  90. /package/{src → packages}/pzpt/index.ts +0 -0
  91. /package/{src → packages}/pzpt/item.ts +0 -0
  92. /package/{src → packages}/pzpt/k0km.ts +0 -0
  93. /package/{src → packages}/pzpt/k8km.ts +0 -0
  94. /package/{src → packages}/pzpt/kbkm.ts +0 -0
  95. /package/{src → packages}/pzpt/type.ts +0 -0
  96. /package/{src → packages}/pzpt/yqkb.ts +0 -0
  97. /package/{src → packages}/pzpt/yqkm.ts +0 -0
  98. /package/{src → packages}/tabl/index.ts +0 -0
  99. /package/{src → packages}/tabl/main.ts +0 -0
  100. /package/{src → packages}/task/index.ts +0 -0
  101. /package/{src → packages}/task/main.ts +0 -0
  102. /package/{src → packages}/wldy/data.ts +0 -0
  103. /package/{src → packages}/wldy/index.ts +0 -0
  104. /package/{src → packages}/wldy/item.ts +0 -0
  105. /package/{src → packages}/wldy/page.ts +0 -0
  106. /package/{src → packages}/wtui/envr.ts +0 -0
  107. /package/{src → packages}/wtui/index.ts +0 -0
package/src/core/user.ts DELETED
@@ -1,311 +0,0 @@
1
- import { TCore, TWlzf, TWtui } from "@ningboyz/types";
2
- import type { HttpRequest } from "../axios";
3
- import _ from "lodash";
4
-
5
- class UserRequest {
6
- private httpRequest: HttpRequest;
7
- constructor(httpRequest: HttpRequest) {
8
- this.httpRequest = httpRequest;
9
- }
10
-
11
- /**
12
- * 获取用户管理详情
13
- * @param data
14
- */
15
- detaildb(data: object) {
16
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/detaildb", data, undefined);
17
- }
18
-
19
- /**
20
- * 新增用户
21
- * @param data
22
- */
23
- insertdb(data: object) {
24
- return this.httpRequest.post<TCore.IUserResponse[]>(`/core/tuser/insertdb`, data);
25
- }
26
-
27
- /**
28
- * 更新用户
29
- * @param data
30
- */
31
- updatedb(data: object) {
32
- return this.httpRequest.post<TCore.IUserResponse[]>(`/core/tuser/updatedb`, data);
33
- }
34
-
35
- /**
36
- * 删除用户
37
- * @param data
38
- */
39
- deletedb(data: object) {
40
- return this.httpRequest.post<TCore.IUserResponse[]>(`/core/tuser/deletedb`, data);
41
- }
42
-
43
- selectdbCamelcase(syspartc: number, entityid?: string, unitmain?: number) {
44
- const params = {
45
- syspartc,
46
- entityid,
47
- unitmain
48
- };
49
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/selectdb/camelcase", undefined, params);
50
- }
51
-
52
- /**
53
- * 根据用户id查用户角色
54
- * @param usermain
55
- */
56
- detaildbCamelcase(usermain: number) {
57
- const params = {
58
- usermain
59
- };
60
- return this.httpRequest.post<TCore.IUserResponse[]>("core/tmast/detaildb/camelcase", undefined, params);
61
- }
62
-
63
- /**
64
- * 获取用户角色
65
- * @param unitmain
66
- */
67
- get4part(unitmain: number) {
68
- const params = {
69
- unitmain
70
- };
71
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/get4part", params);
72
- }
73
-
74
- /**
75
- * 添加用户角色
76
- * @param data
77
- */
78
- usrpartcSet4unit(data: object) {
79
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4unit", data);
80
- }
81
-
82
- /**
83
- * 删除用户角色
84
- * @param data
85
- */
86
- usrpartcDel4unit(data: object) {
87
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/del4unit", data);
88
- }
89
-
90
- /**
91
- * 添加部门权限
92
- * @param data
93
- */
94
- usrpartcSet4dept(data: object) {
95
- return this.httpRequest.post<TCore.IPartResponse[]>("/core/tuser/usrpartc/set4dept", data);
96
- }
97
-
98
- /**
99
- * 支付环境
100
- * @param unitmain
101
- * @param sourcedw
102
- */
103
- get4wlzf(unitmain: number, sourcedw: string) {
104
- const params = {
105
- unitmain,
106
- sourcedw
107
- };
108
- return this.httpRequest.post<TWlzf.IWlzfEnvrResponse[]>("/core/tuser/get4wlzf", params);
109
- }
110
-
111
- /**
112
- * 部门权限
113
- * @param unitmain
114
- * @param usesbbhz
115
- */
116
- get4dept(unitmain: number, usesbbhz: number) {
117
- const params = {
118
- unitmain,
119
- usesbbhz
120
- };
121
- return this.httpRequest.post<TCore.IDeptResponse[]>("/core/tuser/get4dept", params);
122
- }
123
-
124
- /**
125
- * 仓库权限
126
- * @param unitmain
127
- */
128
- get4laid(unitmain: number) {
129
- const params = {
130
- unitmain
131
- };
132
- return this.httpRequest.post<TCore.ILaidResponse[]>("/core/tuser/get4laid", undefined, params);
133
- }
134
-
135
- /**
136
- * 获取用户权限范围内的单位
137
- */
138
- get4unit() {
139
- return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tuser/get4unit");
140
- }
141
-
142
- get4belong() {
143
- return this.httpRequest.post<TCore.IUnitResponse[]>("/core/tuser/get4belong");
144
- }
145
-
146
- /**
147
- * 登录
148
- * @param enrollId
149
- * @param userPswd
150
- */
151
- verifydbCamelcase(enrollId: string, userPswd: string) {
152
- const data = {
153
- ENROLLID: enrollId,
154
- USERPSWD: userPswd
155
- };
156
- const formData = new FormData();
157
- formData.append("params", JSON.stringify(data));
158
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/verifydb/camelcase", formData, undefined);
159
- }
160
-
161
- /**
162
- * 发送短信验证码
163
- * @param whobuild
164
- * @param userindx
165
- * @param sysname
166
- * @param data
167
- */
168
- sendMessage(whobuild: number, userindx: number, sysname: string, data: object) {
169
- const params = {
170
- whobuild,
171
- userindx,
172
- sysname
173
- };
174
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/sendmessage", data, params);
175
- }
176
-
177
- unlockit(data: object) {
178
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/unlockit", data);
179
- }
180
-
181
- /**
182
- * 校验验证码
183
- * @param whobuild
184
- * @param userindx
185
- * @param code
186
- * @param data
187
- */
188
- checkcodeservlet(whobuild: number, userindx: number, code: string, data: object) {
189
- const params = {
190
- whobuild,
191
- userindx,
192
- verification: code
193
- };
194
- return this.httpRequest.post<string>("/core/tuser/checkcodeservlet", data, params);
195
- }
196
-
197
- /**
198
- * 修改密码
199
- * @param params
200
- * @param header
201
- */
202
- updatemm(params: object, header: object) {
203
- return this.httpRequest.post<string>("/core/tuser/updatemm", undefined, params, header);
204
- }
205
-
206
- /**
207
- * 更新用户信息(未登录修改手机号)
208
- * @param whobuild
209
- * @param userindx
210
- * @param data
211
- */
212
- mobileidUpdatedb(whobuild: number, userindx: number, data: object) {
213
- const params = {
214
- whobuild,
215
- userindx
216
- };
217
- return this.httpRequest.post<string>("/core/tuser/mobileid/updatedb", data, params);
218
- }
219
-
220
- /**
221
- * 设置年度
222
- * @param sourcend
223
- * @param data
224
- */
225
- sourcendSet4kjnd(sourcend: number, data: object) {
226
- const params = {
227
- sourcend
228
- };
229
- return this.httpRequest.post<string>("/core/tuser/sourcend/set4kjnd", data, params);
230
- }
231
-
232
- /**
233
- * 获取权限
234
- */
235
- get4view() {
236
- return this.httpRequest.post<TWtui.IViewCtrlResponse[]>("/core/tuser/get4view");
237
- }
238
-
239
- /**
240
- * 扫码登录
241
- */
242
- scanlogin(code: string) {
243
- return this.httpRequest.post<TCore.IUserResponse[]>(`http://www.yzcloud.net.cn:19000/dapi/user/get_userinfo_by_qrcode?appid=c9d1eee0c33ade8e0c9b7f12844a7b54&authcode=${code}`);
244
- }
245
-
246
- /**
247
- * 扫码三方登录
248
- * @param verifyID
249
- * @param userName
250
- * @returns
251
- */
252
- loginThird(verifyID: string, userName: string) {
253
- const thridObj = {
254
- verifyID,
255
- userName
256
- };
257
- const formData = new FormData();
258
- formData.append("params", JSON.stringify(thridObj));
259
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/verifydb/dingding?thirdapp=DD", formData);
260
- }
261
-
262
- loginToken(usrtoken: string) {
263
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/selectdb/tokenusr", undefined, undefined, { usrtoken });
264
- }
265
-
266
- /**
267
- * 用户管理关联资产登记
268
- * @param data
269
- * @returns
270
- */
271
- judgedb(data: object) {
272
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/judgedb", data, undefined);
273
- }
274
-
275
- /**
276
- * 获取服务器时间
277
- * @returns
278
- */
279
- async getServerTime() {
280
- const result = await this.httpRequest.post<{ DATADATE: number; DATATIME: number }>("/core/ping", undefined, undefined);
281
- if (!_.isNil(result) && result.ONSTATUS) {
282
- return { DATADATE: result.DATADATE, DATATIME: result.DATATIME };
283
- }
284
- }
285
-
286
- /** 获取验证码 */
287
- captcha1(visitorId: number) {
288
- const params = {
289
- fp: visitorId
290
- };
291
- return this.httpRequest.post<string>("/core/tuser/captcha1", undefined, params);
292
- }
293
-
294
- /** 验证码输入判断 */
295
- //传当前浏览器的fp(visitorId),captcha:文本框输入的数值
296
- captcha2(data: object) {
297
- return this.httpRequest.post<string>("/core/tuser/captcha2", data);
298
- }
299
-
300
- /**
301
- * 卡片生成的时候,批量补全
302
- * 批量创建用户
303
- * @param unitmain
304
- * @param data
305
- */
306
- uploadd4(data: object) {
307
- return this.httpRequest.post<TCore.IUserResponse[]>("/core/tuser/uploadd2", data, undefined);
308
- }
309
- }
310
-
311
- export default UserRequest;
package/src/wtui/ctrl.ts DELETED
@@ -1,43 +0,0 @@
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/main.ts DELETED
@@ -1,65 +0,0 @@
1
- import type { TWtui } 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
- get4view(sysclasc: number, useruuid: string, unitmain: number, usrpartc: number | undefined) {
11
- const params = {
12
- sysclasc,
13
- useruuid,
14
- unitmain,
15
- usrpartc
16
- };
17
- return this.httpRequest.post<TWtui.IViewCtrlResponse[]>("/wtui/tmain/get4view", undefined, params);
18
- }
19
-
20
- selectdb(sysclasc: number, useruuid: string, unitmain: number) {
21
- const params = {
22
- sysclasc,
23
- useruuid,
24
- unitmain
25
- };
26
- return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/selectdb", undefined, params);
27
- }
28
-
29
- /**
30
- * 添加界面定义
31
- * @param data
32
- */
33
- insertdb(data: object) {
34
- return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/insertdb", data);
35
- }
36
-
37
- /**
38
- * 修改界面定义
39
- * @param data
40
- */
41
- updatedb(data: object) {
42
- return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/updatedb", data);
43
- }
44
-
45
- /**
46
- * 查看界面定义详情
47
- * @param params
48
- */
49
- detaildb(wtuiIndx: number) {
50
- const params = {
51
- wtuimain: wtuiIndx
52
- };
53
- return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/detaildb", undefined, params);
54
- }
55
-
56
- /**
57
- * 删除界面定义
58
- * @param data
59
- */
60
- deletedb(data: object) {
61
- return this.httpRequest.post<TWtui.IWtuiMainResponse[]>("/wtui/tmain/deletedb", data);
62
- }
63
- }
64
-
65
- export default MainRequest;
package/src/wtui/menu.ts DELETED
@@ -1,44 +0,0 @@
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 DELETED
@@ -1,66 +0,0 @@
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 DELETED
@@ -1,50 +0,0 @@
1
- import type { TWtui } from "@ningboyz/types";
2
- import type { HttpRequest } from "../axios";
3
-
4
- class TodoRequest {
5
- private httpRequest: HttpRequest;
6
- constructor(httpRequest: HttpRequest) {
7
- this.httpRequest = httpRequest;
8
- }
9
-
10
- selectdb(wtuimain: number) {
11
- const params = {
12
- wtuimain
13
- };
14
- return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>("/gapi/wtui/ttodo/selectdb", undefined, params);
15
- }
16
-
17
- /**
18
- * 添加待办管理表单数据
19
- * @param wtuimain
20
- * @param data
21
- */
22
- insertdb(wtuimain: number, data: object) {
23
- const params = {
24
- wtuimain
25
- };
26
- return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/insertdb`, data, params);
27
- }
28
-
29
- /**
30
- * 删除待办管理表单数据
31
- * @param formData
32
- */
33
- deletedb(formData: FormData) {
34
- return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>("/gapi/wtui/ttodo/deletedb", formData);
35
- }
36
-
37
- /**
38
- * 修改待办管理
39
- * @param wtuimain
40
- * @param data
41
- */
42
- updatedb(wtuimain: number, data: object) {
43
- const params = {
44
- wtuimain
45
- };
46
- return this.httpRequest.post<TWtui.IWtuiTodoResponse[]>(`/gapi/wtui/ttodo/updatedb`, data, params);
47
- }
48
- }
49
-
50
- export default TodoRequest;
package/src/wtui/user.ts DELETED
@@ -1,33 +0,0 @@
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;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes