@ningboyz/types 1.0.21 → 1.0.23

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 (93) hide show
  1. package/index.ts +8 -0
  2. package/package.json +1 -1
  3. package/src/antv/IAntvCnfgResponse.ts +69 -0
  4. package/src/antv/IAntvMainResponse.ts +67 -0
  5. package/src/antv/IAntvParaResponse.ts +48 -0
  6. package/src/antv/index.ts +5 -0
  7. package/src/card/ICardMainResponse.ts +256 -130
  8. package/src/card/IGblbResponse.ts +64 -5
  9. package/src/card/IP4pzResponse.ts +68 -0
  10. package/src/card/IZcbdResponse.ts +103 -9
  11. package/src/card/IZccfResponse.ts +141 -3
  12. package/src/card/IZcczResponse.ts +134 -0
  13. package/src/card/IZcdbResponse.ts +149 -0
  14. package/src/card/IZclbResponse.ts +138 -0
  15. package/src/card/IZczjPropResponse.ts +94 -0
  16. package/src/card/IZczjResponse.ts +121 -0
  17. package/src/card/index.ts +18 -6
  18. package/src/conf/IConfig.ts +1 -0
  19. package/src/conf/index.ts +1 -1
  20. package/src/const/const_bizCode.ts +3 -0
  21. package/src/const/const_module.ts +72 -0
  22. package/src/const/const_p4pt.ts +8 -0
  23. package/src/const/const_stat.ts +11 -2
  24. package/src/const/const_todo.ts +5 -0
  25. package/src/const/const_type_name.ts +10 -0
  26. package/src/const/const_wldy_item_type.ts +4 -0
  27. package/src/const/const_wtui_item_type.ts +20 -0
  28. package/src/const/index.ts +7 -1
  29. package/src/core/ICoreValidResponse.ts +21 -0
  30. package/src/core/IDeptLiteResponse.ts +0 -1
  31. package/src/core/IDeptResponse.ts +60 -0
  32. package/src/core/IDictResponse.ts +45 -2
  33. package/src/core/IDictResponseDictPara.ts +2 -0
  34. package/src/core/ILaidResponse.ts +34 -1
  35. package/src/core/IPartResponse.ts +29 -0
  36. package/src/core/ISysMenuWithCoreResponse.ts +3 -2
  37. package/src/core/ISysTravelResponse.ts +135 -0
  38. package/src/core/ITypeResponse.ts +27 -0
  39. package/src/core/IUnitResponse.ts +99 -5
  40. package/src/core/IUserLiteResponse.ts +2 -0
  41. package/src/core/IUserResponse.ts +29 -0
  42. package/src/core/index.ts +8 -0
  43. package/src/enums/btnMode.ts +82 -3
  44. package/src/enums/emitterType.ts +5 -0
  45. package/src/enums/index.ts +2 -2
  46. package/src/enums/storeId.ts +4 -1
  47. package/src/enums/usesStat.ts +13 -0
  48. package/src/enums/whatDone.ts +29 -0
  49. package/src/flow/IFlowCnfgResponse.ts +0 -2
  50. package/src/flow/IFlowDataResponse.ts +34 -0
  51. package/src/flow/IFlowDutyResponse.ts +3 -2
  52. package/src/flow/IFlowNodeResponse.ts +15 -1
  53. package/src/flow/IFlowUservoidResponse.ts +35 -0
  54. package/src/flow/index.ts +3 -1
  55. package/src/gzjg/IGzjgGzlmResponse.ts +3 -2
  56. package/src/gzjg/IGzjgGzlmResponseGzlmPara.ts +2 -0
  57. package/src/gzjg/IGzjgMainResponse.ts +5 -2
  58. package/src/gztb/IGztbMainResponse.ts +103 -0
  59. package/src/gztb/index.ts +3 -0
  60. package/src/load/index.ts +2 -2
  61. package/src/micro/appName.ts +2 -1
  62. package/src/noti/INotiMainResponse.ts +278 -0
  63. package/src/noti/index.ts +3 -0
  64. package/src/pzpt/IPzptItemResponse.ts +0 -2
  65. package/src/response/IResponse.ts +31 -0
  66. package/src/store/dateState.ts +48 -0
  67. package/src/store/index.ts +4 -2
  68. package/src/store/menuState.ts +9 -0
  69. package/src/store/userState.ts +3 -0
  70. package/src/tabl/ITablDataResponse.ts +2 -0
  71. package/src/tabl/ITablMainResponse.ts +2 -0
  72. package/src/task/ITaskMainResponse.ts +121 -0
  73. package/src/task/index.ts +3 -0
  74. package/src/wldy/IWldyPageResponse.ts +4 -3
  75. package/src/wldy/index.ts +5 -5
  76. package/src/wtui/ITodoResponse.ts +15 -0
  77. package/src/wtui/IViewCtrlResponse.ts +15 -7
  78. package/src/wtui/IWtuiColWidthResponse.ts +53 -0
  79. package/src/wtui/IWtuiFormParaResponse.ts +17 -0
  80. package/src/wtui/IWtuiFormResponse.ts +95 -0
  81. package/src/wtui/IWtuiItemCalc.ts +36 -0
  82. package/src/wtui/IWtuiItemEffect.ts +43 -0
  83. package/src/wtui/IWtuiItemParaResponse.ts +59 -0
  84. package/src/wtui/IWtuiItemResponse.ts +119 -0
  85. package/src/wtui/IWtuiMainResponse.ts +3 -0
  86. package/src/wtui/IWtuiNodeResponse.ts +71 -0
  87. package/src/wtui/IWtuiTodoResponse.ts +36 -0
  88. package/src/wtui/IWtuiTodoResponseTodoPara.ts +7 -0
  89. package/src/wtui/IWtuiTodoResponseWithPara.ts +32 -0
  90. package/src/wtui/IWtuiUserCnfgResponse.ts +100 -0
  91. package/src/wtui/IWtuiZoneResponse.ts +61 -0
  92. package/src/wtui/index.ts +46 -1
  93. package/src/enums/wldyItemType.ts +0 -5
