szld-libs 0.2.98 → 0.3.1

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 (106) hide show
  1. package/dist/style.css +1 -1
  2. package/dist/szld-components.es.js +32089 -20004
  3. package/dist/szld-components.umd.js +72 -60
  4. package/es/components/DynamicForm/index.d.ts +2 -0
  5. package/es/components/DynamicForm/index.js +3 -2
  6. package/es/components/DynamicForm/selectModel/index.js +1 -1
  7. package/es/components/DynamicForm/selectModelBackfillFormItem/index.d.ts +27 -0
  8. package/es/components/DynamicForm/selectModelBackfillFormItem/index.js +242 -0
  9. package/es/components/DynamicForm/selectModelBackfillFormItem/vite.svg +1 -0
  10. package/es/components/DynamicForm/useDynamicForm.js +22 -1
  11. package/es/components/DynamicFormMobile/func.d.ts +35 -0
  12. package/es/components/DynamicFormMobile/func.js +204 -0
  13. package/es/components/DynamicFormMobile/index.d.ts +116 -0
  14. package/es/components/DynamicFormMobile/index.js +134 -0
  15. package/es/components/DynamicFormMobile/myCascader/index.d.ts +17 -0
  16. package/es/components/DynamicFormMobile/myCascader/index.js +196 -0
  17. package/es/components/DynamicFormMobile/myCascader/vite.svg +1 -0
  18. package/es/components/DynamicFormMobile/myCheckbox/index.d.ts +19 -0
  19. package/es/components/DynamicFormMobile/myCheckbox/index.js +109 -0
  20. package/es/components/DynamicFormMobile/myCheckbox/vite.svg +1 -0
  21. package/es/components/DynamicFormMobile/myRadio/index.d.ts +20 -0
  22. package/es/components/DynamicFormMobile/myRadio/index.js +107 -0
  23. package/es/components/DynamicFormMobile/myRadio/vite.svg +1 -0
  24. package/es/components/DynamicFormMobile/mySelect/index.css +31 -0
  25. package/es/components/DynamicFormMobile/mySelect/index.d.ts +16 -0
  26. package/es/components/DynamicFormMobile/mySelect/index.js +147 -0
  27. package/es/components/DynamicFormMobile/mySelect/vite.svg +1 -0
  28. package/es/components/DynamicFormMobile/myUpload/index.css +3 -0
  29. package/es/components/DynamicFormMobile/myUpload/index.d.ts +16 -0
  30. package/es/components/DynamicFormMobile/myUpload/index.js +103 -0
  31. package/es/components/DynamicFormMobile/myUpload/vite.svg +1 -0
  32. package/es/components/DynamicFormMobile/radioCard/index.d.ts +12 -0
  33. package/es/components/DynamicFormMobile/radioCard/index.js +142 -0
  34. package/es/components/DynamicFormMobile/radioCard/vite.svg +1 -0
  35. package/es/components/DynamicFormMobile/selectModel/index.d.ts +22 -0
  36. package/es/components/DynamicFormMobile/selectModel/index.js +235 -0
  37. package/es/components/DynamicFormMobile/selectModel/vite.svg +1 -0
  38. package/es/components/DynamicFormMobile/selectModelBackfillFormItem/index.d.ts +27 -0
  39. package/es/components/DynamicFormMobile/selectModelBackfillFormItem/index.js +242 -0
  40. package/es/components/DynamicFormMobile/selectModelBackfillFormItem/vite.svg +1 -0
  41. package/es/components/DynamicFormMobile/useDynamicForm.d.ts +43 -0
  42. package/es/components/DynamicFormMobile/useDynamicForm.js +772 -0
  43. package/es/components/DynamicFormMobile/vite.svg +1 -0
  44. package/es/index.css +1 -0
  45. package/es/index.d.ts +1 -1
  46. package/es/index.js +36 -30
  47. package/es/main.d.ts +2 -1
  48. package/es/main.js +22 -20
  49. package/es/mock/index.d.ts +1 -305
  50. package/es/mock/index.js +20 -364
  51. package/es/services/index.js +3 -5
  52. package/es/services/request.js +2 -2
  53. package/es/utils/method.d.ts +4 -1
  54. package/es/utils/method.js +25 -8
  55. package/lib/components/DynamicForm/index.d.ts +2 -0
  56. package/lib/components/DynamicForm/index.js +3 -2
  57. package/lib/components/DynamicForm/selectModel/index.js +1 -1
  58. package/lib/components/DynamicForm/selectModelBackfillFormItem/index.d.ts +27 -0
  59. package/lib/components/DynamicForm/selectModelBackfillFormItem/index.js +242 -0
  60. package/lib/components/DynamicForm/selectModelBackfillFormItem/vite.svg +1 -0
  61. package/lib/components/DynamicForm/useDynamicForm.js +22 -1
  62. package/lib/components/DynamicFormMobile/func.d.ts +35 -0
  63. package/lib/components/DynamicFormMobile/func.js +204 -0
  64. package/lib/components/DynamicFormMobile/index.d.ts +116 -0
  65. package/lib/components/DynamicFormMobile/index.js +133 -0
  66. package/lib/components/DynamicFormMobile/myCascader/index.d.ts +17 -0
  67. package/lib/components/DynamicFormMobile/myCascader/index.js +195 -0
  68. package/lib/components/DynamicFormMobile/myCascader/vite.svg +1 -0
  69. package/lib/components/DynamicFormMobile/myCheckbox/index.d.ts +19 -0
  70. package/lib/components/DynamicFormMobile/myCheckbox/index.js +108 -0
  71. package/lib/components/DynamicFormMobile/myCheckbox/vite.svg +1 -0
  72. package/lib/components/DynamicFormMobile/myRadio/index.d.ts +20 -0
  73. package/lib/components/DynamicFormMobile/myRadio/index.js +106 -0
  74. package/lib/components/DynamicFormMobile/myRadio/vite.svg +1 -0
  75. package/lib/components/DynamicFormMobile/mySelect/index.css +31 -0
  76. package/lib/components/DynamicFormMobile/mySelect/index.d.ts +16 -0
  77. package/lib/components/DynamicFormMobile/mySelect/index.js +146 -0
  78. package/lib/components/DynamicFormMobile/mySelect/vite.svg +1 -0
  79. package/lib/components/DynamicFormMobile/myUpload/index.css +3 -0
  80. package/lib/components/DynamicFormMobile/myUpload/index.d.ts +16 -0
  81. package/lib/components/DynamicFormMobile/myUpload/index.js +102 -0
  82. package/lib/components/DynamicFormMobile/myUpload/vite.svg +1 -0
  83. package/lib/components/DynamicFormMobile/radioCard/index.d.ts +12 -0
  84. package/lib/components/DynamicFormMobile/radioCard/index.js +141 -0
  85. package/lib/components/DynamicFormMobile/radioCard/vite.svg +1 -0
  86. package/lib/components/DynamicFormMobile/selectModel/index.d.ts +22 -0
  87. package/lib/components/DynamicFormMobile/selectModel/index.js +235 -0
  88. package/lib/components/DynamicFormMobile/selectModel/vite.svg +1 -0
  89. package/lib/components/DynamicFormMobile/selectModelBackfillFormItem/index.d.ts +27 -0
  90. package/lib/components/DynamicFormMobile/selectModelBackfillFormItem/index.js +242 -0
  91. package/lib/components/DynamicFormMobile/selectModelBackfillFormItem/vite.svg +1 -0
  92. package/lib/components/DynamicFormMobile/useDynamicForm.d.ts +43 -0
  93. package/lib/components/DynamicFormMobile/useDynamicForm.js +771 -0
  94. package/lib/components/DynamicFormMobile/vite.svg +1 -0
  95. package/lib/index.css +1 -0
  96. package/lib/index.d.ts +1 -1
  97. package/lib/index.js +36 -30
  98. package/lib/main.d.ts +2 -1
  99. package/lib/main.js +2 -0
  100. package/lib/mock/index.d.ts +1 -305
  101. package/lib/mock/index.js +19 -363
  102. package/lib/services/index.js +3 -5
  103. package/lib/services/request.js +2 -2
  104. package/lib/utils/method.d.ts +4 -1
  105. package/lib/utils/method.js +25 -8
  106. package/package.json +1 -1
