szld-libs 0.3.31 → 0.3.36
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/szld-components.es.js +13903 -13972
- package/dist/szld-components.umd.js +53 -53
- package/es/components/DynamicForm/func.d.ts +1 -5
- package/es/components/DynamicForm/func.js +5 -0
- package/es/components/DynamicForm/index.js +4 -2
- package/es/components/DynamicForm/myCheckbox/index.d.ts +1 -1
- package/es/components/DynamicForm/myCheckbox/index.js +17 -70
- package/es/components/DynamicForm/myRadio/index.d.ts +1 -1
- package/es/components/DynamicForm/myRadio/index.js +17 -73
- package/es/components/DynamicForm/mySelect/index.d.ts +2 -1
- package/es/components/DynamicForm/mySelect/index.js +5 -3
- package/es/components/DynamicForm/useDynamicForm.d.ts +1 -0
- package/es/components/DynamicForm/useDynamicForm.js +16 -13
- package/es/components/DynamicFormMobile/func.d.ts +0 -5
- package/es/components/DynamicFormMobile/mySelect/index.js +1 -1
- package/es/hooks/useUniversalTable.js +1 -1
- package/es/index.js +19 -12
- package/es/mock/index.d.ts +14 -0
- package/es/mock/index.js +374 -70
- package/es/utils/method.d.ts +2 -1
- package/es/utils/method.js +4 -2
- package/lib/components/DynamicForm/func.d.ts +1 -5
- package/lib/components/DynamicForm/func.js +5 -0
- package/lib/components/DynamicForm/index.js +4 -2
- package/lib/components/DynamicForm/myCheckbox/index.d.ts +1 -1
- package/lib/components/DynamicForm/myCheckbox/index.js +16 -69
- package/lib/components/DynamicForm/myRadio/index.d.ts +1 -1
- package/lib/components/DynamicForm/myRadio/index.js +16 -72
- package/lib/components/DynamicForm/mySelect/index.d.ts +2 -1
- package/lib/components/DynamicForm/mySelect/index.js +5 -3
- package/lib/components/DynamicForm/useDynamicForm.d.ts +1 -0
- package/lib/components/DynamicForm/useDynamicForm.js +15 -12
- package/lib/components/DynamicFormMobile/func.d.ts +0 -5
- package/lib/components/DynamicFormMobile/mySelect/index.js +1 -1
- package/lib/hooks/useUniversalTable.js +1 -1
- package/lib/index.js +16 -9
- package/lib/mock/index.d.ts +14 -0
- package/lib/mock/index.js +373 -69
- package/lib/utils/method.d.ts +2 -1
- package/lib/utils/method.js +4 -2
- package/package.json +1 -1
package/lib/mock/index.js
CHANGED
|
@@ -4,113 +4,417 @@ const baseAttrList = [];
|
|
|
4
4
|
const attrList = [
|
|
5
5
|
{
|
|
6
6
|
xh: 1,
|
|
7
|
-
asid: "
|
|
7
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
8
8
|
astype: 0,
|
|
9
|
-
tname: "
|
|
10
|
-
attrid: "
|
|
11
|
-
attrname: "
|
|
9
|
+
tname: "gg_table",
|
|
10
|
+
attrid: "BB5FFD9EC1034781BC3E89FEFD78879C",
|
|
11
|
+
attrname: "姓名",
|
|
12
12
|
attrtype: 0,
|
|
13
|
-
info: '{"input":"
|
|
13
|
+
info: '{"input":"text","dataType":"string","length":20,"must":true,"regexp":"/^[A-Za-z]+$/","regexp-message":"请输入英文字母"}',
|
|
14
14
|
info_base64: 0,
|
|
15
|
-
createtime: "2026-
|
|
15
|
+
createtime: "2026-01-05 21:25:49",
|
|
16
16
|
attrvalue: "",
|
|
17
17
|
serialnum: 1,
|
|
18
|
-
children: []
|
|
19
|
-
json: {
|
|
20
|
-
input: "multiple-date-picker",
|
|
21
|
-
"range-picker-save": "single",
|
|
22
|
-
dataType: "string",
|
|
23
|
-
length: 1e3,
|
|
24
|
-
"input-width": 240,
|
|
25
|
-
must: true
|
|
26
|
-
}
|
|
18
|
+
children: []
|
|
27
19
|
},
|
|
28
20
|
{
|
|
29
21
|
xh: 2,
|
|
30
|
-
asid: "
|
|
22
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
31
23
|
astype: 0,
|
|
32
|
-
tname: "
|
|
33
|
-
attrid: "
|
|
34
|
-
attrname: "
|
|
24
|
+
tname: "gg_table",
|
|
25
|
+
attrid: "799FBD4386A04D8198FC7F33B120F68E",
|
|
26
|
+
attrname: "品种",
|
|
35
27
|
attrtype: 0,
|
|
36
|
-
info: '{"input":"text","dataType":"string","length":
|
|
28
|
+
info: '{"input":"text","dataType":"string","length":20}',
|
|
37
29
|
info_base64: 0,
|
|
38
|
-
createtime: "2026-
|
|
30
|
+
createtime: "2026-01-05 21:26:01",
|
|
39
31
|
attrvalue: "",
|
|
40
32
|
serialnum: 2,
|
|
41
|
-
children: []
|
|
42
|
-
json: {
|
|
43
|
-
input: "text",
|
|
44
|
-
dataType: "string",
|
|
45
|
-
length: 10,
|
|
46
|
-
"input-width": 140,
|
|
47
|
-
must: true
|
|
48
|
-
}
|
|
33
|
+
children: []
|
|
49
34
|
},
|
|
50
35
|
{
|
|
51
36
|
xh: 3,
|
|
52
|
-
asid: "
|
|
37
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
53
38
|
astype: 0,
|
|
54
|
-
tname: "
|
|
55
|
-
attrid: "
|
|
56
|
-
attrname: "
|
|
39
|
+
tname: "gg_table",
|
|
40
|
+
attrid: "B1B10494F9A949CCBD26567A597E8DAE",
|
|
41
|
+
attrname: "重量",
|
|
57
42
|
attrtype: 0,
|
|
58
|
-
info: '{
|
|
43
|
+
info: '{"input":"text","dataType":"string","length":3,"combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.7,"must":true}',
|
|
59
44
|
info_base64: 0,
|
|
60
|
-
createtime: "2026-
|
|
45
|
+
createtime: "2026-01-05 21:26:13",
|
|
61
46
|
attrvalue: "",
|
|
62
47
|
serialnum: 3,
|
|
63
|
-
children: []
|
|
64
|
-
json: {
|
|
65
|
-
input: "second-picker",
|
|
66
|
-
dataType: "string",
|
|
67
|
-
length: 200,
|
|
68
|
-
"input-width": 240,
|
|
69
|
-
format: "HH:mm"
|
|
70
|
-
}
|
|
48
|
+
children: []
|
|
71
49
|
},
|
|
72
50
|
{
|
|
73
51
|
xh: 4,
|
|
74
|
-
asid: "
|
|
52
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
75
53
|
astype: 0,
|
|
76
|
-
tname: "
|
|
77
|
-
attrid: "
|
|
78
|
-
attrname: "
|
|
54
|
+
tname: "gg_table",
|
|
55
|
+
attrid: "A3CB9307DED6493382C78E065F3C6A99",
|
|
56
|
+
attrname: "单位",
|
|
79
57
|
attrtype: 0,
|
|
80
|
-
info: '{"input":"
|
|
58
|
+
info: '{"input":"select","dataType":"string","length":5,"inputType":"local","data":["001","002"],"default":"001","combination":true,"combination-id":1,"combination-name":"重量","combination-width-ratio":0.3,"must":true}',
|
|
81
59
|
info_base64: 0,
|
|
82
|
-
createtime: "2026-
|
|
60
|
+
createtime: "2026-01-05 21:27:16",
|
|
83
61
|
attrvalue: "",
|
|
84
62
|
serialnum: 4,
|
|
85
|
-
children: []
|
|
86
|
-
json: {
|
|
87
|
-
input: "text",
|
|
88
|
-
dataType: "string",
|
|
89
|
-
length: 500,
|
|
90
|
-
"input-width": 240
|
|
91
|
-
}
|
|
63
|
+
children: []
|
|
92
64
|
},
|
|
93
65
|
{
|
|
94
66
|
xh: 5,
|
|
95
|
-
asid: "
|
|
67
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
96
68
|
astype: 0,
|
|
97
|
-
tname: "
|
|
98
|
-
attrid: "
|
|
99
|
-
attrname: "
|
|
69
|
+
tname: "gg_table",
|
|
70
|
+
attrid: "F0999F269D3C4425A59A883442055C5C",
|
|
71
|
+
attrname: "性别",
|
|
100
72
|
attrtype: 0,
|
|
101
|
-
info: '{"input":"
|
|
73
|
+
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["公","母"]}',
|
|
102
74
|
info_base64: 0,
|
|
103
|
-
createtime: "2026-
|
|
75
|
+
createtime: "2026-01-05 21:28:11",
|
|
104
76
|
attrvalue: "",
|
|
105
77
|
serialnum: 5,
|
|
106
|
-
children: []
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
78
|
+
children: []
|
|
79
|
+
},
|
|
80
|
+
{
|
|
81
|
+
xh: 6,
|
|
82
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
83
|
+
astype: 0,
|
|
84
|
+
tname: "gg_table",
|
|
85
|
+
attrid: "4986EE62B15E4C0197A1E073E098CCAF",
|
|
86
|
+
attrname: "是否绝育",
|
|
87
|
+
attrtype: 0,
|
|
88
|
+
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["否","是"],"must":true}',
|
|
89
|
+
info_base64: 0,
|
|
90
|
+
createtime: "2026-01-05 21:28:34",
|
|
91
|
+
attrvalue: "",
|
|
92
|
+
serialnum: 6,
|
|
93
|
+
children: []
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
xh: 7,
|
|
97
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
98
|
+
astype: 0,
|
|
99
|
+
tname: "gg_table",
|
|
100
|
+
attrid: "8561D992C88645EE9EA184800BBE0E1D",
|
|
101
|
+
attrname: "是否对其他狗有攻击性",
|
|
102
|
+
attrtype: 0,
|
|
103
|
+
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["否","是","视情况而定","不确定"],"must":true}',
|
|
104
|
+
info_base64: 0,
|
|
105
|
+
createtime: "2026-01-05 21:29:07",
|
|
106
|
+
attrvalue: "",
|
|
107
|
+
serialnum: 7,
|
|
108
|
+
children: []
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
xh: 8,
|
|
112
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
113
|
+
astype: 0,
|
|
114
|
+
tname: "gg_table",
|
|
115
|
+
attrid: "93366648DF5146E98AE3D58DE5D6BD73",
|
|
116
|
+
attrname: "是否对人有攻击性",
|
|
117
|
+
attrtype: 0,
|
|
118
|
+
info: '{"input":"radio","dataType":"string","length":100,"inputType":"local","data":["否","是","视情况而定","不确定"],"must":true}',
|
|
119
|
+
info_base64: 0,
|
|
120
|
+
createtime: "2026-01-05 21:29:24",
|
|
121
|
+
attrvalue: "",
|
|
122
|
+
serialnum: 8,
|
|
123
|
+
children: []
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
xh: 9,
|
|
127
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
128
|
+
astype: 0,
|
|
129
|
+
tname: "gg_table",
|
|
130
|
+
attrid: "6A63A6508C0E44D38AB68CB27EC332E8",
|
|
131
|
+
attrname: "狗狗照片",
|
|
132
|
+
attrtype: 0,
|
|
133
|
+
info: '{"input":"image","upload-accept":".png,.jpg,.jpeg","upload-max-count":"5","upload-size":"5","dataType":"string","length":4000}',
|
|
134
|
+
info_base64: 0,
|
|
135
|
+
createtime: "2026-01-05 21:29:46",
|
|
136
|
+
attrvalue: "",
|
|
137
|
+
serialnum: 9,
|
|
138
|
+
children: []
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
xh: 10,
|
|
142
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
143
|
+
astype: 0,
|
|
144
|
+
tname: "gg_table",
|
|
145
|
+
attrid: "6730DFF94989425F9ED90A4A77EE3C5B",
|
|
146
|
+
attrname: "疫苗证明",
|
|
147
|
+
attrtype: 0,
|
|
148
|
+
info: '{"input":"file","upload-accept":".png,jpeg,jpg,.pdf,.doc,.docx,.xls,.xlsx,.txt,.zip,.rar,.7z","upload-max-count":"5","upload-size":"10","dataType":"string","length":4000}',
|
|
149
|
+
info_base64: 0,
|
|
150
|
+
createtime: "2026-01-05 21:30:05",
|
|
151
|
+
attrvalue: "",
|
|
152
|
+
serialnum: 10,
|
|
153
|
+
children: []
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
xh: 11,
|
|
157
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
158
|
+
astype: 0,
|
|
159
|
+
tname: "gg_table",
|
|
160
|
+
attrid: "23A6082D509340BCA10ED419A95F9B7D",
|
|
161
|
+
attrname: "生日",
|
|
162
|
+
attrtype: 0,
|
|
163
|
+
info: '{"input":"date-picker","dataType":"date","instruction":"如不确定出生日期可选择大概日期","instruction-color":"#999999","must":true}',
|
|
164
|
+
info_base64: 0,
|
|
165
|
+
createtime: "2026-01-05 21:30:21",
|
|
166
|
+
attrvalue: "",
|
|
167
|
+
serialnum: 11,
|
|
168
|
+
children: []
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
xh: 12,
|
|
172
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
173
|
+
astype: 0,
|
|
174
|
+
tname: "gg_table",
|
|
175
|
+
attrid: "7A870062F2C94795ABA9923F300BE99A",
|
|
176
|
+
attrname: "备注",
|
|
177
|
+
attrtype: 0,
|
|
178
|
+
info: '{"input":"textarea","dataType":"string","length":500}',
|
|
179
|
+
info_base64: 0,
|
|
180
|
+
createtime: "2026-01-05 21:30:40",
|
|
181
|
+
attrvalue: "",
|
|
182
|
+
serialnum: 12,
|
|
183
|
+
children: []
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
xh: 13,
|
|
187
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
188
|
+
astype: 0,
|
|
189
|
+
tname: "gg_table",
|
|
190
|
+
attrid: "5A1C6C69500B42708F71B1A4CF4009C5",
|
|
191
|
+
attrname: "确认状态",
|
|
192
|
+
attrtype: 0,
|
|
193
|
+
info: '{"input":"select","dataType":"string","length":10,"inputType":"local","data":["未确认","已确认"],"default":"已确认"}',
|
|
194
|
+
info_base64: 0,
|
|
195
|
+
createtime: "2026-01-05 21:30:54",
|
|
196
|
+
attrvalue: "",
|
|
197
|
+
serialnum: 13,
|
|
198
|
+
children: []
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
xh: 14,
|
|
202
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
203
|
+
astype: 0,
|
|
204
|
+
tname: "gg_table",
|
|
205
|
+
attrid: "B5EA8BEBDABE4B508CD72F5921FD1C0F",
|
|
206
|
+
attrname: "关联账号",
|
|
207
|
+
attrtype: 0,
|
|
208
|
+
info: '{"input":"text","dataType":"string","length":100}',
|
|
209
|
+
info_base64: 0,
|
|
210
|
+
createtime: "2026-01-05 21:31:07",
|
|
211
|
+
attrvalue: "",
|
|
212
|
+
serialnum: 14,
|
|
213
|
+
children: []
|
|
214
|
+
},
|
|
215
|
+
{
|
|
216
|
+
xh: 15,
|
|
217
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
218
|
+
astype: 0,
|
|
219
|
+
tname: "gg_table",
|
|
220
|
+
attrid: "8BC4EEE820374EAA90B42756F6B1E4A5",
|
|
221
|
+
attrname: "主人姓",
|
|
222
|
+
attrtype: 0,
|
|
223
|
+
info: '{"input":"text","dataType":"string","length":100}',
|
|
224
|
+
info_base64: 0,
|
|
225
|
+
createtime: "2026-01-05 21:36:38",
|
|
226
|
+
attrvalue: "",
|
|
227
|
+
serialnum: 15,
|
|
228
|
+
children: []
|
|
229
|
+
},
|
|
230
|
+
{
|
|
231
|
+
xh: 16,
|
|
232
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
233
|
+
astype: 0,
|
|
234
|
+
tname: "gg_table",
|
|
235
|
+
attrid: "66A7EA71D61A4D0E86C8C44C7F788DD9",
|
|
236
|
+
attrname: "主人名",
|
|
237
|
+
attrtype: 0,
|
|
238
|
+
info: '{"input":"text","dataType":"string","length":100}',
|
|
239
|
+
info_base64: 0,
|
|
240
|
+
createtime: "2026-01-16 15:02:21",
|
|
241
|
+
attrvalue: "",
|
|
242
|
+
serialnum: 15,
|
|
243
|
+
children: []
|
|
244
|
+
},
|
|
245
|
+
{
|
|
246
|
+
xh: 17,
|
|
247
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
248
|
+
astype: 0,
|
|
249
|
+
tname: "gg_table",
|
|
250
|
+
attrid: "069E5167BD4E4BAF86B57EE19826DF0C",
|
|
251
|
+
attrname: "关联账号对应id",
|
|
252
|
+
attrtype: 0,
|
|
253
|
+
info: '{"input":"text","dataType":"string","length":32}',
|
|
254
|
+
info_base64: 0,
|
|
255
|
+
createtime: "2026-01-06 12:17:44",
|
|
256
|
+
attrvalue: "",
|
|
257
|
+
serialnum: 16,
|
|
258
|
+
children: []
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
xh: 18,
|
|
262
|
+
asid: "2EA2AABF953F4A3483ED854A0034BF92",
|
|
263
|
+
astype: 0,
|
|
264
|
+
tname: "gg_table",
|
|
265
|
+
attrid: "69008E895864440A9972137E5AC1C983",
|
|
266
|
+
attrname: "创建时间",
|
|
267
|
+
attrtype: 0,
|
|
268
|
+
info: '{"input":"date-picker","dataType":"date","auto-generate":true,"auto-generate-type":"currenttime"}',
|
|
269
|
+
info_base64: 0,
|
|
270
|
+
createtime: "2026-01-05 22:08:40",
|
|
271
|
+
attrvalue: "",
|
|
272
|
+
serialnum: 17,
|
|
273
|
+
children: []
|
|
274
|
+
}
|
|
275
|
+
];
|
|
276
|
+
const langConfig = [
|
|
277
|
+
{
|
|
278
|
+
xh: "1",
|
|
279
|
+
lanid: "8338DC5023354520A7E9E67C21E2DA3E",
|
|
280
|
+
sysid: "2",
|
|
281
|
+
sysname: "下拉框数据",
|
|
282
|
+
systype: "",
|
|
283
|
+
pageid: "00",
|
|
284
|
+
pageinfo: "狗狗网站/狗狗后台管理系统",
|
|
285
|
+
dataid: "001",
|
|
286
|
+
datainfo: "重量-单位",
|
|
287
|
+
dicid: "10002",
|
|
288
|
+
info: "English",
|
|
289
|
+
content: "pound"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
xh: "2",
|
|
293
|
+
lanid: "C83B74580A7F486B9D8FE858A4381D7B",
|
|
294
|
+
sysid: "2",
|
|
295
|
+
sysname: "下拉框数据",
|
|
296
|
+
systype: "",
|
|
297
|
+
pageid: "00",
|
|
298
|
+
pageinfo: "狗狗网站/狗狗后台管理系统",
|
|
299
|
+
dataid: "002",
|
|
300
|
+
datainfo: "重量-单位",
|
|
301
|
+
dicid: "10002",
|
|
302
|
+
info: "English",
|
|
303
|
+
content: "jin"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
xh: "3",
|
|
307
|
+
lanid: "9ABF026B60764D9FAD8142D5C68D9BC9",
|
|
308
|
+
sysid: "2",
|
|
309
|
+
sysname: "下拉框数据",
|
|
310
|
+
systype: "",
|
|
311
|
+
pageid: "00",
|
|
312
|
+
pageinfo: "狗狗网站/狗狗后台管理系统",
|
|
313
|
+
dataid: "003",
|
|
314
|
+
datainfo: "性别",
|
|
315
|
+
dicid: "10002",
|
|
316
|
+
info: "English",
|
|
317
|
+
content: "male"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
xh: "4",
|
|
321
|
+
lanid: "FB86A6C57CD341B3B1F8EF8410A1D488",
|
|
322
|
+
sysid: "2",
|
|
323
|
+
sysname: "下拉框数据",
|
|
324
|
+
systype: "",
|
|
325
|
+
pageid: "00",
|
|
326
|
+
pageinfo: "狗狗网站/狗狗后台管理系统",
|
|
327
|
+
dataid: "004",
|
|
328
|
+
datainfo: "性别",
|
|
329
|
+
dicid: "10002",
|
|
330
|
+
info: "English",
|
|
331
|
+
content: "female"
|
|
332
|
+
},
|
|
333
|
+
{
|
|
334
|
+
xh: "5",
|
|
335
|
+
lanid: "F2B144889AF14898B5AD3E8F3271D3A6",
|
|
336
|
+
sysid: "2",
|
|
337
|
+
sysname: "下拉框数据",
|
|
338
|
+
systype: "",
|
|
339
|
+
pageid: "00",
|
|
340
|
+
pageinfo: "狗狗网站/狗狗后台管理系统",
|
|
341
|
+
dataid: "005",
|
|
342
|
+
datainfo: "是否绝育",
|
|
343
|
+
dicid: "10002",
|
|
344
|
+
info: "English",
|
|
345
|
+
content: "yes"
|
|
346
|
+
},
|
|
347
|
+
{
|
|
348
|
+
xh: "6",
|
|
349
|
+
lanid: "D84DFE47C1D6468D95E5058C393DC6B3",
|
|
350
|
+
sysid: "2",
|
|
351
|
+
sysname: "下拉框数据",
|
|
352
|
+
systype: "",
|
|
353
|
+
pageid: "00",
|
|
354
|
+
pageinfo: "狗狗网站/狗狗后台管理系统",
|
|
355
|
+
dataid: "006",
|
|
356
|
+
datainfo: "是否绝育",
|
|
357
|
+
dicid: "10002",
|
|
358
|
+
info: "English",
|
|
359
|
+
content: "no"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
xh: "7",
|
|
363
|
+
lanid: "7DA23D28310B43B2B774552EFFCFDFC6",
|
|
364
|
+
sysid: "2",
|
|
365
|
+
sysname: "下拉框数据",
|
|
366
|
+
systype: "",
|
|
367
|
+
pageid: "00",
|
|
368
|
+
pageinfo: "狗狗网站/狗狗后台管理系统",
|
|
369
|
+
dataid: "007",
|
|
370
|
+
datainfo: "是否对其他狗有攻击性",
|
|
371
|
+
dicid: "10002",
|
|
372
|
+
info: "English",
|
|
373
|
+
content: "yes"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
xh: "8",
|
|
377
|
+
lanid: "BA3FB7CC2E954594B9F33CFFC68C1031",
|
|
378
|
+
sysid: "2",
|
|
379
|
+
sysname: "下拉框数据",
|
|
380
|
+
systype: "",
|
|
381
|
+
pageid: "5000000",
|
|
382
|
+
pageinfo: "狗狗网站-实例数据-套餐",
|
|
383
|
+
dataid: "5000001-1-1",
|
|
384
|
+
datainfo: "套餐-寄养-名称",
|
|
385
|
+
dicid: "10002",
|
|
386
|
+
info: "English",
|
|
387
|
+
content: "Boarding"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
xh: "9",
|
|
391
|
+
lanid: "21783AB49EDA455B84B5CE3B32130FA5",
|
|
392
|
+
sysid: "2",
|
|
393
|
+
sysname: "下拉框数据",
|
|
394
|
+
systype: "",
|
|
395
|
+
pageid: "5000000",
|
|
396
|
+
pageinfo: "狗狗网站-实例数据-套餐",
|
|
397
|
+
dataid: "5000001-1-2",
|
|
398
|
+
datainfo: "套餐-寄养-介绍",
|
|
399
|
+
dicid: "10002",
|
|
400
|
+
info: "English",
|
|
401
|
+
content: "At The Dog ParQ, our daycare service is designed to provide your dog with a day filled with socialization, fun, and plenty of exercise. For a flat rate of $25 per day, your dog can enjoy our extensive play areas and interact with other dogs in a safe, supervised environment. We also offer a 10-day p"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
xh: "10",
|
|
405
|
+
lanid: "345D84917C3B459CA48D49060FA1A00E",
|
|
406
|
+
sysid: "2",
|
|
407
|
+
sysname: "下拉框数据",
|
|
408
|
+
systype: "",
|
|
409
|
+
pageid: "5000000",
|
|
410
|
+
pageinfo: "狗狗网站-实例数据-套餐",
|
|
411
|
+
dataid: "5000001-1-3",
|
|
412
|
+
datainfo: "套餐-寄养/日托-价格规格",
|
|
413
|
+
dicid: "10002",
|
|
414
|
+
info: "English",
|
|
415
|
+
content: "/day"
|
|
113
416
|
}
|
|
114
417
|
];
|
|
115
418
|
exports.attrList = attrList;
|
|
116
419
|
exports.baseAttrList = baseAttrList;
|
|
420
|
+
exports.langConfig = langConfig;
|
package/lib/utils/method.d.ts
CHANGED
|
@@ -112,7 +112,7 @@ export declare const handleUrlOptions: (val: any, delimiter: string, list: any[]
|
|
|
112
112
|
* @param param0
|
|
113
113
|
* @returns
|
|
114
114
|
*/
|
|
115
|
-
export declare const handleSelectOptions: ({ commonRequestWidthParams, commonRequest, interfaceTypeDict, interfaceTypeSysDict, actionUrlKey, actionUrlExtraParams, item, }: {
|
|
115
|
+
export declare const handleSelectOptions: ({ commonRequestWidthParams, commonRequest, interfaceTypeDict, interfaceTypeSysDict, actionUrlKey, actionUrlExtraParams, item, langConfig, }: {
|
|
116
116
|
commonRequestWidthParams: (params: object, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
117
117
|
commonRequest: (InterfaceType: string, data?: any) => Promise<AxiosResponse<any, any>>;
|
|
118
118
|
interfaceTypeDict?: string | undefined;
|
|
@@ -120,6 +120,7 @@ export declare const handleSelectOptions: ({ commonRequestWidthParams, commonReq
|
|
|
120
120
|
actionUrlKey?: string | undefined;
|
|
121
121
|
actionUrlExtraParams?: object | undefined;
|
|
122
122
|
item: Ijson;
|
|
123
|
+
langConfig?: any[] | undefined;
|
|
123
124
|
}) => Promise<any[]>;
|
|
124
125
|
/**
|
|
125
126
|
* 单层详情数据对应到单个属性集
|
package/lib/utils/method.js
CHANGED
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const antd = require("antd");
|
|
4
4
|
const dayjs = require("dayjs");
|
|
5
5
|
const _ = require("lodash");
|
|
6
|
+
const func = require("../components/DynamicForm/func");
|
|
6
7
|
function getJson(jsonStr) {
|
|
7
8
|
try {
|
|
8
9
|
return JSON.parse(jsonStr);
|
|
@@ -450,7 +451,8 @@ const handleSelectOptions = async ({
|
|
|
450
451
|
interfaceTypeSysDict = "YLZDSysConfigList",
|
|
451
452
|
actionUrlKey = "action-url",
|
|
452
453
|
actionUrlExtraParams = {},
|
|
453
|
-
item
|
|
454
|
+
item,
|
|
455
|
+
langConfig
|
|
454
456
|
}) => {
|
|
455
457
|
var _a;
|
|
456
458
|
let options = [];
|
|
@@ -520,7 +522,7 @@ const handleSelectOptions = async ({
|
|
|
520
522
|
};
|
|
521
523
|
if (item.inputType === "local") {
|
|
522
524
|
options = ((_a = item.data) == null ? void 0 : _a.map((val) => ({
|
|
523
|
-
label: val,
|
|
525
|
+
label: (langConfig == null ? void 0 : langConfig.length) ? func.getTitle(langConfig, val) : val,
|
|
524
526
|
value: val
|
|
525
527
|
}))) || [];
|
|
526
528
|
if (item.options && Array.isArray(item.options)) {
|