aldehyde 0.2.516 → 0.2.518

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 (186) hide show
  1. package/lib/controls/auto-complete/index.d.ts.map +1 -1
  2. package/lib/controls/auto-complete/index.js +2 -4
  3. package/lib/controls/auto-complete/index.js.map +1 -1
  4. package/lib/controls/direct-file-view/index.d.ts.map +1 -1
  5. package/lib/controls/direct-file-view/index.js +4 -1
  6. package/lib/controls/direct-file-view/index.js.map +1 -1
  7. package/lib/controls/entry-control.d.ts.map +1 -1
  8. package/lib/controls/entry-control.js +4 -0
  9. package/lib/controls/entry-control.js.map +1 -1
  10. package/lib/controls/icon-selector/icon/phonenode-menu-icon/iconfont.css +99 -99
  11. package/lib/controls/view-control.d.ts.map +1 -1
  12. package/lib/controls/view-control.js +1 -0
  13. package/lib/controls/view-control.js.map +1 -1
  14. package/lib/detail/view/act-dtmpl-view.d.ts +2 -0
  15. package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
  16. package/lib/detail/view/act-dtmpl-view.js +3 -2
  17. package/lib/detail/view/act-dtmpl-view.js.map +1 -1
  18. package/lib/detail/view/dtmpl-view.d.ts +11 -0
  19. package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
  20. package/lib/detail/view/dtmpl-view.js +20 -17
  21. package/lib/detail/view/dtmpl-view.js.map +1 -1
  22. package/lib/detail/view/field-view-group.d.ts +9 -0
  23. package/lib/detail/view/field-view-group.d.ts.map +1 -1
  24. package/lib/detail/view/field-view-group.js +17 -15
  25. package/lib/detail/view/field-view-group.js.map +1 -1
  26. package/lib/detail/view/index.less +6 -0
  27. package/lib/draw-canvas-edit/components/asset-bar/index.less +35 -35
  28. package/lib/draw-canvas-edit/components/main-header/index.less +23 -23
  29. package/lib/form/dtmpl-form.d.ts +12 -1
  30. package/lib/form/dtmpl-form.d.ts.map +1 -1
  31. package/lib/form/dtmpl-form.js +35 -27
  32. package/lib/form/dtmpl-form.js.map +1 -1
  33. package/lib/form/form-Item-group.d.ts +9 -0
  34. package/lib/form/form-Item-group.d.ts.map +1 -1
  35. package/lib/form/form-Item-group.js +13 -3
  36. package/lib/form/form-Item-group.js.map +1 -1
  37. package/lib/list/card-list/card-list-item.d.ts.map +1 -1
  38. package/lib/list/card-list/card-list-item.js +28 -6
  39. package/lib/list/card-list/card-list-item.js.map +1 -1
  40. package/lib/lowcode-components/base-table/index.less +61 -61
  41. package/lib/lowcode-components/data-number/index.d.ts +2 -0
  42. package/lib/lowcode-components/data-number/index.d.ts.map +1 -1
  43. package/lib/lowcode-components/data-number/index.js +21 -1
  44. package/lib/lowcode-components/data-number/index.js.map +1 -1
  45. package/lib/lowcode-components/data-number/index.less +10 -10
  46. package/lib/lowcode-components/date-time/index.less +4 -4
  47. package/lib/lowcode-components/four-angle-glow-border/index.less +49 -49
  48. package/lib/lowcode-components/line-chart/index.js +7 -7
  49. package/lib/lowcode-components/line-chart/index.js.map +1 -1
  50. package/lib/lowcode-components/lowcode-view/component/font/FontGlobal.css +26 -26
  51. package/lib/lowcode-components/lowcode-view/component/screen-fit/index.less +13 -13
  52. package/lib/lowcode-components/text-scroller/index.less +28 -28
  53. package/lib/module/dtmpl-edit-page.d.ts +1 -0
  54. package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
  55. package/lib/module/dtmpl-edit-page.js +5 -5
  56. package/lib/module/dtmpl-edit-page.js.map +1 -1
  57. package/lib/module/dtmpl-view-card.d.ts +2 -0
  58. package/lib/module/dtmpl-view-card.d.ts.map +1 -1
  59. package/lib/module/dtmpl-view-card.js +7 -4
  60. package/lib/module/dtmpl-view-card.js.map +1 -1
  61. package/lib/module/dtmpl-view-drawer.d.ts +2 -0
  62. package/lib/module/dtmpl-view-drawer.d.ts.map +1 -1
  63. package/lib/module/dtmpl-view-drawer.js +3 -2
  64. package/lib/module/dtmpl-view-drawer.js.map +1 -1
  65. package/lib/module/dtmpl-view-modal.d.ts +2 -0
  66. package/lib/module/dtmpl-view-modal.d.ts.map +1 -1
  67. package/lib/module/dtmpl-view-modal.js +3 -2
  68. package/lib/module/dtmpl-view-modal.js.map +1 -1
  69. package/lib/module/ttmpl-table.d.ts.map +1 -1
  70. package/lib/module/ttmpl-table.js +1 -1
  71. package/lib/module/ttmpl-table.js.map +1 -1
  72. package/lib/routable/index.less +5 -0
  73. package/lib/routable/ltmpl-route.d.ts +1 -0
  74. package/lib/routable/ltmpl-route.d.ts.map +1 -1
  75. package/lib/routable/ltmpl-route.js +37 -7
  76. package/lib/routable/ltmpl-route.js.map +1 -1
  77. package/lib/routable/ttmpl-table-route.d.ts.map +1 -1
  78. package/lib/routable/ttmpl-table-route.js +2 -1
  79. package/lib/routable/ttmpl-table-route.js.map +1 -1
  80. package/lib/table/act-table.d.ts +3 -0
  81. package/lib/table/act-table.d.ts.map +1 -1
  82. package/lib/table/act-table.js +9 -6
  83. package/lib/table/act-table.js.map +1 -1
  84. package/lib/table/column/column-builder.d.ts.map +1 -1
  85. package/lib/table/column/column-builder.js +22 -10
  86. package/lib/table/column/column-builder.js.map +1 -1
  87. package/lib/table/pagination.js +1 -1
  88. package/lib/table/pagination.js.map +1 -1
  89. package/lib/table/relation-table.d.ts +5 -0
  90. package/lib/table/relation-table.d.ts.map +1 -1
  91. package/lib/table/relation-table.js +54 -10
  92. package/lib/table/relation-table.js.map +1 -1
  93. package/lib/tmpl/control-type-supportor.d.ts.map +1 -1
  94. package/lib/tmpl/control-type-supportor.js +1 -0
  95. package/lib/tmpl/control-type-supportor.js.map +1 -1
  96. package/lib/tmpl/hcservice-v3.d.ts +2 -0
  97. package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
  98. package/lib/tmpl/hcservice-v3.js +26 -0
  99. package/lib/tmpl/hcservice-v3.js.map +1 -1
  100. package/lib/tmpl/interface.d.ts +8 -1
  101. package/lib/tmpl/interface.d.ts.map +1 -1
  102. package/lib/tmpl/interface.js.map +1 -1
  103. package/lib/units/index.d.ts +2 -0
  104. package/lib/units/index.d.ts.map +1 -1
  105. package/lib/units/index.js +45 -0
  106. package/lib/units/index.js.map +1 -1
  107. package/package.json +1 -1
  108. package/src/aldehyde/controls/auto-complete/index.tsx +4 -6
  109. package/src/aldehyde/controls/direct-file-view/index.tsx +4 -1
  110. package/src/aldehyde/controls/entry-control.tsx +4 -0
  111. package/src/aldehyde/controls/icon-selector/icon/phonenode-menu-icon/iconfont.css +99 -99
  112. package/src/aldehyde/controls/icon-selector/icon/phonenode-menu-icon/iconfont.json +156 -156
  113. package/src/aldehyde/controls/view-control.tsx +1 -0
  114. package/src/aldehyde/detail/view/act-dtmpl-view.tsx +4 -1
  115. package/src/aldehyde/detail/view/dtmpl-view.tsx +20 -26
  116. package/src/aldehyde/detail/view/field-view-group.tsx +20 -22
  117. package/src/aldehyde/detail/view/index.less +6 -0
  118. package/src/aldehyde/draw-canvas-edit/components/asset-bar/index.less +35 -35
  119. package/src/aldehyde/draw-canvas-edit/components/asset-bar/index.tsx +110 -110
  120. package/src/aldehyde/draw-canvas-edit/components/main-header/index.less +23 -23
  121. package/src/aldehyde/draw-canvas-edit/components/main-header/index.tsx +263 -263
  122. package/src/aldehyde/draw-canvas-edit/components/render/draws/index.ts +7 -7
  123. package/src/aldehyde/draw-canvas-edit/components/render/graphs/base-graph.ts +241 -241
  124. package/src/aldehyde/draw-canvas-edit/components/render/graphs/circle.ts +699 -699
  125. package/src/aldehyde/draw-canvas-edit/components/render/graphs/curve.ts +500 -500
  126. package/src/aldehyde/draw-canvas-edit/components/render/graphs/index.ts +5 -5
  127. package/src/aldehyde/draw-canvas-edit/components/render/graphs/line.ts +493 -493
  128. package/src/aldehyde/draw-canvas-edit/components/render/graphs/rect.ts +680 -680
  129. package/src/aldehyde/draw-canvas-edit/components/render/handlers/drag-handlers.ts +68 -68
  130. package/src/aldehyde/draw-canvas-edit/components/render/handlers/graph-handlers.ts +113 -113
  131. package/src/aldehyde/draw-canvas-edit/components/render/handlers/index.ts +9 -9
  132. package/src/aldehyde/draw-canvas-edit/components/render/handlers/key-move-handlers.ts +49 -49
  133. package/src/aldehyde/draw-canvas-edit/components/render/handlers/link-handlers.ts +45 -45
  134. package/src/aldehyde/draw-canvas-edit/components/render/handlers/shutcut-handlers.ts +45 -45
  135. package/src/aldehyde/draw-canvas-edit/components/render/handlers/text-handlers.ts +81 -81
  136. package/src/aldehyde/draw-canvas-edit/components/render/handlers/zoom-handlers.ts +59 -59
  137. package/src/aldehyde/draw-canvas-edit/components/render/tools/align-tool.ts +89 -89
  138. package/src/aldehyde/draw-canvas-edit/components/render/tools/asset-tool.ts +154 -154
  139. package/src/aldehyde/draw-canvas-edit/components/render/tools/link-tool.ts +222 -222
  140. package/src/aldehyde/draw-canvas-edit/components/render/tools/z-index-tool.ts +224 -224
  141. package/src/aldehyde/draw-canvas-edit/components/render/utils/a-star.ts +116 -116
  142. package/src/aldehyde/draw-canvas-edit/components/render/utils/bezier-scene-func.ts +72 -72
  143. package/src/aldehyde/draw-canvas-edit/components/setting-form/imag-upload.tsx +119 -119
  144. package/src/aldehyde/form/dtmpl-form.tsx +59 -55
  145. package/src/aldehyde/form/form-Item-group.tsx +16 -5
  146. package/src/aldehyde/layout4/imgs/user.svg +26 -26
  147. package/src/aldehyde/list/card-list/card-list-item.tsx +26 -7
  148. package/src/aldehyde/lowcode-components/base-color-block/index.tsx +31 -31
  149. package/src/aldehyde/lowcode-components/base-table/index.less +61 -61
  150. package/src/aldehyde/lowcode-components/data-number/index.less +10 -10
  151. package/src/aldehyde/lowcode-components/data-number/index.tsx +22 -1
  152. package/src/aldehyde/lowcode-components/date-time/index.less +4 -4
  153. package/src/aldehyde/lowcode-components/date-time/index.tsx +64 -64
  154. package/src/aldehyde/lowcode-components/four-angle-glow-border/index.less +49 -49
  155. package/src/aldehyde/lowcode-components/four-angle-glow-border/index.tsx +53 -53
  156. package/src/aldehyde/lowcode-components/line-chart/index.tsx +7 -7
  157. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-controller.ts +64 -64
  158. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-definition.ts +77 -77
  159. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-designer-loader.ts +36 -36
  160. package/src/aldehyde/lowcode-components/lowcode-view/component/component-container.tsx +144 -144
  161. package/src/aldehyde/lowcode-components/lowcode-view/component/font/FontGlobal.css +26 -26
  162. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/controller.ts +36 -36
  163. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/definition.ts +53 -53
  164. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/index.tsx +15 -15
  165. package/src/aldehyde/lowcode-components/lowcode-view/component/layer-builder.tsx +98 -98
  166. package/src/aldehyde/lowcode-components/lowcode-view/component/screen-fit/index.less +13 -13
  167. package/src/aldehyde/lowcode-components/lowcode-view/component/screen-fit/index.tsx +121 -121
  168. package/src/aldehyde/lowcode-components/placeholder-component/index.tsx +81 -81
  169. package/src/aldehyde/lowcode-components/text-scroller/index.less +28 -28
  170. package/src/aldehyde/lowcode-components/text-scroller/index.tsx +173 -173
  171. package/src/aldehyde/module/dtmpl-edit-page.tsx +10 -1
  172. package/src/aldehyde/module/dtmpl-view-card.tsx +39 -34
  173. package/src/aldehyde/module/dtmpl-view-drawer.tsx +4 -2
  174. package/src/aldehyde/module/dtmpl-view-modal.tsx +4 -2
  175. package/src/aldehyde/module/ttmpl-table.tsx +1 -0
  176. package/src/aldehyde/routable/index.less +5 -0
  177. package/src/aldehyde/routable/ltmpl-route.tsx +39 -4
  178. package/src/aldehyde/routable/ttmpl-table-route.tsx +3 -0
  179. package/src/aldehyde/table/act-table.tsx +11 -6
  180. package/src/aldehyde/table/column/column-builder.tsx +14 -3
  181. package/src/aldehyde/table/pagination.tsx +1 -1
  182. package/src/aldehyde/table/relation-table.tsx +77 -16
  183. package/src/aldehyde/tmpl/control-type-supportor.tsx +1 -0
  184. package/src/aldehyde/tmpl/hcservice-v3.tsx +23 -0
  185. package/src/aldehyde/tmpl/interface.tsx +9 -2
  186. package/src/aldehyde/units/index.tsx +44 -0