@@ -0,0 +1,53 @@
1
+ export interface IWtuiColWidthResponse {
2
+ whoBuild: number;
3
+ userIndx: number;
4
+ cnfgIndx: number;
5
+ detailID: number;
6
+ dataStat: number;
7
+ dataHide: number;
8
+ dataOrdr: number;
9
+ dataFrom: number;
10
+ dataType: number;
11
+ dataDate: number;
12
+ dataTime: number;
13
+ createBy: string;
14
+ createAt: number;
15
+ updateBy: string;
16
+ updateAt: number;
17
+ deleteBy: string;
18
+ deleteAt: number;
19
+ queuesBy: number; //#排序标识
20
+ colWidth: number; //#栏目宽度
21
+ colHiden: number; //#是否隐藏
22
+ colField: string; //#栏目字段
23
+ colTitle: string; //#栏目名称
24
+ colAlign: string; //#栏目对齐
25
+ colFixed: string; //#是否锁定
26
+ }
27
+
28
+ export class TWtuiColWidthResponse implements IWtuiColWidthResponse {
29
+ whoBuild: number = 0;
30
+ userIndx: number = 0;
31
+ cnfgIndx: number = 0;
32
+ detailID: number = 0;
33
+ dataStat: number = 0;
34
+ dataHide: number = 0;
35
+ dataOrdr: number = 0;
36
+ dataFrom: number = 0;
37
+ dataType: number = 0;
38
+ dataDate: number = 0;
39
+ dataTime: number = 0;
40
+ createBy: string = "";
41
+ createAt: number = 0;
42
+ updateBy: string = "";
43
+ updateAt: number = 0;
44
+ deleteBy: string = "";
45
+ deleteAt: number = 0;
46
+ queuesBy: number = 0;
47
+ colWidth: number = 0;
48
+ colHiden: number = 0;
49
+ colField: string = "";
50
+ colTitle: string = "";
51
+ colAlign: string = "";
52
+ colFixed: string = "";
53
+ }
@@ -0,0 +1,17 @@
1
+ export interface IWtuiFormParaResponse {
2
+ formVertical: number; //表单布局
3
+ titleColon: number; //标题冒号
4
+ titleBold: number; //标题加粗
5
+ titleWidth: number; //标题宽度
6
+ titleAlign: number; //标题对齐方式
7
+ titleOverFlow: number; //标题溢出隐藏
8
+ }
9
+
10
+ export class TWtuiFormParaResponse implements IWtuiFormParaResponse {
11
+ formVertical: number = 0; //表单布局
12
+ titleColon: number = 1; //标题冒号
13
+ titleBold: number = 0; //标题加粗
14
+ titleWidth: number = 120; //标题宽度
15
+ titleAlign: number = 2; //标题对齐方式
16
+ titleOverFlow: number = 0; //标题溢出隐藏
17
+ }
@@ -0,0 +1,95 @@
1
+ import _ from "lodash";
2
+ import { IWtuiFormParaResponse, TWtuiFormParaResponse } from "./IWtuiFormParaResponse";
3
+ import { IWtuiItemResponse } from "./IWtuiItemResponse";
4
+
5
+ //form
6
+ export interface IWtuiFormResponse {
7
+ whoBuild: number;
8
+ userIndx: number;
9
+ formIndx: number;
10
+ wtuiZone: number;
11
+ wtuiMain: number;
12
+ parentID: number;
13
+ dataStat: number;
14
+ dataHide: number;
15
+ dataOrdr: number;
16
+ dataFrom: number;
17
+ dataDate: number;
18
+ dataTime: number;
19
+ mastName: string;
20
+ mastGUID: string;
21
+ createBy: string;
22
+ createAt: number;
23
+ updateBy: string;
24
+ updateAt: number;
25
+ deleteBy: string;
26
+ deleteAt: number;
27
+ entityID: string;
28
+ /** 表单名称 */
29
+ formName: string;
30
+ /** 字段属性 */
31
+ formAttr: string;
32
+ /** 大小规格 */
33
+ sizeMode: string;
34
+ /** 是否静态 */
35
+ asStatic: number;
36
+ /** 参数约定 */
37
+ formPara: string;
38
+ /** 前端脚本 */
39
+ jsMethod: string;
40
+
41
+ formParaConv: IWtuiFormParaResponse;
42
+
43
+ listItem: IWtuiItemResponse[];
44
+ }
45
+
46
+ export class TWtuiFormResponse implements IWtuiFormResponse {
47
+ whoBuild: number = 0;
48
+ userIndx: number = 0;
49
+ formIndx: number = 0;
50
+ wtuiZone: number = 0;
51
+ wtuiMain: number = 0;
52
+ parentID: number = 0;
53
+ dataStat: number = 0;
54
+ dataHide: number = 0;
55
+ dataOrdr: number = 0;
56
+ dataFrom: number = 0;
57
+ dataDate: number = 0;
58
+ dataTime: number = 0;
59
+ mastName: string = "";
60
+ mastGUID: string = "";
61
+ createBy: string = "";
62
+ createAt: number = 0;
63
+ updateBy: string = "";
64
+ updateAt: number = 0;
65
+ deleteBy: string = "";
66
+ deleteAt: number = 0;
67
+ entityID: string = "";
68
+ formName: string = "";
69
+ formAttr: string = "";
70
+ sizeMode: string = "";
71
+ asStatic: number = 0;
72
+ formPara: string = "";
73
+ /** 前端脚本 */
74
+ jsMethod: string = "";
75
+
76
+ formParaConv: IWtuiFormParaResponse = new TWtuiFormParaResponse();
77
+
78
+ listItem: IWtuiItemResponse[] = [];
79
+
80
+ static parseJson(formPara: string) {
81
+ const formParaObj = new TWtuiFormParaResponse();
82
+ if (_.isEmpty(formPara)) {
83
+ return formParaObj;
84
+ }
85
+ try {
86
+ const obj = JSON.parse(formPara) as TWtuiFormParaResponse;
87
+ const result = _.merge(formParaObj, obj);
88
+ return result;
89
+ } catch (e) {
90
+ const error = e as Error;
91
+ console.error(error.message);
92
+ }
93
+ return formParaObj;
94
+ }
95
+ }
@@ -0,0 +1,36 @@
1
+ export interface ICalcEffect {
2
+ currentItemIndex: number;
3
+ currentItemAttr: string;
4
+ calcData: ICalcEffectData[];
5
+ }
6
+
7
+ export class TCalcEffect implements ICalcEffect {
8
+ currentItemIndex: number = 0;
9
+ currentItemAttr: string = "";
10
+ calcData: ICalcEffectData[] = [];
11
+ }
12
+ export interface ICalcEffectData {
13
+ entityId: string;
14
+ itemIndx: number;
15
+ itemName: string;
16
+ itemAttr: string;
17
+ operator: number;
18
+ operatorName: string;
19
+ effectIndx: number;
20
+ effectName: string;
21
+ effectAttr: string;
22
+ ruleMessage: string;
23
+ }
24
+
25
+ export class TCalcEffectData implements ICalcEffectData {
26
+ entityId: string = "";
27
+ itemIndx: number = 0;
28
+ itemName: string = "";
29
+ itemAttr: string = "";
30
+ operator: number = 0;
31
+ operatorName: string = "";
32
+ effectIndx: number = 0;
33
+ effectName: string = "";
34
+ effectAttr: string = "";
35
+ ruleMessage: string = "";
36
+ }
@@ -0,0 +1,43 @@
1
+ export interface IDictEffectField {
2
+ entityId: string;
3
+ itemIndx: number;
4
+ disabled: number;
5
+ readonly: number;
6
+ required: number;
7
+ clearable: number; //切换时是否清空
8
+ requiredMessage: string;
9
+ }
10
+
11
+ export class TDictEffectField implements IDictEffectField {
12
+ entityId: string = "";
13
+ itemIndx: number = 0;
14
+ disabled: number = 0;
15
+ readonly: number = 0;
16
+ required: number = 0;
17
+ clearable: number = 1;
18
+ requiredMessage: string = "";
19
+ }
20
+
21
+ export interface IDictEffectData {
22
+ entityId: string;
23
+ currentValue: number;
24
+ effectFields: IDictEffectField[];
25
+ }
26
+
27
+ export class TDictEffectData implements IDictEffectData {
28
+ entityId: string = "";
29
+ currentValue: number = 0;
30
+ effectFields: IDictEffectField[] = [];
31
+ }
32
+
33
+ export interface IDictEffect {
34
+ currentItemIndex: number;
35
+ currentItemAttr: string;
36
+ effectData: IDictEffectData[];
37
+ }
38
+
39
+ export class TDictEffect implements IDictEffect {
40
+ currentItemIndex: number = 0;
41
+ currentItemAttr: string = "";
42
+ effectData: IDictEffectData[] = [];
43
+ }
@@ -0,0 +1,59 @@
1
+ import { ICalcEffect, TCalcEffect } from "./IWtuiItemCalc";
2
+ import { IDictEffect, TDictEffect } from "./IWtuiItemEffect";
3
+
4
+ export interface IWtuiItemParaResponse {
5
+ itemTitle: string;
6
+ itemAttrText: string;
7
+ readonly: number;
8
+ showTitle: number;
9
+ required: number; //是否必填
10
+ requiredMessage: string; // 必填校验提示
11
+ validate: number; //字段校验
12
+ validateMessage: string; //校验失败提示
13
+ placeholder: string; //默认提示值
14
+ showSearch: number; //是否显示搜索
15
+ searchPlaceholder: string; //
16
+ decimals: number;
17
+ enabledMin: number;
18
+ enabledMax: number;
19
+ min: number;
20
+ max: number;
21
+ clearable: number;
22
+ controls: number;
23
+ disabled: boolean; //是否禁用
24
+ showWordCount: number;
25
+ minRows: number;
26
+ maxRows: number;
27
+ effect: IDictEffect;
28
+ calc: ICalcEffect;
29
+ fromTypeDefault: number[]; //字典的默认值
30
+ }
31
+
32
+ export class TWtuiItemParaResponse implements IWtuiItemParaResponse {
33
+ itemTitle: string = "";
34
+ itemAttrText: string = "";
35
+ showTitle: number = 1;
36
+ readonly: number = 0;
37
+ required: number = 0; //是否必填
38
+ requiredMessage: string = ""; // 必填校验提示
39
+ validate: number = 0; //字段校验
40
+ validateMessage: string = ""; //校验失败提示
41
+ placeholder: string = ""; //默认提示值
42
+ showSearch: number = 0; //是否显示搜索
43
+ searchPlaceholder: string = ""; //
44
+ decimals: number = 2;
45
+ enabledMin: number = 0;
46
+ enabledMax: number = 0;
47
+ min: number = 0;
48
+ max: number = 0;
49
+ clearable: number = 0;
50
+ controls: number = 0;
51
+
52
+ disabled: boolean = false; //是否禁用
53
+ showWordCount: number = 0;
54
+ minRows: number = 1;
55
+ maxRows: number = 1;
56
+ effect: IDictEffect = new TDictEffect();
57
+ calc: ICalcEffect = new TCalcEffect();
58
+ fromTypeDefault: number[] = []; //字典的默认值
59
+ }
@@ -0,0 +1,119 @@
1
+ import _ from "lodash";
2
+ import { IWtuiItemParaResponse, TWtuiItemParaResponse } from "./IWtuiItemParaResponse";
3
+ import { IDictResponse } from "../core";
4
+
5
+ //form.item
6
+ export interface IWtuiItemResponse {
7
+ whoBuild: number;
8
+ userIndx: number;
9
+ itemIndx: number;
10
+ wtuiForm: number;
11
+ wtuiZone: number;
12
+ wtuiMain: number;
13
+ parentID: number;
14
+ dataStat: number;
15
+ dataHide: number;
16
+ dataOrdr: number;
17
+ dataFrom: number;
18
+ dataDate: number;
19
+ dataTime: number;
20
+ mastName: string;
21
+ mastGUID: string;
22
+ createBy: string;
23
+ createAt: number;
24
+ updateBy: string;
25
+ updateAt: number;
26
+ deleteBy: string;
27
+ deleteAt: number;
28
+ entityID: string;
29
+ /** 字段名称 */
30
+ itemName: string;
31
+ /** 字段属性 */
32
+ itemAttr: string;
33
+ /** 备注说明 */
34
+ itemMemo: string;
35
+ /** 字段类型,取值参考const_gzlm */
36
+ itemType: number;
37
+ /** 字典类型 */
38
+ fromType: number;
39
+ /** 表单类型 */
40
+ formType: string;
41
+ /** 显示格式 */
42
+ inFormat: string;
43
+ /** 是否权限范围 */
44
+ viewOnly: number;
45
+ /** 是否仅限本人 */
46
+ userOnly: number;
47
+ /** 栅格占位 */
48
+ spanSize: number;
49
+ /** 大小规格 */
50
+ sizeMode: string;
51
+ /** 前端脚本 */
52
+ jsMethod: string;
53
+ /** 参数约定 */
54
+ itemPara: string;
55
+ itemParaConv: IWtuiItemParaResponse;
56
+
57
+ /**虚拟字段 */
58
+ listDict: IDictResponse[];
59
+ // 前端虚拟字段,变动的时候,动态表单的这一项是否需要添加自定义class以改变颜色
60
+ needClass: number;
61
+ }
62
+
63
+ export class TWtuiItemResponse implements IWtuiItemResponse {
64
+ whoBuild: number = 0;
65
+ userIndx: number = 0;
66
+ itemIndx: number = 0;
67
+ wtuiForm: number = 0;
68
+ wtuiZone: number = 0;
69
+ wtuiMain: number = 0;
70
+ parentID: number = 0;
71
+ dataStat: number = 0;
72
+ dataHide: number = 0;
73
+ dataOrdr: number = 0;
74
+ dataFrom: number = 0;
75
+ dataDate: number = 0;
76
+ dataTime: number = 0;
77
+ mastName: string = "";
78
+ mastGUID: string = "";
79
+ createBy: string = "";
80
+ createAt: number = 0;
81
+ updateBy: string = "";
82
+ updateAt: number = 0;
83
+ deleteBy: string = "";
84
+ deleteAt: number = 0;
85
+ entityID: string = "";
86
+ itemName: string = "";
87
+ itemAttr: string = "";
88
+ itemMemo: string = "";
89
+ itemType: number = 0;
90
+ fromType: number = 0;
91
+ formType: string = "";
92
+ inFormat: string = "";
93
+ viewOnly: number = 0;
94
+ userOnly: number = 0;
95
+ spanSize: number = 0;
96
+ sizeMode: string = "";
97
+ jsMethod: string = "";
98
+ itemPara: string = "";
99
+ itemParaConv: IWtuiItemParaResponse = new TWtuiItemParaResponse();
100
+
101
+ listDict: IDictResponse[] = [];
102
+ needClass: number = 0;
103
+
104
+ static parseJson(itemPara: string) {
105
+ const itemParaObj = new TWtuiItemParaResponse();
106
+ if (_.isEmpty(itemPara)) {
107
+ return itemParaObj;
108
+ }
109
+ try {
110
+ const obj = JSON.parse(itemPara) as TWtuiItemParaResponse;
111
+ const result = _.merge(itemParaObj, obj);
112
+ return result;
113
+ } catch (e) {
114
+ const error = e as Error;
115
+ console.error(error.message);
116
+ }
117
+ return itemParaObj;
118
+ }
119
+ }
@@ -1,6 +1,7 @@
1
1
  import type { IPartResponse } from "../core/IPartResponse";
