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