@@ -1,156 +1,156 @@
1
- {
2
- "id": "5037136",
3
- "name": "phonenode-menu-icon",
4
- "font_family": "iconfont",
5
- "css_prefix_text": "icon-",
6
- "description": "",
7
- "glyphs": [
8
- {
9
- "icon_id": "1314143",
10
- "name": "业务人员信息管理",
11
- "font_class": "yewurenyuanxinxiguanli",
12
- "unicode": "e60e",
13
- "unicode_decimal": 58894
14
- },
15
- {
16
- "icon_id": "2076280",
17
- "name": " 订单 处理中",
18
- "font_class": "dingdanchulizhong",
19
- "unicode": "e896",
20
- "unicode_decimal": 59542
21
- },
22
- {
23
- "icon_id": "5325477",
24
- "name": "车辆信息",
25
- "font_class": "cheliangxinxi",
26
- "unicode": "e755",
27
- "unicode_decimal": 59221
28
- },
29
- {
30
- "icon_id": "30184485",
31
- "name": "销售订单管理",
32
- "font_class": "a-SalesOrderManagement",
33
- "unicode": "e635",
34
- "unicode_decimal": 58933
35
- },
36
- {
37
- "icon_id": "35014974",
38
- "name": "采购订单@3x",
39
- "font_class": "a-caigoudingdan3x",
40
- "unicode": "e615",
41
- "unicode_decimal": 58901
42
- },
43
- {
44
- "icon_id": "40956109",
45
- "name": "过磅记录",
46
- "font_class": "guobangjilu",
47
- "unicode": "e64d",
48
- "unicode_decimal": 58957
49
- },
50
- {
51
- "icon_id": "42976294",
52
- "name": "参数配置",
53
- "font_class": "canshupeizhi",
54
- "unicode": "e609",
55
- "unicode_decimal": 58889
56
- },
57
- {
58
- "icon_id": "46265573",
59
- "name": "误差统计",
60
- "font_class": "wuchatongji",
61
- "unicode": "e890",
62
- "unicode_decimal": 59536
63
- },
64
- {
65
- "icon_id": "48016567",
66
- "name": "并购重组",
67
- "font_class": "binggouzhongzu",
68
- "unicode": "e660",
69
- "unicode_decimal": 58976
70
- },
71
- {
72
- "icon_id": "1079710",
73
- "name": "停车位",
74
- "font_class": "tingchewei",
75
- "unicode": "e664",
76
- "unicode_decimal": 58980
77
- },
78
- {
79
- "icon_id": "1305474",
80
- "name": "权限",
81
- "font_class": "quanxian",
82
- "unicode": "e63f",
83
- "unicode_decimal": 58943
84
- },
85
- {
86
- "icon_id": "1998826",
87
- "name": "工位",
88
- "font_class": "gongwei",
89
- "unicode": "e641",
90
- "unicode_decimal": 58945
91
- },
92
- {
93
- "icon_id": "10487476",
94
- "name": "维修",
95
- "font_class": "weixiu",
96
- "unicode": "e690",
97
- "unicode_decimal": 59024
98
- },
99
- {
100
- "icon_id": "12184880",
101
- "name": "部门",
102
- "font_class": "bumen",
103
- "unicode": "e686",
104
- "unicode_decimal": 59014
105
- },
106
- {
107
- "icon_id": "20951818",
108
- "name": "生产基地",
109
- "font_class": "shengchanjidi",
110
- "unicode": "e63b",
111
- "unicode_decimal": 58939
112
- },
113
- {
114
- "icon_id": "765849",
115
- "name": "地址",
116
- "font_class": "shouye",
117
- "unicode": "e63c",
118
- "unicode_decimal": 58940
119
- },
120
- {
121
- "icon_id": "8629256",
122
- "name": "人员",
123
- "font_class": "renyuan",
124
- "unicode": "e66c",
125
- "unicode_decimal": 58988
126
- },
127
- {
128
- "icon_id": "9921751",
129
- "name": "apply",
130
- "font_class": "apply",
131
- "unicode": "e61c",
132
- "unicode_decimal": 58908
133
- },
134
- {
135
- "icon_id": "39260433",
136
- "name": "厂区管理",
137
- "font_class": "changquguanli",
138
- "unicode": "e607",
139
- "unicode_decimal": 58887
140
- },
141
- {
142
- "icon_id": "8329706",
143
- "name": "kuaidi",
144
- "font_class": "kuaidi",
145
- "unicode": "e6c0",
146
- "unicode_decimal": 59072
147
- },
148
- {
149
- "icon_id": "15838501",
150
- "name": "menu",
151
- "font_class": "menu",
152
- "unicode": "e677",
153
- "unicode_decimal": 58999
154
- }
155
- ]
156
- }
1
+ {
2
+ "id": "5037136",
3
+ "name": "phonenode-menu-icon",
4
+ "font_family": "iconfont",
5
+ "css_prefix_text": "icon-",
6
+ "description": "",
7
+ "glyphs": [
8
+ {
9
+ "icon_id": "1314143",
10
+ "name": "业务人员信息管理",
11
+ "font_class": "yewurenyuanxinxiguanli",
12
+ "unicode": "e60e",
13
+ "unicode_decimal": 58894
14
+ },
15
+ {
16
+ "icon_id": "2076280",
17
+ "name": " 订单 处理中",
18
+ "font_class": "dingdanchulizhong",
19
+ "unicode": "e896",
20
+ "unicode_decimal": 59542
21
+ },
22
+ {
23
+ "icon_id": "5325477",
24
+ "name": "车辆信息",
25
+ "font_class": "cheliangxinxi",
26
+ "unicode": "e755",
27
+ "unicode_decimal": 59221
28
+ },
29
+ {
30
+ "icon_id": "30184485",
31
+ "name": "销售订单管理",
32
+ "font_class": "a-SalesOrderManagement",
33
+ "unicode": "e635",
34
+ "unicode_decimal": 58933
35
+ },
36
+ {
37
+ "icon_id": "35014974",
38
+ "name": "采购订单@3x",
39
+ "font_class": "a-caigoudingdan3x",
40
+ "unicode": "e615",
41
+ "unicode_decimal": 58901
42
+ },
43
+ {
44
+ "icon_id": "40956109",
45
+ "name": "过磅记录",
46
+ "font_class": "guobangjilu",
47
+ "unicode": "e64d",
48
+ "unicode_decimal": 58957
49
+ },
50
+ {
51
+ "icon_id": "42976294",
52
+ "name": "参数配置",
53
+ "font_class": "canshupeizhi",
54
+ "unicode": "e609",
55
+ "unicode_decimal": 58889
56
+ },
57
+ {
58
+ "icon_id": "46265573",
59
+ "name": "误差统计",
60
+ "font_class": "wuchatongji",
61
+ "unicode": "e890",
62
+ "unicode_decimal": 59536
63
+ },
64
+ {
65
+ "icon_id": "48016567",
66
+ "name": "并购重组",
67
+ "font_class": "binggouzhongzu",
68
+ "unicode": "e660",
69
+ "unicode_decimal": 58976
70
+ },
71
+ {
72
+ "icon_id": "1079710",
73
+ "name": "停车位",
74
+ "font_class": "tingchewei",
75
+ "unicode": "e664",
76
+ "unicode_decimal": 58980
77
+ },
78
+ {
79
+ "icon_id": "1305474",
80
+ "name": "权限",
81
+ "font_class": "quanxian",
82
+ "unicode": "e63f",
83
+ "unicode_decimal": 58943
84
+ },
85
+ {
86
+ "icon_id": "1998826",
87
+ "name": "工位",
88
+ "font_class": "gongwei",
89
+ "unicode": "e641",
90
+ "unicode_decimal": 58945
91
+ },
92
+ {
93
+ "icon_id": "10487476",
94
+ "name": "维修",
95
+ "font_class": "weixiu",
96
+ "unicode": "e690",
97
+ "unicode_decimal": 59024
98
+ },
99
+ {
100
+ "icon_id": "12184880",
101
+ "name": "部门",
102
+ "font_class": "bumen",
103
+ "unicode": "e686",
104
+ "unicode_decimal": 59014
105
+ },
106
+ {
107
+ "icon_id": "20951818",
108
+ "name": "生产基地",
109
+ "font_class": "shengchanjidi",
110
+ "unicode": "e63b",
111
+ "unicode_decimal": 58939
112
+ },
113
+ {
114
+ "icon_id": "765849",
115
+ "name": "地址",
116
+ "font_class": "shouye",
117
+ "unicode": "e63c",
118
+ "unicode_decimal": 58940
119
+ },
120
+ {
121
+ "icon_id": "8629256",
122
+ "name": "人员",
123
+ "font_class": "renyuan",
124
+ "unicode": "e66c",
125
+ "unicode_decimal": 58988
126
+ },
127
+ {
128
+ "icon_id": "9921751",
129
+ "name": "apply",
130
+ "font_class": "apply",
131
+ "unicode": "e61c",
132
+ "unicode_decimal": 58908
133
+ },
134
+ {
135
+ "icon_id": "39260433",
136
+ "name": "厂区管理",
137
+ "font_class": "changquguanli",
138
+ "unicode": "e607",
139
+ "unicode_decimal": 58887
140
+ },
141
+ {
142
+ "icon_id": "8329706",
143
+ "name": "kuaidi",
144
+ "font_class": "kuaidi",
145
+ "unicode": "e6c0",
146
+ "unicode_decimal": 59072
147
+ },
148
+ {
149
+ "icon_id": "15838501",
150
+ "name": "menu",
151
+ "font_class": "menu",
152
+ "unicode": "e677",
153
+ "unicode_decimal": 58999
154
+ }
155
+ ]
156
+ }
@@ -221,6 +221,7 @@ function renderControl(
221
221
  viewControl = <DirectFileView {...controlProps} />;
222
222
  break;
223
223
  case "relfile":
224
+ case "relimage":
224
225
  //只是配置了,内部未做开发
225
226
  viewControl = <MultiFileView {...controlProps}></MultiFileView>;
226
227
  break;
@@ -17,6 +17,7 @@ export interface ActDtmplViewProps extends DtmplBaseProps {
17
17
  goBackToLtmpl?: () => void,
18
18
  title?: any;
19
19
  showHeader?: boolean;
20
+ isAudit?: boolean; // 是否审计
20
21
  }
21
22
 
22
23
  export interface ActDtmplViewStat {
@@ -37,6 +38,7 @@ class ActDtmplView extends React.PureComponent<
37
38
  showRightNav: true,
38
39
  rightBarPositionRight: 15,
39
40
  showHeader: true,
41
+ isAudit: false,
40
42
  };
41
43
  formRef = React.createRef<FormInstance>();
42
44
  static contextType = LocaleContext;
@@ -164,7 +166,7 @@ class ActDtmplView extends React.PureComponent<
164
166
  serverKey,
165
167
  codeSource,
166
168
  title,
167
- showHeader,
169
+ showHeader, isAudit
168
170
  } = this.props;