package/es/mock/index.js CHANGED
@@ -1,387 +1,43 @@
1
- const baseAttrList = [
2
- {
3
- xh: 1,
4
- asid: "2C648B554C994DED994D6049BA8E7488",
5
- astype: 0,
6
- tname: "fcctest",
7
- attrid: "987C9E76D2604B2587A259E193E0E4D4",
8
- attrname: "输入框",
9
- attrtype: 0,
10
- info: '{"input":"text","dataType":"string","length":100}',
11
- info_base64: 0,
12
- createtime: "2026-01-25 14:02:34",
13
- attrvalue: "",
14
- serialnum: 1,
15
- children: [],
16
- json: {
17
- input: "text",
18
- dataType: "string",
19
- length: 100
20
- }
21
- },
22
- {
23
- xh: 2,
24
- asid: "2C648B554C994DED994D6049BA8E7488",
25
- astype: 0,
26
- tname: "fcctest",
27
- attrid: "28F623FA152D44B89BA2518D52AA172B",
28
- attrname: "数字输入框",
29
- attrtype: 0,
30
- info: '{"input":"number","dataType":"int"}',
31
- info_base64: 0,
32
- createtime: "2026-01-25 14:03:01",
33
- attrvalue: "",
34
- serialnum: 2,
35
- children: [],
36
- json: {
37
- input: "number",
38
- dataType: "int"
39
- }
40
- },
41
- {
42
- xh: 3,
43
- asid: "2C648B554C994DED994D6049BA8E7488",
44
- astype: 0,
45
- tname: "fcctest",
46
- attrid: "309919F2EFCD4625B4428D4B12B5169F",
47
- attrname: "日期段选择",
48
- attrtype: 0,
49
- info: '{"input":"range-picker","range-picker-save":"range","dataType":"string","length":100,"disable-date-goover":true}',
50
- info_base64: 0,
51
- createtime: "2026-01-25 14:05:35",
52
- attrvalue: "",
53
- serialnum: 3,
54
- children: [],
55
- json: {
56
- input: "range-picker",
57
- "range-picker-save": "range",
58
- dataType: "string",
59
- length: 100,
60
- "disable-date-goover": true
61
- }
62
- }
63
- ];
1
+ const baseAttrList = [];
64
2
  const attrList = [
65
3
  {
66
4
  xh: 1,
67
- asid: "2C648B554C994DED994D6049BA8E7488",
68
- astype: 0,
69
- tname: "fcctest",
70
- attrid: "987C9E76D2604B2587A259E193E0E4D4",
71
- attrname: "输入框",
5
+ asid: "904A28FACAF346DFA63CBEEB3437BDA8",
6
+ attrid: "6970C54A08E54463888CD8F9E7FD851B",
7
+ attrname: "喂药日期",
72
8
  attrtype: 0,
73
- info: '{"input":"text","dataType":"string","length":100}',
9
+ info: '{"input":"multiple-date-picker","range-picker-save":"single","dataType":"string","length":1000}',
74
10
  info_base64: 0,
75
- createtime: "2026-01-25 14:02:34",
76
- attrvalue: "",
11
+ createtime: "2026-01-05 15:33:36",
77
12
  serialnum: 1,
78
- children: [],
79
- json: {
80
- input: "text",
81
- dataType: "string",
82
- length: 100
83
- }
13
+ label_list: []
84
14
  },
85
15
  {
86
16
  xh: 2,
87
- asid: "2C648B554C994DED994D6049BA8E7488",
88
- astype: 0,
89
- tname: "fcctest",
90
- attrid: "28F623FA152D44B89BA2518D52AA172B",
91
- attrname: "数字输入框",
17
+ asid: "904A28FACAF346DFA63CBEEB3437BDA8",
18
+ attrid: "98FD46568CAC4F248B5FD66D52DF5086",
19
+ attrname: "当日次数",
92
20
  attrtype: 0,
93
- info: '{"input":"number","dataType":"int"}',
21
+ info: '{"input":"text","dataType":"string","length":1}',
94
22
  info_base64: 0,
95
- createtime: "2026-01-25 14:03:01",
96
- attrvalue: "",
23
+ createtime: "2026-01-05 15:33:45",
97
24
  serialnum: 2,
98
- children: [],
99
- json: {
100
- input: "number",
101
- dataType: "int"
102
- }
25
+ label_list: []
103
26
  },
104
27
  {
105
28
  xh: 3,
106
- asid: "2C648B554C994DED994D6049BA8E7488",
107
- astype: 0,
108
- tname: "fcctest",
109
- attrid: "309919F2EFCD4625B4428D4B12B5169F",
110
- attrname: "日期段选择",
29
+ asid: "904A28FACAF346DFA63CBEEB3437BDA8",
30
+ attrid: "E7C4B706E65E4F81B51AAA9D313B5482",
31
+ attrname: "当日时间",
111
32
  attrtype: 0,
112
- info: '{"input":"range-picker","range-picker-save":"range","dataType":"string","length":100,"disable-date-goover":true}',
33
+ info: '{"input":"mult-select","inputType":"local","data":["09:00","10:00","11:00","12:00","13:00","14:00"],"dataType":"string","length":100}',
113
34
  info_base64: 0,
114
- createtime: "2026-01-25 14:05:35",
115
- attrvalue: "",
35
+ createtime: "2026-01-05 15:34:22",
116
36
  serialnum: 3,
117
- children: [],
118
- json: {
119
- input: "range-picker",
120
- "range-picker-save": "range",
121
- dataType: "string",
122
- length: 100,
123
- "disable-date-goover": true
124
- }
125
- }
126
- ];
127
- const testList = [
128
- {
129
- xh: 1,
130
- asid: "94C24D4B534A43A893ADDD78021AC393",
131
- astype: 0,
132
- tname: "dog_room_type_table",
133
- attrid: "1710D157CDFF46A7A4E4501095C8ACBE",
134
- attrname: "唯一编号",
135
- attrtype: 0,
136
- info: "eyJpbnB1dCI6InRleHQiLCJkYXRhVHlwZSI6InN0cmluZyIsImxlbmd0aCI6MTAwLCJhdXRvLWdlbmVyYXRlIjp0cnVlLCJhdXRvLWdlbmVyYXRlLXR5cGUiOiJndWlkIn0=",
137
- info_base64: 1,
138
- createtime: "2026-01-26 10:06:27",
139
- attrvalue: "01",
140
- serialnum: 0,
141
- children: [],
142
- json: {
143
- input: "text",
144
- dataType: "string",
145
- length: 100,
146
- "auto-generate": true,
147
- "auto-generate-type": "guid"
148
- }
149
- },
150
- {
151
- xh: 2,
152
- asid: "94C24D4B534A43A893ADDD78021AC393",
153
- astype: 0,
154
- tname: "dog_room_type_table",
155
- attrid: "41CCD121BD6A4356A95CC24968F86D75",
156
- attrname: "房型名称",
157
- attrtype: 0,
158
- info: "eyJpbnB1dCI6InRleHQiLCJkYXRhVHlwZSI6InN0cmluZyIsImxlbmd0aCI6MTAwLCJtdXN0Ijp0cnVlfQ==",
159
- info_base64: 1,
160
- createtime: "2025-11-14 16:11:23",
161
- attrvalue: "12",
162
- serialnum: 1,
163
- children: [],
164
- json: {
165
- input: "text",
166
- dataType: "string",
167
- length: 100,
168
- must: true
169
- }
170
- },
171
- {
172
- xh: 3,
173
- asid: "94C24D4B534A43A893ADDD78021AC393",
174
- astype: 0,
175
- tname: "dog_room_type_table",
176
- attrid: "40E6CE0B4C9647FF9786AE8E1B230F94",
177
- attrname: "房型价格",
178
- attrtype: 0,
179
- info: '{"input":"text","dataType":"string","length":20,"must":true}',
180
- info_base64: 0,
181
- createtime: "2025-11-14 16:11:23",
182
- attrvalue: "22",
183
- serialnum: 2,
184
- children: [],
185
- json: {
186
- input: "text",
187
- dataType: "string",
188
- length: 20,
189
- must: true
190
- }
191
- },
192
- {
193
- xh: 4,
194
- asid: "94C24D4B534A43A893ADDD78021AC393",
195
- astype: 0,
196
- tname: "dog_room_type_table",
197
- attrid: "846FC648A4924501A76DAB1F28F3A803",
198
- attrname: "房型说明",
199
- attrtype: 0,
200
- info: '{"input":"textarea","dataType":"string","length":500}',
201
- info_base64: 0,
202
- createtime: "2025-11-14 16:11:23",
203
- attrvalue: "3",
204
- serialnum: 3,
205
- children: [],
206
- json: {
207
- input: "textarea",
208
- dataType: "string",
209
- length: 500
210
- }
211
- },
212
- {
213
- xh: 5,
214
- asid: "94C24D4B534A43A893ADDD78021AC393",
215
- astype: 0,
216
- tname: "dog_room_type_table",
217
- attrid: "394EBAE299694BBA88C2300C5C0FA5F7",
218
- attrname: "房型图片",
219
- attrtype: 0,
220
- info: '{"input":"image","upload-accept":".png,.jpg,.jpeg","upload-max-count":"1","upload-size":"5","dataType":"string","length":1000,"instruction":"仅允许上传1个.png,.jpg,.jpeg文件","instruction-color":"#999999"}',
221
- info_base64: 0,
222
- createtime: "2025-11-14 16:11:23",
223
- attrvalue: "",
224
- serialnum: 4,
225
- children: [],
226
- json: {
227
- input: "image",
228
- "upload-accept": ".png,.jpg,.jpeg",
229
- "upload-max-count": "1",
230
- "upload-size": "5",
231
- dataType: "string",
232
- length: 1e3,
233
- instruction: "仅允许上传1个.png,.jpg,.jpeg文件",
234
- "instruction-color": "#999999"
235
- }
236
- },
237
- {
238
- xh: 6,
239
- asid: "94C24D4B534A43A893ADDD78021AC393",
240
- astype: 0,
241
- tname: "dog_room_type_table",
242
- attrid: "F8F7239DB205465585F5B55755769FF0",
243
- attrname: "总房间数",
244
- attrtype: 0,
245
- info: '{"input":"number","dataType":"int","default":"0"}',
246
- info_base64: 0,
247
- createtime: "2026-01-24 11:06:17",
248
- attrvalue: "0",
249
- serialnum: 5,
250
- children: [],
251
- json: {
252
- input: "number",
253
- dataType: "int",
254
- default: "0"
255
- }
256
- },
257
- {
258
- xh: 7,
259
- asid: "94C24D4B534A43A893ADDD78021AC393",
260
- astype: 0,
261
- tname: "dog_room_type_table",
262
- attrid: "A190218E6AF64176A71544FD4FEE74F6",
263
- attrname: "已住房间数",
264
- attrtype: 0,
265
- info: '{"input":"number","dataType":"int","default":"0"}',
266
- info_base64: 0,
267
- createtime: "2026-01-24 11:09:26",
268
- attrvalue: "0",
269
- serialnum: 6,
270
- children: [],
271
- json: {
272
- input: "number",
273
- dataType: "int",
274
- default: "0"
275
- }
276
- },
277
- {
278
- xh: 8,
279
- asid: "94C24D4B534A43A893ADDD78021AC393",
280
- astype: 0,
281
- tname: "dog_room_type_table",
282
- attrid: "1666323D69DC4AC8B28EC38B72BC24FF",
283
- attrname: "房间",
284
- attrtype: 1,
285
- info: '{"propertiesID":"2AA903FDA83245C9A933F99BA31FD739"}',
286
- info_base64: 0,
287
- createtime: "2026-01-26 10:09:33",
288
- attrvalue: "dog_room_type_table,1666323D69DC4AC8B28EC38B72BC24FF,dog_room_table",
289
- serialnum: 7,
290
- children: [
291
- [
292
- {
293
- xh: 1,
294
- asid: "2AA903FDA83245C9A933F99BA31FD739",
295
- astype: 0,
296
- tname: "dog_room_table",
297
- attrid: "3C8FDCA9AD3E46F58006FA0DFE6B7612",
298
- attrname: "唯一编号",
299
- attrtype: 0,
300
- info: '{"input":"text","dataType":"string","length":100,"auto-generate":true,"auto-generate-type":"guid"}',
301
- info_base64: 0,
302
- createtime: "2026-01-26 10:03:45",
303
- attrvalue: "",
304
- serialnum: 0,
305
- children: [],
306
- json: {
307
- input: "text",
308
- dataType: "string",
309
- length: 100,
310
- "auto-generate": true,
311
- "auto-generate-type": "guid"
312
- }
313
- },
314
- {
315
- xh: 2,
316
- asid: "2AA903FDA83245C9A933F99BA31FD739",
317
- astype: 0,
318
- tname: "dog_room_table",
319
- attrid: "902B5AD407D34B9E8F267FABBE244B15",
320
- attrname: "房间编号",
321
- attrtype: 0,
322
- info: '{"input":"text","dataType":"string","length":100,"must":true}',
323
- info_base64: 0,
324
- createtime: "2025-11-14 16:18:24",
325
- attrvalue: "",
326
- serialnum: 1,
327
- children: [],
328
- json: {
329
- input: "text",
330
- dataType: "string",
331
- length: 100,
332
- must: true
333
- }
334
- },
335
- {
336
- xh: 3,
337
- asid: "2AA903FDA83245C9A933F99BA31FD739",
338
- astype: 0,
339
- tname: "dog_room_table",
340
- attrid: "276B08A817F540A3B5B56FBB5016E1D2",
341
- attrname: "房间名称",
342
- attrtype: 0,
343
- info: '{"input":"text","dataType":"string","length":100,"must":true}',
344
- info_base64: 0,
345
- createtime: "2026-01-24 11:53:53",
346
- attrvalue: "",
347
- serialnum: 2,
348
- children: [],
349
- json: {
350
- input: "text",
351
- dataType: "string",
352
- length: 100,
353
- must: true
354
- }
355
- },
356
- {
357
- xh: 4,
358
- asid: "2AA903FDA83245C9A933F99BA31FD739",
359
- astype: 0,
360
- tname: "dog_room_table",
361
- attrid: "BBB307871C054A1AAC8B39526B62B4D0",
362
- attrname: "关联房型编号",
363
- attrtype: 0,
364
- info: '{"input":"text","dataType":"string","length":100}',
365
- info_base64: 0,
366
- createtime: "2025-11-14 16:18:24",
367
- attrvalue: "",
368
- serialnum: 3,
369
- children: [],
370
- json: {
371
- input: "text",
372
- dataType: "string",
373
- length: 100
374
- }
375
- }
376
- ]
377
- ],
378
- json: {
379
- propertiesID: "2AA903FDA83245C9A933F99BA31FD739"
380
- }
37
+ label_list: []
381
38
  }
382
39
  ];
