szld-libs 0.2.98 → 0.2.99

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/es/mock/index.js CHANGED
@@ -1,387 +1,82 @@
1
- const baseAttrList = [
1
+ const baseAttrList = [];
2
+ const attrList = [
2
3
  {
3
4
  xh: 1,
4
- asid: "2C648B554C994DED994D6049BA8E7488",
5
+ asid: "FB5D3B940E544EA898A6983A31FD1504",
5
6
  astype: 0,
6
- tname: "fcctest",
7
- attrid: "987C9E76D2604B2587A259E193E0E4D4",
8
- attrname: "输入框",
7
+ tname: "ygzh_table",
8
+ attrid: "02FAE63A990E4E9D87609D3DA764B10C",
9
+ attrname: "唯一编号",
9
10
  attrtype: 0,
10
- info: '{"input":"text","dataType":"string","length":100}',
11
+ info: '{"input":"text","dataType":"string","length":100,"auto-generate":true,"auto-generate-type":"guid"}',
11
12
  info_base64: 0,
12
- createtime: "2026-01-25 14:02:34",
13
+ createtime: "2026-01-26 10:23:31",
13
14
  attrvalue: "",
14
- serialnum: 1,
15
- children: [],
16
- json: {
17
- input: "text",
18
- dataType: "string",
19
- length: 100
20
- }
15
+ serialnum: 0,
16
+ children: []
21
17
  },
22
18
  {
23
19
  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
- ];
64
- const attrList = [
65
- {
66
- xh: 1,
67
- asid: "2C648B554C994DED994D6049BA8E7488",
20
+ asid: "FB5D3B940E544EA898A6983A31FD1504",
68
21
  astype: 0,
69
- tname: "fcctest",
70
- attrid: "987C9E76D2604B2587A259E193E0E4D4",
71
- attrname: "输入框",
22
+ tname: "ygzh_table",
23
+ attrid: "3A8EC89103A740F192CB5FD582CA5678",
24
+ attrname: "账号",
72
25
  attrtype: 0,
73
26
  info: '{"input":"text","dataType":"string","length":100}',
74
27
  info_base64: 0,
75
- createtime: "2026-01-25 14:02:34",
28
+ createtime: "2026-01-26 10:23:31",
76
29
  attrvalue: "",
77
30
  serialnum: 1,
78
- children: [],
79
- json: {
80
- input: "text",
81
- dataType: "string",
82
- length: 100
83
- }
84
- },
85
- {
86
- xh: 2,
87
- asid: "2C648B554C994DED994D6049BA8E7488",
88
- astype: 0,
89
- tname: "fcctest",
90
- attrid: "28F623FA152D44B89BA2518D52AA172B",
91
- attrname: "数字输入框",
92
- attrtype: 0,
93
- info: '{"input":"number","dataType":"int"}',
94
- info_base64: 0,
95
- createtime: "2026-01-25 14:03:01",
96
- attrvalue: "",
97
- serialnum: 2,
98
- children: [],
99
- json: {
100
- input: "number",
101
- dataType: "int"
102
- }
31
+ children: []
103
32
  },
104
33
  {
105
34
  xh: 3,
106
- asid: "2C648B554C994DED994D6049BA8E7488",
35
+ asid: "FB5D3B940E544EA898A6983A31FD1504",
107
36
  astype: 0,
108
- tname: "fcctest",
109
- attrid: "309919F2EFCD4625B4428D4B12B5169F",
110
- attrname: "日期段选择",
37
+ tname: "ygzh_table",
38
+ attrid: "7795221133E0479D956D254A71858B39",
39
+ attrname: "密码",
111
40
  attrtype: 0,
112
- info: '{"input":"range-picker","range-picker-save":"range","dataType":"string","length":100,"disable-date-goover":true}',
41
+ info: '{"input":"text","dataType":"string","length":100}',
113
42
  info_base64: 0,
114
- createtime: "2026-01-25 14:05:35",
43
+ createtime: "2026-01-26 10:23:31",
115
44
  attrvalue: "",
116
- 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
45
  serialnum: 2,
184
- children: [],
185
- json: {
186
- input: "text",
187
- dataType: "string",
188
- length: 20,
189
- must: true
190
- }
46
+ children: []
191
47
  },
192
48
  {
193
49
  xh: 4,
194
- asid: "94C24D4B534A43A893ADDD78021AC393",
50
+ asid: "FB5D3B940E544EA898A6983A31FD1504",
195
51
  astype: 0,
196
- tname: "dog_room_type_table",
197
- attrid: "846FC648A4924501A76DAB1F28F3A803",
198
- attrname: "房型说明",
52
+ tname: "ygzh_table",
53
+ attrid: "7039599603174845B3CD03CA351EEB62",
54
+ attrname: "关联人员编号",
199
55
  attrtype: 0,
200
- info: '{"input":"textarea","dataType":"string","length":500}',
56
+ info: '{\r\n "input": "mul-field-modal-select",\r\n "inputType": "url",\r\n "dataType": "string",\r\n "length": 100,\r\n "modal-caption": "关联人员",\r\n "modal-width": 800,\r\n "modal-height": 500,\r\n "modal-field-list": {\r\n "CAB51378248F4097BE2CF327F78E408B": "姓名",\r\n "F7CB899C4AE140948D2D0E161F9B1F50": "性别",\r\n "FF3E62E516124D8296D3A0BF6A7160EC": "出生年月日",\r\n "E84B71814D2C4921943B62243903F9CA": "职位"\r\n },\r\n "action-url": "http://113.219.243.107:19003/ucc?AppID=KF_SZLD_YLFWLR&Password=KF_SZLD_YLFWLR2557013&return=true&PageName=YLFWLRInstanceData&Controlname=List",\r\n "action-url-extra-params": {\r\n "asid": "3D6CD87DC9EC4CCB9FA1149A1F04E93A"\r\n },\r\n "key-field": {\r\n "3DD9CF67A3E34A62A9857CD1DB9CD782": {\r\n "list": ["CAB51378248F4097BE2CF327F78E408B"],\r\n "delimiter": "-"\r\n },\r\n "7039599603174845B3CD03CA351EEB62": {\r\n "list": ["9416A2FA296846E199738345A393E264"],\r\n "delimiter": "-"\r\n }\r\n }\r\n}',
201
57
  info_base64: 0,
202
- createtime: "2025-11-14 16:11:23",
203
- attrvalue: "3",
58
+ createtime: "2026-01-26 10:27:10",
59
+ attrvalue: "",
204
60
  serialnum: 3,
205
- children: [],
206
- json: {
207
- input: "textarea",
208
- dataType: "string",
209
- length: 500
210
- }
61
+ children: []
211
62
  },
212
63
  {
213
64
  xh: 5,
214
- asid: "94C24D4B534A43A893ADDD78021AC393",
65
+ asid: "FB5D3B940E544EA898A6983A31FD1504",
215
66
  astype: 0,
216
- tname: "dog_room_type_table",
217
- attrid: "394EBAE299694BBA88C2300C5C0FA5F7",
218
- attrname: "房型图片",
67
+ tname: "ygzh_table",
68
+ attrid: "3DD9CF67A3E34A62A9857CD1DB9CD782",
69
+ attrname: "关联人员姓名",
219
70
  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"}',
71
+ info: '{\r\n "input": "mul-field-modal-select",\r\n "inputType": "url",\r\n "dataType": "string",\r\n "length": 100,\r\n "modal-caption": "关联人员",\r\n "modal-width": 800,\r\n "modal-height": 500,\r\n "modal-field-list": {\r\n "CAB51378248F4097BE2CF327F78E408B": "姓名",\r\n "F7CB899C4AE140948D2D0E161F9B1F50": "性别",\r\n "FF3E62E516124D8296D3A0BF6A7160EC": "出生年月日",\r\n "E84B71814D2C4921943B62243903F9CA": "职位"\r\n },\r\n "action-url": "http://113.219.243.107:19003/ucc?AppID=KF_SZLD_YLFWLR&Password=KF_SZLD_YLFWLR2557013&return=true&PageName=YLFWLRInstanceData&Controlname=List",\r\n "action-url-extra-params": {\r\n "asid": "3D6CD87DC9EC4CCB9FA1149A1F04E93A"\r\n },\r\n "key-field": {\r\n "3DD9CF67A3E34A62A9857CD1DB9CD782": {\r\n "list": ["CAB51378248F4097BE2CF327F78E408B"],\r\n "delimiter": "-"\r\n },\r\n "7039599603174845B3CD03CA351EEB62": {\r\n "list": ["9416A2FA296846E199738345A393E264"],\r\n "delimiter": "-"\r\n }\r\n }\r\n}',
221
72
  info_base64: 0,
222
- createtime: "2025-11-14 16:11:23",
73
+ createtime: "2026-01-26 10:27:29",
223
74
  attrvalue: "",
224
75
  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
- }
76
+ children: []
381
77
  }
382
78
  ];
383
79
  export {
384
80
  attrList,
385
- baseAttrList,
386
- testList
81
+ baseAttrList
387
82
  };
@@ -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
  // 定义文件上传值类型
@@ -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;