169
171
  const {
170
172
  dtmplConfig,
@@ -262,6 +264,7 @@ class ActDtmplView extends React.PureComponent<
262
264
  sourceId={sourceId}
263
265
  code={code}
264
266
  tabBarExtraContent={renderAction}
267
+ isAudit={isAudit}
265
268
  />
266
269
  <AntdForm
267
270
  scrollToFirstError={true}
@@ -16,6 +16,7 @@ import TmplConfigAnalysis from "../../tmpl/tmpl-config-analysis";
16
16
  import { Card, Tabs } from "antd";
17
17
  import LtmplTable from "../../module/ltmpl-table";
18
18
  import DtmplViewCard from "../../module/dtmpl-view-card";
19
+ import { ProgramConfig } from "../../index";
19
20
 
20
21
  export interface DtmplViewProps extends DtmplBaseProps {
21
22
  versionId?: number;
@@ -23,6 +24,7 @@ export interface DtmplViewProps extends DtmplBaseProps {
23
24
  refreshCode?: string;
24
25
  parentId?: string;
25
26
  tabBarExtraContent?: ReactNode;
27
+ isAudit?: boolean; // 是否审计
26
28
  }
27
29
 
28
30
  export interface DtmplViewStat {
@@ -31,12 +33,14 @@ export interface DtmplViewStat {
31
33
  dtmplData?: DtmplData;
32
34
  premisesTitle?: string;
33
35
  layout?: object;
36
+ auditData?: { entity: DtmplData, previous?: DtmplData, changeInfo?: { changeFields: string[], arrayChangeInfos: object } }; // 审计对比数据
34
37
  }
35
38
 
36
39
  class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
37
40
  static defaultProps = {
38
41
  showRightNav: true,
39
42
  maxColsOnRow: 2,
43
+ isAudit: false,
40
44
  };
41
45
 
42
46
  state = {
@@ -44,6 +48,7 @@ class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
44
48
  id: "dtmplView" + Units.getRandomNum(6),
45
49
  snapshotOpen: false,
46
50
  dtmplData: undefined,
51
+ auditData: undefined,
47
52
  premisesTitle: "默认字段",
48
53
  layout: {
49
54
  labelCol: { span: 8 },
@@ -72,36 +77,23 @@ class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
72
77
  }
73
78
 
74
79
  loadData = async () => {
75
- const {
76
- sourceId,
77
- code: propsCode,
78
- versionId,
79
- serverKey,
80
- codeSource,
81
- } = this.props;
80
+ const { sourceId, code: propsCode, versionId, serverKey, codeSource, isAudit } = this.props;
82
81
  let code = propsCode;
83
82
  if (!code && codeSource) {
84
83
  code = await HcserviceV3.queryCode(sourceId, codeSource, serverKey);
85
84
  }
86
85
  if (code) {
87
- this.setState({
88
- loading: true,
89
- dtmplData: undefined,
90
- });
91
- const dtmplData = await HcserviceV3.requestViewDtmplData(
92
- serverKey,
93
- sourceId,
94
- code,
95
- versionId
96
- );
97
- this.setState({
98
- dtmplData,
99
- loading: false,
100
- });
86
+ this.setState({ loading: true, dtmplData: undefined });
87
+ let dtmplData, auditData;
88
+ if (isAudit) { // 审计查看页面
89
+ auditData = await HcserviceV3.requestViewDtmplAuditData(serverKey, sourceId, code, versionId);
90
+ dtmplData = { ...(auditData?.entity || {}), sourceId: auditData?.sourceId };
91
+ } else { // 普通查看页面
92
+ dtmplData = await HcserviceV3.requestViewDtmplData(serverKey, sourceId, code, versionId);
93
+ }
94
+ this.setState({ dtmplData, auditData, loading: false });
101
95
  } else {
102
- this.setState({
103
- loading: false,
104
- });
96
+ this.setState({ loading: false });
105
97
  }
106
98
  };
107
99
 
@@ -111,9 +103,9 @@ class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
111
103
  serverKey,
112
104
  mainCode,
113
105
  showRightNav,
114
- parentId, maxColsOnRow, code
106
+ parentId, maxColsOnRow, code, isAudit
115
107
  } = this.props;
116
- const { dtmplData, loading, id } = this.state;
108
+ const { dtmplData, loading, id, auditData } = this.state;
117
109
  const { pageLayout } = dtmplConfig;
118
110
  let groups: FieldGroupConfig[] = [];
119
111
  if (dtmplConfig) {
@@ -224,6 +216,7 @@ class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
224
216
  value={data}
225
217
  viewOrEdit={"view"}
226
218
  showCollapseCard={pageLayout !== "horizontalTabs"}
219
+ audit={{ isAudit, previousData: ProgramConfig.arrayToMap(auditData?.previous?.arrayMap?.[item.id], "code"), changeInfo: auditData?.changeInfo?.arrayChangeInfos?.[item.id] }}
227
220
  />;
228
221
  return pageLayout === "horizontalTabs" ? { key: item.id, label: item.title, children } : children;
229
222
  }
@@ -234,6 +227,7 @@ class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
234
227
  fields={item.fields}
235
228
  valueMap={dtmplData ? dtmplData.fieldMap : undefined}
236
229
  width={220}
230
+ audit={{ isAudit, auditMap: auditData?.previous?.fieldMap || undefined, changeFields: auditData?.changeInfo?.changeFields }}
237
231
  />;
238
232
  return (
239
233
  pageLayout === "horizontalTabs" ?
@@ -1,8 +1,9 @@
1
- import React from "react";
2
- import { Col, Row, Descriptions } from "antd";
3
- import { FieldConfig, FieldGroupConfig } from "../../tmpl/interface";
1
+ import React, { ReactNode } from "react";
2
+ import { Descriptions, Tooltip } from "antd";
3
+ import { FieldConfig } from "../../tmpl/interface";
4
4
  import ViewControl from "../../controls/view-control";
5
5
  import { LocaleContext } from "../../locale/LocaleProvider";
6
+ import "./index.less";
6
7
 
7
8
  interface FieldViewGroupProps {
8
9
  serverKey?: string;
@@ -11,6 +12,7 @@ interface FieldViewGroupProps {
11
12
  width?: number;
12
13
  dataCode?: string;
13
14
  column?: number;
15
+ audit?: { isAudit: boolean, auditMap?: object, changeFields?: string[] }; // 是否审计查看,审计查看配置
14
16
  }
15
17
 
16
18
  interface FieldViewGroupState {
@@ -29,41 +31,37 @@ export default class FieldViewGroup extends React.PureComponent<
29
31
  }
30
32
  static defaultProps = {
31
33
  column: 2,
34
+ audit: { isAudit: false }
32
35
  };
33
36
  static contextType = LocaleContext;
34
37
  context: React.ContextType<typeof LocaleContext>;
35
38
 
36
39
  initViewList = () => {
37
- const { fields, valueMap, serverKey, dataCode } = this.props;
40
+ const { fields, valueMap, serverKey, dataCode, audit } = this.props;
38
41
  const { translate } = this.context;
39
42
  const formItemList = [];
40
43
 
41
44
  if (fields.length > 0) {
42
45
  fields.forEach((item, index) => {
43
- const title = item.title;
44
46
  let fieldValue = valueMap ? valueMap[item.id] : undefined;
45
47
  //fieldValue 没有值时不能为null 要为 undefined。antd input所限制
46
- fieldValue = fieldValue
47
- ? fieldValue
48
- : item.defaultValue
49
- ? item.defaultValue
50
- : undefined;
51
- const fieldKey = item.id + Math.random() * 100;
52
-
53
- if (item.extControlType != "hidden" && !item.hidden) {
48
+ fieldValue = fieldValue ? fieldValue : item.defaultValue ? item.defaultValue : undefined;
49
+ let label: ReactNode = translate("${" + item.title + "}");
50
+ if (audit?.isAudit && audit.changeFields?.includes(item.id)) { // 审计查看页面-上次更新内容在label标注
51
+ const tValue = audit.auditMap ? audit.auditMap[item.id] : undefined;
52
+ const tTitle = <ViewControl dataCode={dataCode} serverKey={serverKey} holderType={"descriptions"} value={tValue} fieldConfig={item} />
53
+ label = <span style={{ cursor: "pointer", color: "#ff4d4f" }}>{label}</span>;
54
+ label = (tValue || tValue === 0) ? <Tooltip title={tTitle}>{label}</Tooltip> : label;
55
+ }
56
+ if (item.extControlType !== "hidden" && !item.hidden) {
54
57
  const formItem = (
55
58
  <Descriptions.Item
56
- label={translate("${" + item.title + "}")}
59
+ label={label}
57
60
  span={item.colSpan}
58
61
  key={index}
59
62
  className="labelcss"
60
63
  >
61
- <div
62
- className="description-content"
63
- style={{
64
- width: "100%",
65
- }}
66
- >
64
+ <div className="description-content" style={{ width: "100%" }}>
67
65
  <ViewControl
68
66
  dataCode={dataCode}
69
67
  serverKey={serverKey}
@@ -82,7 +80,7 @@ export default class FieldViewGroup extends React.PureComponent<
82
80
  };
83
81
 
84
82
  render() {
85
- const {column} = this.props;
86
- return <Descriptions column={column} >{this.initViewList()}</Descriptions>;
83
+ const { column } = this.props;
84
+ return <Descriptions className="field-view-group" column={column} >{this.initViewList()}</Descriptions>;
87
85
  }
88
86
  }
@@ -0,0 +1,6 @@
1
+ .field-view-group {
2
+ .ant-descriptions-view>table {
3
+ table-layout: fixed;
4
+ width: 100%;
5
+ }
6
+ }
@@ -1,36 +1,36 @@
1
- .asset-bar {
2
- background-color: #f5f5f5;
3
- width: 200px;
4
- min-height: 100%;
5
-
6
- .asset-list {
7
- display: flex;
8
- flex-wrap: wrap;
9
- padding: 4px;
10
- margin: 0;
11
- list-style: none;
12
-
13
- &>li {
14
- width: 20%;
15
- padding-top: 20%;
16
- flex-shrink: 0;
17
- cursor: pointer;
18
- position: relative;
19
- border-radius: 4px;
20
-
21
- &:hover {
22
- background-color: #ddd;
23
- }
24
-
25
- &>img {
26
- position: absolute;
27
- top: 6px;
28
- left: 6px;
29
- object-fit: contain;
30
- width: calc(~"100% - 12px");
31
- height: calc(~"100% - 12px");
32
- pointer-events: none;
33
- }
34
- }
35
- }
1
+ .asset-bar {
2
+ background-color: #f5f5f5;
3
+ width: 200px;
4
+ min-height: 100%;
5
+
6
+ .asset-list {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ padding: 4px;
10
+ margin: 0;
11
+ list-style: none;
12
+
13
+ &>li {
14
+ width: 20%;
15
+ padding-top: 20%;
16
+ flex-shrink: 0;
17
+ cursor: pointer;
18
+ position: relative;
19
+ border-radius: 4px;
20
+
21
+ &:hover {
22
+ background-color: #ddd;
23
+ }
24
+
25
+ &>img {
26
+ position: absolute;
27
+ top: 6px;
28
+ left: 6px;
29
+ object-fit: contain;
30
+ width: calc(~"100% - 12px");
31
+ height: calc(~"100% - 12px");
32
+ pointer-events: none;
33
+ }
34
+ }
35
+ }
36
36
  }