ztxkui 4.2.3 → 4.2.5
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/DemoCom/FormDemo.js +10 -228
- package/dist/DemoCom/PrintContainerDemo.js +3 -2
- package/dist/components/PrintContainer/handle.js +1 -2
- package/dist/components/PrintContainer/print-container.js +3 -2
- package/dist/components/business/SearchContainer/hooks/useDynamic.d.ts +1 -0
- package/dist/components/business/SearchContainer/hooks/useDynamic.js +36 -4
- package/dist/components/business/SearchContainer/search-left.js +3 -2
- package/dist/constants.d.ts +1 -1
- package/dist/constants.js +1 -1
- package/package.json +1 -1
package/dist/DemoCom/FormDemo.js
CHANGED
|
@@ -57,6 +57,15 @@ var FormDemo = function () {
|
|
|
57
57
|
return __assign(__assign({}, configInfo), { startTime: __assign(__assign({}, configInfo === null || configInfo === void 0 ? void 0 : configInfo.startTime), { isDisplay: status === '1' ? true : false }) });
|
|
58
58
|
}, [status]);
|
|
59
59
|
var handleRef = useRef(null);
|
|
60
|
+
var getDom = function () {
|
|
61
|
+
return (React.createElement(React.Fragment, { key: "search-form-fragment-id" },
|
|
62
|
+
React.createElement(SearchItem, { name: "type7", width: "half", label: "\u4F60\u597D7" },
|
|
63
|
+
React.createElement(Select, null)),
|
|
64
|
+
React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
|
|
65
|
+
React.createElement(Select, null)),
|
|
66
|
+
React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
|
|
67
|
+
React.createElement(Input.TextArea, { showCount: true, rows: 3, handleSize: true }))));
|
|
68
|
+
};
|
|
60
69
|
return (React.createElement(React.Fragment, null,
|
|
61
70
|
React.createElement(Form, { name: "test-list", form: form },
|
|
62
71
|
React.createElement(SearchContainer, { dark: true },
|
|
@@ -121,234 +130,7 @@ var FormDemo = function () {
|
|
|
121
130
|
React.createElement(Select, null)),
|
|
122
131
|
React.createElement(SearchItem, { name: "type6", width: "half", label: "\u4F60\u597D6" },
|
|
123
132
|
React.createElement(Select, null)),
|
|
124
|
-
|
|
125
|
-
React.createElement(Select, null)),
|
|
126
|
-
React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
|
|
127
|
-
React.createElement(Select, null)),
|
|
128
|
-
React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
|
|
129
|
-
React.createElement(Input.TextArea, { showCount: true, rows: 3, handleSize: true }))),
|
|
130
|
-
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
131
|
-
var _a;
|
|
132
|
-
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
133
|
-
console.log(form.getFieldsValue());
|
|
134
|
-
}, onResetHandle: function () { } }))),
|
|
135
|
-
React.createElement(Form, { name: "test-list", form: form },
|
|
136
|
-
React.createElement(SearchContainer, { dark: true },
|
|
137
|
-
React.createElement(SearchLeft, { configInfo: configInfoMemo, isDynamic: true, dynamicStorageKey: "symbol-key-00002", isToggle: true, handleRef: handleRef },
|
|
138
|
-
React.createElement(SearchItem, { width: "half", name: "pwNo", configname: "pwNoCopy", label: "\u5165\u5E93\u5355\u53F7", rules: [
|
|
139
|
-
{
|
|
140
|
-
required: true,
|
|
141
|
-
message: '采购基本数据-请选择入库单号',
|
|
142
|
-
},
|
|
143
|
-
] },
|
|
144
|
-
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true, onChange: function (e) {
|
|
145
|
-
console.log(e.target.value);
|
|
146
|
-
} })),
|
|
147
|
-
React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71", rules: [
|
|
148
|
-
{
|
|
149
|
-
required: false,
|
|
150
|
-
message: '采购基本数据-请选择入库单号1',
|
|
151
|
-
},
|
|
152
|
-
] },
|
|
153
|
-
React.createElement(Input, null)),
|
|
154
|
-
React.createElement(SearchItem, { width: "half", name: "status", label: "\u5355\u636E\u72B6\u6001" },
|
|
155
|
-
React.createElement(Select, { onChange: function (value) {
|
|
156
|
-
setStatus(value);
|
|
157
|
-
} },
|
|
158
|
-
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
159
|
-
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
160
|
-
React.createElement(SearchItem, { name: "intime", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
161
|
-
React.createElement(RangePicker, null)),
|
|
162
|
-
React.createElement(SearchItem, { name: "intime1", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
163
|
-
React.createElement(DatePicker, null)),
|
|
164
|
-
React.createElement(SearchItem, { name: "warehouseId", label: "\u4ED3\u5E93\u540D\u79F0" },
|
|
165
|
-
React.createElement(Select, null)),
|
|
166
|
-
React.createElement(SearchItem, { name: "companyId", label: "\u516C\u53F8\u540D\u79F0" },
|
|
167
|
-
React.createElement(Select, null)),
|
|
168
|
-
React.createElement(SearchItem, { name: "companyId1", label: "\u516C\u53F8\u540D\u79F01" },
|
|
169
|
-
React.createElement(Input.TextArea, { autoSize: true })),
|
|
170
|
-
React.createElement(SearchItem, { name: "depId", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择部门名称' }] },
|
|
171
|
-
React.createElement(Select, { allowClear: true },
|
|
172
|
-
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
173
|
-
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
174
|
-
React.createElement(SearchItem, { name: "test1", label: "", hiddenLabelName: "\u6D4B\u8BD5\u90E8\u95E8\u4E0D\u663E\u793A" },
|
|
175
|
-
React.createElement(Checkbox.Group, null,
|
|
176
|
-
React.createElement(Checkbox, { value: "1" }, "\u662F"),
|
|
177
|
-
React.createElement(Checkbox, { value: "2" }, "\u5426"))),
|
|
178
|
-
React.createElement(SearchItem, { name: "test2", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择仓库名称' }] },
|
|
179
|
-
React.createElement(Radio.Group, null,
|
|
180
|
-
React.createElement(Radio, { value: "1" }, "\u662F"),
|
|
181
|
-
React.createElement(Radio, { value: "2" }, "\u5426"))),
|
|
182
|
-
React.createElement(SearchItem, { name: "test3", label: "\u90E8\u95E8\u540D\u79F0" },
|
|
183
|
-
React.createElement(InputNumber, null)),
|
|
184
|
-
React.createElement(SearchItem, { name: "test4", label: "\u90E8\u95E8\u540D\u79F0" },
|
|
185
|
-
React.createElement(Input.TextArea, { autoSize: true })),
|
|
186
|
-
React.createElement(SearchItem, { name: "type1", width: "half", noLabel: true },
|
|
187
|
-
React.createElement(Select, null)),
|
|
188
|
-
React.createElement(SearchItem, { name: "type2", width: "half", noLabel: true },
|
|
189
|
-
React.createElement(Input, null)),
|
|
190
|
-
React.createElement(SearchItem, { name: "type3", width: "half", noLabel: true },
|
|
191
|
-
React.createElement(Select, null)),
|
|
192
|
-
React.createElement(SearchItem, { name: "type4", width: "half", noLabel: true },
|
|
193
|
-
React.createElement(Select, null)),
|
|
194
|
-
React.createElement(SearchItem, { name: "type44", width: "half", label: "\u4F60\u597D" },
|
|
195
|
-
React.createElement(Select, null)),
|
|
196
|
-
React.createElement(SearchItem, { name: "type6", width: "half", label: "\u4F60\u597D6" },
|
|
197
|
-
React.createElement(Select, null)),
|
|
198
|
-
React.createElement(SearchItem, { name: "type7", width: "half", label: "\u4F60\u597D7" },
|
|
199
|
-
React.createElement(Select, null)),
|
|
200
|
-
React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
|
|
201
|
-
React.createElement(Select, null)),
|
|
202
|
-
React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
|
|
203
|
-
React.createElement(Input.TextArea, { showCount: true, maxLength: 5000, autoSize: { minRows: 3, maxRows: 5 } }))),
|
|
204
|
-
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
205
|
-
var _a;
|
|
206
|
-
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
207
|
-
console.log(form.getFieldsValue());
|
|
208
|
-
}, onResetHandle: function () { } }))),
|
|
209
|
-
React.createElement(Form, { name: "test-list", form: form },
|
|
210
|
-
React.createElement(SearchContainer, { dark: true },
|
|
211
|
-
React.createElement(SearchLeft, { configInfo: configInfoMemo, isDynamic: true, dynamicStorageKey: "symbol-key-00003", isToggle: true, handleRef: handleRef },
|
|
212
|
-
React.createElement(SearchItem, { width: "half", name: "pwNo", configname: "pwNoCopy", label: "\u5165\u5E93\u5355\u53F7", rules: [
|
|
213
|
-
{
|
|
214
|
-
required: true,
|
|
215
|
-
message: '采购基本数据-请选择入库单号',
|
|
216
|
-
},
|
|
217
|
-
] },
|
|
218
|
-
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true, onChange: function (e) {
|
|
219
|
-
console.log(e.target.value);
|
|
220
|
-
} })),
|
|
221
|
-
React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71", rules: [
|
|
222
|
-
{
|
|
223
|
-
required: false,
|
|
224
|
-
message: '采购基本数据-请选择入库单号1',
|
|
225
|
-
},
|
|
226
|
-
] },
|
|
227
|
-
React.createElement(Input, null)),
|
|
228
|
-
React.createElement(SearchItem, { width: "half", name: "status", label: "\u5355\u636E\u72B6\u6001" },
|
|
229
|
-
React.createElement(Select, { onChange: function (value) {
|
|
230
|
-
setStatus(value);
|
|
231
|
-
} },
|
|
232
|
-
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
233
|
-
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
234
|
-
React.createElement(SearchItem, { name: "intime", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
235
|
-
React.createElement(RangePicker, null)),
|
|
236
|
-
React.createElement(SearchItem, { name: "intime1", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
237
|
-
React.createElement(DatePicker, null)),
|
|
238
|
-
React.createElement(SearchItem, { name: "warehouseId", label: "\u4ED3\u5E93\u540D\u79F0" },
|
|
239
|
-
React.createElement(Select, null)),
|
|
240
|
-
React.createElement(SearchItem, { name: "companyId", label: "\u516C\u53F8\u540D\u79F0" },
|
|
241
|
-
React.createElement(Select, null)),
|
|
242
|
-
React.createElement(SearchItem, { name: "companyId1", label: "\u516C\u53F8\u540D\u79F01" },
|
|
243
|
-
React.createElement(Input.TextArea, { autoSize: true })),
|
|
244
|
-
React.createElement(SearchItem, { name: "depId", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择部门名称' }] },
|
|
245
|
-
React.createElement(Select, { allowClear: true },
|
|
246
|
-
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
247
|
-
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
248
|
-
React.createElement(SearchItem, { name: "test1", label: "", hiddenLabelName: "\u6D4B\u8BD5\u90E8\u95E8\u4E0D\u663E\u793A" },
|
|
249
|
-
React.createElement(Checkbox.Group, null,
|
|
250
|
-
React.createElement(Checkbox, { value: "1" }, "\u662F"),
|
|
251
|
-
React.createElement(Checkbox, { value: "2" }, "\u5426"))),
|
|
252
|
-
React.createElement(SearchItem, { name: "test2", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择仓库名称' }] },
|
|
253
|
-
React.createElement(Radio.Group, null,
|
|
254
|
-
React.createElement(Radio, { value: "1" }, "\u662F"),
|
|
255
|
-
React.createElement(Radio, { value: "2" }, "\u5426"))),
|
|
256
|
-
React.createElement(SearchItem, { name: "test3", label: "\u90E8\u95E8\u540D\u79F0" },
|
|
257
|
-
React.createElement(InputNumber, null)),
|
|
258
|
-
React.createElement(SearchItem, { name: "test4", label: "\u90E8\u95E8\u540D\u79F0" },
|
|
259
|
-
React.createElement(Input.TextArea, { autoSize: true })),
|
|
260
|
-
React.createElement(SearchItem, { name: "type1", width: "half", noLabel: true },
|
|
261
|
-
React.createElement(Select, null)),
|
|
262
|
-
React.createElement(SearchItem, { name: "type2", width: "half", noLabel: true },
|
|
263
|
-
React.createElement(Input, null)),
|
|
264
|
-
React.createElement(SearchItem, { name: "type3", width: "half", noLabel: true },
|
|
265
|
-
React.createElement(Select, null)),
|
|
266
|
-
React.createElement(SearchItem, { name: "type4", width: "half", noLabel: true },
|
|
267
|
-
React.createElement(Select, null)),
|
|
268
|
-
React.createElement(SearchItem, { name: "type44", width: "half", label: "\u4F60\u597D" },
|
|
269
|
-
React.createElement(Select, null)),
|
|
270
|
-
React.createElement(SearchItem, { name: "type6", width: "half", label: "\u4F60\u597D6" },
|
|
271
|
-
React.createElement(Select, null)),
|
|
272
|
-
React.createElement(SearchItem, { name: "type7", width: "half", label: "\u4F60\u597D7" },
|
|
273
|
-
React.createElement(Select, null)),
|
|
274
|
-
React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
|
|
275
|
-
React.createElement(Select, null)),
|
|
276
|
-
React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
|
|
277
|
-
React.createElement(Input.TextArea, { showCount: true, maxLength: 5000, autoSize: { minRows: 3, maxRows: 5 } }))),
|
|
278
|
-
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
279
|
-
var _a;
|
|
280
|
-
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
281
|
-
console.log(form.getFieldsValue());
|
|
282
|
-
}, onResetHandle: function () { } }))),
|
|
283
|
-
React.createElement(Form, { name: "test-list", form: form },
|
|
284
|
-
React.createElement(SearchContainer, { dark: true },
|
|
285
|
-
React.createElement(SearchLeft, { configInfo: configInfoMemo, isDynamic: true, dynamicStorageKey: "symbol-key-00004", isToggle: true, handleRef: handleRef },
|
|
286
|
-
React.createElement(SearchItem, { width: "half", name: "pwNo", configname: "pwNoCopy", label: "\u5165\u5E93\u5355\u53F7", rules: [
|
|
287
|
-
{
|
|
288
|
-
required: true,
|
|
289
|
-
message: '采购基本数据-请选择入库单号',
|
|
290
|
-
},
|
|
291
|
-
] },
|
|
292
|
-
React.createElement(Input.TextArea, { autoSize: true, allowClear: true, disabled: true, onChange: function (e) {
|
|
293
|
-
console.log(e.target.value);
|
|
294
|
-
} })),
|
|
295
|
-
React.createElement(SearchItem, { width: "half", name: "pwNo1", label: "\u5165\u5E93\u5355\u53F71", rules: [
|
|
296
|
-
{
|
|
297
|
-
required: false,
|
|
298
|
-
message: '采购基本数据-请选择入库单号1',
|
|
299
|
-
},
|
|
300
|
-
] },
|
|
301
|
-
React.createElement(Input, null)),
|
|
302
|
-
React.createElement(SearchItem, { width: "half", name: "status", label: "\u5355\u636E\u72B6\u6001" },
|
|
303
|
-
React.createElement(Select, { onChange: function (value) {
|
|
304
|
-
setStatus(value);
|
|
305
|
-
} },
|
|
306
|
-
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
307
|
-
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
308
|
-
React.createElement(SearchItem, { name: "intime", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
309
|
-
React.createElement(RangePicker, null)),
|
|
310
|
-
React.createElement(SearchItem, { name: "intime1", configname: "startTime", label: "\u5165\u5E93\u65E5\u671F" },
|
|
311
|
-
React.createElement(DatePicker, null)),
|
|
312
|
-
React.createElement(SearchItem, { name: "warehouseId", label: "\u4ED3\u5E93\u540D\u79F0" },
|
|
313
|
-
React.createElement(Select, null)),
|
|
314
|
-
React.createElement(SearchItem, { name: "companyId", label: "\u516C\u53F8\u540D\u79F0" },
|
|
315
|
-
React.createElement(Select, null)),
|
|
316
|
-
React.createElement(SearchItem, { name: "companyId1", label: "\u516C\u53F8\u540D\u79F01" },
|
|
317
|
-
React.createElement(Input.TextArea, { autoSize: true })),
|
|
318
|
-
React.createElement(SearchItem, { name: "depId", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择部门名称' }] },
|
|
319
|
-
React.createElement(Select, { allowClear: true },
|
|
320
|
-
React.createElement(Select.Option, { value: "1" }, "\u662F"),
|
|
321
|
-
React.createElement(Select.Option, { value: "0" }, "\u5426"))),
|
|
322
|
-
React.createElement(SearchItem, { name: "test1", label: "", hiddenLabelName: "\u6D4B\u8BD5\u90E8\u95E8\u4E0D\u663E\u793A" },
|
|
323
|
-
React.createElement(Checkbox.Group, null,
|
|
324
|
-
React.createElement(Checkbox, { value: "1" }, "\u662F"),
|
|
325
|
-
React.createElement(Checkbox, { value: "2" }, "\u5426"))),
|
|
326
|
-
React.createElement(SearchItem, { name: "test2", label: "\u90E8\u95E8\u540D\u79F0", rules: [{ required: true, message: '请选择仓库名称' }] },
|
|
327
|
-
React.createElement(Radio.Group, null,
|
|
328
|
-
React.createElement(Radio, { value: "1" }, "\u662F"),
|
|
329
|
-
React.createElement(Radio, { value: "2" }, "\u5426"))),
|
|
330
|
-
React.createElement(SearchItem, { name: "test3", label: "\u90E8\u95E8\u540D\u79F0" },
|
|
331
|
-
React.createElement(InputNumber, null)),
|
|
332
|
-
React.createElement(SearchItem, { name: "test4", label: "\u90E8\u95E8\u540D\u79F0" },
|
|
333
|
-
React.createElement(Input.TextArea, { autoSize: true })),
|
|
334
|
-
React.createElement(SearchItem, { name: "type1", width: "half", noLabel: true },
|
|
335
|
-
React.createElement(Select, null)),
|
|
336
|
-
React.createElement(SearchItem, { name: "type2", width: "half", noLabel: true },
|
|
337
|
-
React.createElement(Input, null)),
|
|
338
|
-
React.createElement(SearchItem, { name: "type3", width: "half", noLabel: true },
|
|
339
|
-
React.createElement(Select, null)),
|
|
340
|
-
React.createElement(SearchItem, { name: "type4", width: "half", noLabel: true },
|
|
341
|
-
React.createElement(Select, null)),
|
|
342
|
-
React.createElement(SearchItem, { name: "type44", width: "half", label: "\u4F60\u597D" },
|
|
343
|
-
React.createElement(Select, null)),
|
|
344
|
-
React.createElement(SearchItem, { name: "type6", width: "half", label: "\u4F60\u597D6" },
|
|
345
|
-
React.createElement(Select, null)),
|
|
346
|
-
React.createElement(SearchItem, { name: "type7", width: "half", label: "\u4F60\u597D7" },
|
|
347
|
-
React.createElement(Select, null)),
|
|
348
|
-
React.createElement(SearchItem, { name: "type8", width: "half", label: "\u4F60\u597D811" },
|
|
349
|
-
React.createElement(Select, null)),
|
|
350
|
-
React.createElement(SearchItem, { name: "type5", width: "all", label: "\u4F60\u597D" },
|
|
351
|
-
React.createElement(Input.TextArea, { showCount: true, maxLength: 5000, autoSize: { minRows: 3, maxRows: 5 } }))),
|
|
133
|
+
getDom()),
|
|
352
134
|
React.createElement(SearchRight, { onSearchHandle: function () {
|
|
353
135
|
var _a;
|
|
354
136
|
(_a = handleRef.current) === null || _a === void 0 ? void 0 : _a.setToggleHandle(false);
|
|
@@ -38,7 +38,7 @@ import water from '../assets/img/water.png';
|
|
|
38
38
|
import { createDownloadUrl } from 'ztxkutils/dist/fileOperation';
|
|
39
39
|
import './print.scss';
|
|
40
40
|
import { token } from '../constants';
|
|
41
|
-
import imgSrc from '../assets/img
|
|
41
|
+
import imgSrc from '../assets/img/logo002.jpg';
|
|
42
42
|
function request(options) {
|
|
43
43
|
var headers = options.headers, restOptions = __rest(options, ["headers"]);
|
|
44
44
|
return axios(__assign({ baseURL: options.baseURL ? options.baseURL : 'http://192.168.0.83:8000', url: options.url, headers: __assign({ 'Zmdms-Auth': "bearer " + token }, options.headers), method: options.method, data: options.data, params: options.params }, restOptions));
|
|
@@ -88,7 +88,8 @@ var PrintContainerDemo = function () {
|
|
|
88
88
|
setDataSource(dataSource1);
|
|
89
89
|
}, 1000);
|
|
90
90
|
}, []);
|
|
91
|
-
|
|
91
|
+
// const [base64Img, setBase64Img] = useState<any>('');
|
|
92
|
+
var _c = useState(''), setBase64Img = _c[1];
|
|
92
93
|
useEffect(function () {
|
|
93
94
|
var image = new Image();
|
|
94
95
|
image.setAttribute('crossOrigin', 'anonymous');
|
|
@@ -295,7 +295,6 @@ export function setPositionDom(value) {
|
|
|
295
295
|
if ((value === null || value === void 0 ? void 0 : value.left) < 0) {
|
|
296
296
|
childResultStyle.left = value === null || value === void 0 ? void 0 : value.left;
|
|
297
297
|
}
|
|
298
|
-
console.log(childResultStyle);
|
|
299
298
|
if (childResultStyle.top && !childResultStyle.left) {
|
|
300
299
|
setMinusPosition(item, childResultStyle);
|
|
301
300
|
reductionMinusPostion(item, 'left');
|
|
@@ -370,7 +369,7 @@ export function initMinusPosition(dom) {
|
|
|
370
369
|
export function reductionMinusPostion(dom, type) {
|
|
371
370
|
try {
|
|
372
371
|
var childrenDom = dom.querySelectorAll('.set-box');
|
|
373
|
-
if (childrenDom) {
|
|
372
|
+
if (childrenDom && childrenDom.length > 0) {
|
|
374
373
|
if (type === 'top') {
|
|
375
374
|
console.log(childrenDom[0].style.top);
|
|
376
375
|
childrenDom[0].style.top = childrenDom[0].dataset.top;
|
|
@@ -940,7 +940,7 @@ var PrintContainer = function (_a) {
|
|
|
940
940
|
var downloadFailIndexArr = [];
|
|
941
941
|
newStatusArr.forEach(function (status, index) {
|
|
942
942
|
if (status === 'rejected') {
|
|
943
|
-
downloadFailIndexArr.push(index);
|
|
943
|
+
downloadFailIndexArr.push(index + 1);
|
|
944
944
|
}
|
|
945
945
|
});
|
|
946
946
|
setSpinning(false);
|
|
@@ -964,7 +964,8 @@ var PrintContainer = function (_a) {
|
|
|
964
964
|
if (isUseXy) {
|
|
965
965
|
formData.append("useXY", 'true');
|
|
966
966
|
}
|
|
967
|
-
formData.append(
|
|
967
|
+
// formData.append(`fileList[${i}]`, file);
|
|
968
|
+
formData.append("fileList[0]", file);
|
|
968
969
|
setFormDataSeal(formData);
|
|
969
970
|
autoSealThenDownloadFilesHandle(request, formData, {
|
|
970
971
|
sucessCallback: function () {
|
|
@@ -64,6 +64,24 @@ export function setDynamicKey(dynamicStorageKey, value) {
|
|
|
64
64
|
localStorage.setItem(LOCALSTORAGE_KEY, JSON.stringify(obj));
|
|
65
65
|
localStorage.setItem(LOCALSTORAGE_LRU_KEY, JSON.stringify(lruKeys));
|
|
66
66
|
}
|
|
67
|
+
export function getNewChildren(children) {
|
|
68
|
+
var newChildren = [];
|
|
69
|
+
React.Children.forEach(children, function (item) {
|
|
70
|
+
var _a;
|
|
71
|
+
// 这个需要拉平这个数据
|
|
72
|
+
if (item.key === 'search-form-fragment-id' &&
|
|
73
|
+
(item === null || item === void 0 ? void 0 : item.props) &&
|
|
74
|
+
Array.isArray((_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.children)) {
|
|
75
|
+
React.Children.forEach(item === null || item === void 0 ? void 0 : item.props.children, function (item) {
|
|
76
|
+
newChildren.push(item);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
newChildren.push(item);
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
return newChildren;
|
|
84
|
+
}
|
|
67
85
|
/**
|
|
68
86
|
* @description 比对方法,获取最终数据
|
|
69
87
|
*/
|
|
@@ -133,9 +151,9 @@ dynamicStorageKey // 动态列配置的key值
|
|
|
133
151
|
// 初始化的排列顺序
|
|
134
152
|
var _initDynamicList_1 = [];
|
|
135
153
|
// 遍历当前子元素
|
|
136
|
-
|
|
137
|
-
if (
|
|
138
|
-
var
|
|
154
|
+
var setData_1 = function (props) {
|
|
155
|
+
if (props) {
|
|
156
|
+
var name_2 = props.name, label_1 = props.label, hiddenLabelName_1 = props.hiddenLabelName, disabled = props.disabled, dynamicDisabled_1 = props.dynamicdisabled;
|
|
139
157
|
_initDynamicList_1.push({
|
|
140
158
|
name: name_2,
|
|
141
159
|
label: label_1,
|
|
@@ -171,6 +189,20 @@ dynamicStorageKey // 动态列配置的key值
|
|
|
171
189
|
}
|
|
172
190
|
}
|
|
173
191
|
}
|
|
192
|
+
};
|
|
193
|
+
React.Children.forEach(children, function (item) {
|
|
194
|
+
var _a;
|
|
195
|
+
// 这个需要拉平这个数据
|
|
196
|
+
if (item.key === 'search-form-fragment-id' &&
|
|
197
|
+
(item === null || item === void 0 ? void 0 : item.props) &&
|
|
198
|
+
Array.isArray((_a = item === null || item === void 0 ? void 0 : item.props) === null || _a === void 0 ? void 0 : _a.children)) {
|
|
199
|
+
React.Children.forEach(item === null || item === void 0 ? void 0 : item.props.children, function (item) {
|
|
200
|
+
setData_1(item === null || item === void 0 ? void 0 : item.props);
|
|
201
|
+
});
|
|
202
|
+
}
|
|
203
|
+
else {
|
|
204
|
+
setData_1(item === null || item === void 0 ? void 0 : item.props);
|
|
205
|
+
}
|
|
174
206
|
});
|
|
175
207
|
// 找到业务新增的,但是缓存里面没有的
|
|
176
208
|
var addDynamicList = _initDynamicList_1.filter(function (item) {
|
|
@@ -190,7 +222,7 @@ dynamicStorageKey // 动态列配置的key值
|
|
|
190
222
|
return _initDynamicList_1.find(function (initDynamic) { return initDynamic.name === item.name; });
|
|
191
223
|
});
|
|
192
224
|
// console.log(_initDynamicList, _currentDynamicList);
|
|
193
|
-
setNewChildren(children);
|
|
225
|
+
setNewChildren(getNewChildren(children));
|
|
194
226
|
setDynamicArr(_currentDynamicList_1);
|
|
195
227
|
setInitDynamicArr(_initDynamicList_1);
|
|
196
228
|
}
|
|
@@ -2,13 +2,14 @@ import React, { useCallback, useEffect, useState, useRef, useImperativeHandle, }
|
|
|
2
2
|
import classNames from 'classnames';
|
|
3
3
|
import SearchDrawer from './search-drawer';
|
|
4
4
|
import { SettingOutlined, DownOutlined } from '@ant-design/icons';
|
|
5
|
-
import useDynamic, { setDynamicKey } from './hooks/useDynamic';
|
|
5
|
+
import useDynamic, { setDynamicKey, getNewChildren } from './hooks/useDynamic';
|
|
6
6
|
import useToggle from './hooks/useToggle';
|
|
7
7
|
function useConfigChildren(children) {
|
|
8
8
|
var _a = useState(null), configChildren = _a[0], setConfigChildren = _a[1];
|
|
9
9
|
useEffect(function () {
|
|
10
10
|
if (children) {
|
|
11
|
-
setConfigChildren(children);
|
|
11
|
+
// setConfigChildren(children);
|
|
12
|
+
setConfigChildren(getNewChildren(children));
|
|
12
13
|
}
|
|
13
14
|
}, [children]);
|
|
14
15
|
return { configChildren: configChildren };
|
package/dist/constants.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export decl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