383
40
  export {
384
41
  attrList,
385
- baseAttrList,
386
- testList
42
+ baseAttrList
387
43
  };
@@ -1,7 +1,7 @@
1
1
  import queryString from "query-string";
2
2
  import request, { domainSetting } from "./request";
3
3
  import { TOKEN, encryptParamStrings } from "../utils/enum";
4
- import { HmacSHA512 } from "szld-libs";
4
+ import { HmacSHA512 } from "../main";
5
5
  const commonRequest = async (InterfaceType, data) => {
6
6
  return request.post("", data, {
7
7
  params: {
@@ -34,7 +34,6 @@ const commonRequestActionUrl = async (data) => {
34
34
  });
35
35
  };
36
36
  const uploadAction = () => {
37
- var _a;
38
37
  const SessionID = sessionStorage.getItem(TOKEN);
39
38
  const params = {
40
39
  ...domainSetting.baseParams,
@@ -50,12 +49,11 @@ const uploadAction = () => {
50
49
  obj[key] = params[key] || "";
51
50
  });
52
51
  const encryptParams = queryString.stringify(obj, { sort: false });
53
- const sha = new HmacSHA512((_a = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a.Salt);
52
+ const sha = new HmacSHA512("HnSzldjt#2557013#");
54
53
  params["TokenId"] = sha.encrypt(encryptParams);
55
54
  return domainSetting.baseUrl + "?" + queryString.stringify(params);
56
55
  };
57
56
  const uploadFormAction = () => {
58
- var _a;
59
57
  const SessionID = sessionStorage.getItem(TOKEN);
60
58
  const params = {
61
59
  ...domainSetting.baseParams,
@@ -71,7 +69,7 @@ const uploadFormAction = () => {
71
69
  obj[key] = params[key] || "";
72
70
  });
73
71
  const encryptParams = queryString.stringify(obj, { sort: false });
74
- const sha = new HmacSHA512((_a = window == null ? void 0 : window.CONFIG) == null ? void 0 : _a.Salt);
72
+ const sha = new HmacSHA512("HnSzldjt#2557013#");
75
73
  params["TokenId"] = sha.encrypt(encryptParams);
76
74
  return domainSetting.baseUrl + "?" + queryString.stringify(params);
77
75
  };
@@ -15,8 +15,8 @@ const domainSetting = {
15
15
  if (env === "test" || env === "dev") {
16
16
  domainSetting.baseUrl = "/ucc";
17
17
  domainSetting.baseParams = {
18
- AppID: "KF_SZLD_YLFWLR",
19
- Password: "KF_SZLD_YLFWLR2557013"
18
+ AppID: "KF_SZLD_DDGLXT",
19
+ Password: "KF_SZLD_DDGLXT2557013"
20
20
  };
21
21
  }
22
22
  if (env === "dev") {
@@ -10,7 +10,10 @@ export declare function isBase64(str: string): boolean;
10
10
  * @param isListToObj 是否将列表转换为提交数据格式对象,默认false
11
11
  * @returns
12
12
  */
13
- export declare const handleSubmitForm: (originalData: any, allValues: any, isListToObj?: boolean) => {
13
+ export declare const handleSubmitForm: (originalData: {
14
+ attr_list: any[];
15
+ isMobile?: boolean;
16
+ }, allValues: any, isListToObj?: boolean) => {
14
17
  updatedData: any;
15
18
  uploadedFiles: any[];
16
19
  };
@@ -29,6 +29,7 @@ function isBase64(str) {
29
29
  }
30
30
  const handleSubmitForm = (originalData, allValues, isListToObj) => {
31
31
  let updatedData = _.cloneDeep(originalData);
32
+ const { isMobile = false } = originalData;
32
33
  let uploadedFiles = [];
33
34
  const processAttrList = (attrList) => {
34
35
  try {
@@ -42,7 +43,7 @@ const handleSubmitForm = (originalData, allValues, isListToObj) => {
42
43
  attrItem.attrvalue = "";
43
44
  continue;
44
45
  }
45
- handleDealValue(attrItem, formValue);
46
+ handleDealValue(attrItem, formValue, isMobile);
46
47
  }
47
48
  attrList.forEach((item) => {
48
49
  if (item.children && Array.isArray(item.children) && item.children.length > 0 && !Array.isArray(item.children[0])) {
@@ -59,7 +60,7 @@ const handleSubmitForm = (originalData, allValues, isListToObj) => {
59
60
  } catch (error) {
60
61
  }
61
62
  };
62
- const handleDealValue = (attrItem, formValue) => {
63
+ const handleDealValue = (attrItem, formValue, isMobile2) => {
63
64
  var _a, _b, _c, _d;
64
65
  const inputType = (_a = attrItem.json) == null ? void 0 : _a.input;
65
66
  const format = (_b = attrItem.json) == null ? void 0 : _b["format"];
@@ -91,17 +92,33 @@ const handleSubmitForm = (originalData, allValues, isListToObj) => {
91
92
  }
92
93
  break;
93
94
  case "range-picker":
94
- if (Array.isArray(formValue) && formValue.length > 0) {
95
- attrItem.attrvalue = formValue.join("~");
95
+ if (isMobile2) {
96
+ if (Array.isArray(formValue) && formValue.length > 0) {
97
+ attrItem.attrvalue = formValue == null ? void 0 : formValue.map((v) => dayjs(v).format(format || "YYYY-MM-DD")).join("~");
98
+ } else {
99
+ attrItem.attrvalue = "";
100
+ }
96
101
  } else {
97
- attrItem.attrvalue = "";
102
+ if (Array.isArray(formValue) && formValue.length > 0) {
103
+ attrItem.attrvalue = formValue.join("~");
104
+ } else {
105
+ attrItem.attrvalue = "";
106
+ }
98
107
  }
99
108
  break;
100
109
  case "multiple-date-picker":
101
- if (Array.isArray(formValue) && formValue.length > 0) {
102
- attrItem.attrvalue = formValue.join(",");
110
+ if (isMobile2) {
111
+ if (Array.isArray(formValue) && formValue.length > 0) {
112
+ attrItem.attrvalue = formValue == null ? void 0 : formValue.map((v) => dayjs(v).format(format || "YYYY-MM-DD")).join(",");
113
+ } else {
114
+ attrItem.attrvalue = formValue;
115
+ }
103
116
  } else {
104
- attrItem.attrvalue = formValue;
117
+ if (Array.isArray(formValue) && formValue.length > 0) {
118
+ attrItem.attrvalue = formValue.join(",");
119
+ } else {
120
+ attrItem.attrvalue = formValue;
121
+ }
105
122
  }
106
123
  break;
107
124
  case "checkbox":
@@ -18,6 +18,7 @@ export interface IformConfigItem {
18
18
  }
19
19
 
20
20
  export interface Ijson {
21
+ 'action-url-extra-params'?: { [key: string]: any }; // 弹窗选择对应多个表单字段时,额外的参数
21
22
  'disable-date-goover'?: boolean; // 禁用日期选择器超出当前日期
22
23
  'default-prompt'?: string; // 提示信息
23
24
  'regexp-message'?: string; // 正则表达式提示信息
@@ -91,6 +92,7 @@ export type InputType =
91
92
  | 'radio'
92
93
  | 'checkbox'
93
94
  | 'cascader'
95
+ | 'mult-field-modal-select' // 弹窗选择对应多个表单字段
94
96
  | string;
95
97
 
96
98
  // 定义文件上传值类型
@@ -30,7 +30,8 @@ const DynamicForm = react.forwardRef((props, ref) => {
30
30
  hideAttrList = [],
31
31
  formShowType = "form",
32
32
  headerWidth,
33
- formListItemWidth
33
+ formListItemWidth,
34
+ formListItemName
34
35
  } = props;
35
36
  const delFileListRef = react.useRef([]);
36
37
  const updateDelFileList = (file) => {
@@ -58,7 +59,7 @@ const DynamicForm = react.forwardRef((props, ref) => {
58
59
  return delFileListRef.current;
59
60
  }
60
61
  }));
61
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Form.List, { name: "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "custom-form-list", children: [
62
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: formShowType === "table" ? /* @__PURE__ */ jsxRuntime.jsx(antd.Form.List, { name: formListItemName || "customFormList", initialValue: [{}], children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntime.jsxs("div", { className: "custom-form-list", children: [
62
63
  /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { align: "center", children: [
63
64
  /* @__PURE__ */ jsxRuntime.jsx(antd.Flex, { className: "custom-form-list-header", align: "center", children: formConfig == null ? void 0 : formConfig.map((child, index) => {
64
65
  return /* @__PURE__ */ jsxRuntime.jsxs(antd.Flex, { style: { width: (headerWidth == null ? void 0 : headerWidth[index]) || defaultWidth }, align: "center", children: [
@@ -139,7 +139,7 @@ function SelectModel(props) {
139
139
  /* @__PURE__ */ jsxRuntime.jsx(
140
140
  antd.Select,
141
141
  {
142
- placeholder: (item == null ? void 0 : item["message"]) || "请选择",
142
+ placeholder: (item == null ? void 0 : item["default-prompt"]) || "请选择",
143
143
  onClick: openModal,
144
144
  value,
145
145
  open: false,
@@ -0,0 +1,27 @@
1
+ import { FormInstance } from 'antd';
2
+ import React from 'react';
3
+ import { AxiosResponse } from 'axios';
4
+ import { Ijson } from '../index.d';
5
+ interface SelectModelProps {
6
+ item: Ijson;
7
+ onSure: (value: {
8
+ [key: string]: any;
9
+ }) => void;
10
+ value: string;
11
+ disabled: boolean;
12
+ style?: React.CSSProperties;
13
+ commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
14
+ commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
15
+ CustomModalComponent?: React.FC<ICustomModal>;
16
+ attrid: string;
17
+ form: FormInstance;
18
+ }
19
+ declare function SelectModel(props: SelectModelProps): import("react/jsx-runtime").JSX.Element;
20
+ /**
21
+ *
22
+ * @param selectedRows 选中的行数据
23
+ * @param attributeEnrollFormat 配置信息
24
+ * @returns 构建后的字符串
25
+ */
26
+ export declare function buildValueFromSelectedRows(selectedRows: any[], attributeEnrollFormat: Ijson): Promise<any>;
27
+ export default SelectModel;