2
2
  import type { IUnitResponse } from "../core/IUnitResponse";
3
3
  import type { IWtuiViewResponse } from "./IWtuiViewResponse";
4
+ import { IWtuiZoneResponse } from "./IWtuiZoneResponse";
4
5
 
5
6
  export interface IWtuiMainResponse {
6
7
  whoBuild: number;
@@ -53,6 +54,7 @@ export interface IWtuiMainResponse {
53
54
 
54
55
  listView: IWtuiViewResponse[];
55
56
  listPart: IPartResponse[];
57
+ listZone: IWtuiZoneResponse[];
56
58
  unitType: IUnitResponse[]; // 单位类型树状图
57
59
  }
58
60
 
@@ -106,5 +108,6 @@ export class TWtuiMainResponse implements IWtuiMainResponse {
106
108
 
107
109
  listPart: IPartResponse[] = [];
108
110
  unitType: IUnitResponse[] = [];
111
+ listZone: IWtuiZoneResponse[] = [];
109
112
  listView: IWtuiViewResponse[] = [];
110
113
  }
@@ -0,0 +1,71 @@
1
+ export interface IWtuiNodeResponse {
2
+ whoBuild: number;
3
+ userIndx: number;
4
+ nodeIndx: number;
5
+ wtuiRoot: number;
6
+ wtuiMain: number;
7
+ dataStat: number;
8
+ dataHide: number;
9
+ dataOrdr: number;
10
+ dataFrom: number;
11
+ dataDate: number;
12
+ dataTime: number;
13
+ mastName: string;
14
+ mastGUID: string;
15
+ createBy: string;
16
+ createAt: number;
17
+ updateBy: string;
18
+ updateAt: number;
19
+ deleteBy: string;
20
+ deleteAt: number;
21
+ queuesBy: number;
22
+ entityID: string;
23
+ funcCall: number;
24
+ onBase64: number;
25
+ inBase64: string;
26
+ nodeName: string;
27
+ nodePara: string; //#节点参数
28
+ withPara: string; //#参数约定
29
+ icon4URL: string;
30
+ view4URL: string;
31
+ iconName: string;
32
+ asMainly: number;
33
+ asMobile: number;
34
+ asClient: number;
35
+ }
36
+
37
+ export class TWtuiNodeResponse implements IWtuiNodeResponse {
38
+ whoBuild: number = 0;
39
+ userIndx: number = 0;
40
+ nodeIndx: number = 0;
41
+ wtuiRoot: number = 0;
42
+ wtuiMain: number = 0;
43
+ dataStat: number = 0;
44
+ dataHide: number = 0;
45
+ dataOrdr: number = 0;
46
+ dataFrom: number = 0;
47
+ dataDate: number = 0;
48
+ dataTime: number = 0;
49
+ mastName: string = "";
50
+ mastGUID: string = "";
51
+ createBy: string = "";
52
+ createAt: number = 0;
53
+ updateBy: string = "";
54
+ updateAt: number = 0;
55
+ deleteBy: string = "";
56
+ deleteAt: number = 0;
57
+ queuesBy: number = 0;
58
+ entityID: string = "";
59
+ funcCall: number = 0;
60
+ onBase64: number = 0;
61
+ inBase64: string = "";
62
+ nodeName: string = "";
63
+ nodePara: string = "";
64
+ withPara: string = "";
65
+ icon4URL: string = "";
66
+ view4URL: string = "";
67
+ iconName: string = "";
68
+ asMainly: number = 0;
69
+ asMobile: number = 0;
70
+ asClient: number = 0;
71
+ }
@@ -1,3 +1,7 @@
1
+ import _ from "lodash";
2
+ import { IWtuiTodoResponseTodoPara, TWtuiTodoResponseTodoPara } from "./IWtuiTodoResponseTodoPara";
3
+ import { IWtuiTodoResponseWithPara, TWtuiTodoResponseWithPara } from "./IWtuiTodoResponseWithPara";
4
+
1
5
  export interface IWtuiTodoResponse {
2
6
  whoBuild: number;
3
7
  userIndx: number;
@@ -30,6 +34,8 @@ export interface IWtuiTodoResponse {
30
34
  todoPara: string;
31
35
  withPara: string;
32
36
  notifiEd: string;
37
+ withParaConv: IWtuiTodoResponseWithPara[];
38
+ todoParaConv: IWtuiTodoResponseTodoPara;
33
39
  }
34
40
 
35
41
  export class TWtuiTodoResponse implements IWtuiTodoResponse {
@@ -64,4 +70,34 @@ export class TWtuiTodoResponse implements IWtuiTodoResponse {
64
70
  todoPara: string = "";
65
71
  withPara: string = "";
66
72
  notifiEd: string = "";
73
+ withParaConv: IWtuiTodoResponseWithPara[] = [];
74
+ todoParaConv: IWtuiTodoResponseTodoPara = new TWtuiTodoResponseTodoPara();
75
+
76
+ static parseJson(withPara: string) {
77
+ const result: IWtuiTodoResponseWithPara[] = [];
78
+ if (_.isEmpty(withPara)) {
79
+ return result;
80
+ }
81
+ try {
82
+ const temp = JSON.parse(withPara) as TWtuiTodoResponseWithPara[];
83
+ return _.merge(result, temp);
84
+ } catch (e: any) {
85
+ console.error(e.message);
86
+ }
87
+ return result;
88
+ }
89
+
90
+ static parseTodoPara(todoPara: string) {
91
+ const result: IWtuiTodoResponseTodoPara = new TWtuiTodoResponseTodoPara();
92
+ if (_.isEmpty(todoPara)) {
93
+ return result;
94
+ }
95
+ try {
96
+ const temp = JSON.parse(todoPara) as TWtuiTodoResponseTodoPara;
97
+ return _.merge(result, temp);
98
+ } catch (e: any) {
99
+ console.error(e.message);
100
+ }
101
+ return result;
102
+ }
67
103
  }
@@ -0,0 +1,7 @@
1
+ export interface IWtuiTodoResponseTodoPara {
2
+ menuUUID: string[];
3
+ }
4
+
5
+ export class TWtuiTodoResponseTodoPara implements IWtuiTodoResponseTodoPara {
6
+ menuUUID: string[] = [];
7
+ }
@@ -0,0 +1,32 @@
1
+ export interface IWtuiTodoResponseWithPara {
2
+ todoName: string;
3
+ renameTo: string;
4
+ tab: string;
5
+ searchType: string;
6
+ toPath: string;
7
+ viewPara: string;
8
+ title: string;
9
+ metaData: string;
10
+ menuUUID: string;
11
+ tabItems: any[];
12
+ color: any;
13
+ color2: any;
14
+ /** 工作台跳转过来的进行筛选的单据状态 */
15
+ flowStat: number[];
16
+ }
17
+
18
+ export class TWtuiTodoResponseWithPara implements IWtuiTodoResponseWithPara {
19
+ todoName: string = "";
20
+ renameTo: string = "";
21
+ tab: string = "";
22
+ searchType: string = "";
23
+ toPath: string = "";
24
+ viewPara: string = "";
25
+ title: string = "";
26
+ metaData: string = "";
27
+ menuUUID: string = "";
28
+ tabItems: any[] = [];
29
+ color: any;
30
+ color2: any;
31
+ flowStat: number[] = [];
32
+ }