cloud-web-corejs 1.0.54-dev.163 → 1.0.54-dev.164
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/package.json +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/baseAttachment-widget.vue +3 -0
- package/src/components/xform/form-designer/form-widget/field-widget/button-widget.vue +1 -1
- package/src/components/xform/form-designer/form-widget/field-widget/fieldMixin.js +11 -1
- package/src/components/xform/form-designer/form-widget/field-widget/select-widget.vue +1 -1
- package/src/components/xform/form-render/indexMixin.js +384 -73
- package/src/components/xform/form-render/indexMixin2.js +2049 -0
- package/src/components/xform/mixins/defaultHandle.js +120 -1
- package/src/components/xform/mixins/scriptHttp.js +1 -1
- package/src/views/bd/setting/table_model/edit.vue +5 -2
package/package.json
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
<el-button ref="fieldEditor" :type="field.options.type" :size="field.options.size" class="button-sty"
|
6
6
|
:plain="field.options.plain" :round="field.options.round"
|
7
7
|
:circle="field.options.circle" :icon="field.options.icon"
|
8
|
-
:disabled="field.options.disabled"
|
8
|
+
:disabled="!designState &&field.options.disabled"
|
9
9
|
@click.native="handleButtonWidgetClick">
|
10
10
|
{{ getI18nLabel(field.options.label)}}</el-button>
|
11
11
|
</static-content-wrapper>
|
@@ -484,6 +484,11 @@ modules = {
|
|
484
484
|
let formScriptEnabled = this.field.options.formScriptEnabled || false;
|
485
485
|
let scriptCode = this.field.options.formScriptCode || "getList";
|
486
486
|
if (formScriptEnabled) {
|
487
|
+
let tableParam = this.tableParam;
|
488
|
+
/*if(tableParam && tableParam.column.params.optionItems){
|
489
|
+
this.field.options.optionItems = this.$baseLodash.cloneDeep(tableParam.column.params.optionItems);
|
490
|
+
return
|
491
|
+
}*/
|
487
492
|
let accessParam = this.handleCustomEvent(
|
488
493
|
this.field.options.formScriptParam
|
489
494
|
);
|
@@ -1086,12 +1091,17 @@ modules = {
|
|
1086
1091
|
: (this.fieldModel = ""));
|
1087
1092
|
},
|
1088
1093
|
loadOptions: function (e) {
|
1089
|
-
|
1094
|
+
let optionItems = baseRefUtil.translateOptionItems(
|
1090
1095
|
e,
|
1091
1096
|
this.field.type,
|
1092
1097
|
this.field.options.labelKey || "label",
|
1093
1098
|
this.field.options.valueKey || "value"
|
1094
1099
|
);
|
1100
|
+
this.field.options.optionItems = optionItems
|
1101
|
+
let tableParam = this.tableParam;
|
1102
|
+
if(tableParam){
|
1103
|
+
tableParam.column.params.optionItems = optionItems;
|
1104
|
+
}
|
1095
1105
|
},
|
1096
1106
|
reloadOptions: function (e) {
|
1097
1107
|
this.field.options.optionItems = baseRefUtil.translateOptionItems(
|
@@ -18,7 +18,7 @@
|
|
18
18
|
@change="handleChangeEvent"
|
19
19
|
:style="'width:'+field.options.widgetWidth+' !important;'"
|
20
20
|
:class="{'custom-width':field.options.widgetWidth!=null}">
|
21
|
-
<el-option v-for="item in field.options.optionItems" :key="
|
21
|
+
<el-option v-for="(item,index) in field.options.optionItems" :key="index" :label="getI18nLabel(item[labelField])"
|
22
22
|
:value="item[valueField]" :disabled="item.disabled">
|
23
23
|
</el-option>
|
24
24
|
</el-select>
|
@@ -317,6 +317,88 @@ modules = {
|
|
317
317
|
let wfParam = this.wfParam;
|
318
318
|
if (!wfParam.hasWf) return;
|
319
319
|
let refList = this.widgetRefList;
|
320
|
+
|
321
|
+
/*let toDo = (target, options, e) => {
|
322
|
+
let widget = options ? null : (target.field || target.widget);
|
323
|
+
let isWfFlag = options ? true : this.hasConfig(widget, 'wfFlag');
|
324
|
+
let widgetType = widget?.type;
|
325
|
+
let enabledByWf = options ? options.enabledByWf : widget?.options?.enabledByWf;
|
326
|
+
let hiddenByWf = options ? options.hiddenByWf : widget?.options?.hiddenByWf;
|
327
|
+
let widgetName = options ? options.name : widget?.options?.name;
|
328
|
+
if (isWfFlag) {
|
329
|
+
if (this.hasConfig(widget, 'disabled') || !!options) {
|
330
|
+
let disabled = null;
|
331
|
+
if (!enabledByWf) {
|
332
|
+
disabled = true;
|
333
|
+
// setDisabled(target,true);
|
334
|
+
let onClick = options ? options.onClick : widget.options.onClick;
|
335
|
+
if (onClick && onClick.startsWith("this.getFormRef().$baseReload()")) {
|
336
|
+
// setDisabled(target,false);
|
337
|
+
disabled = false;
|
338
|
+
}
|
339
|
+
} else {
|
340
|
+
// setDisabled(target,false);
|
341
|
+
disabled = false;
|
342
|
+
}
|
343
|
+
if (widgetType == 'reset_button' && enabledByWf === undefined) {
|
344
|
+
// setDisabled(target,false)
|
345
|
+
disabled = false;
|
346
|
+
}
|
347
|
+
if (disabled !== null) {
|
348
|
+
if (options) {
|
349
|
+
options.disabled = disabled;
|
350
|
+
} else {
|
351
|
+
widget.options.disabled = disabled;
|
352
|
+
}
|
353
|
+
}
|
354
|
+
}
|
355
|
+
|
356
|
+
let hidden = null;
|
357
|
+
if (hiddenByWf) {
|
358
|
+
// setHidden(target,true);
|
359
|
+
// widget.options.hidden = true;
|
360
|
+
hidden = true
|
361
|
+
}
|
362
|
+
if (widget && widgetType == 'save_button' && hiddenByWf === undefined) {
|
363
|
+
// setHidden(target,true)
|
364
|
+
// widget.options.hidden = true;
|
365
|
+
hidden = true
|
366
|
+
}
|
367
|
+
if (hidden !== null) {
|
368
|
+
if (options) {
|
369
|
+
options.hidden = hidden;
|
370
|
+
} else {
|
371
|
+
widget.options.hidden = hidden;
|
372
|
+
}
|
373
|
+
}
|
374
|
+
}
|
375
|
+
|
376
|
+
/!*if (widget?.type == "data-table") {
|
377
|
+
debugger
|
378
|
+
let loopDo = (t,e) => {
|
379
|
+
if (t.children && t.children.length) {
|
380
|
+
t.children.forEach(item => {
|
381
|
+
loopDo(item,e)
|
382
|
+
})
|
383
|
+
} else {
|
384
|
+
if (t.columnOption) {
|
385
|
+
toDo(null,t.columnOption,e)
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
widget.options.tableColumns.forEach(item => {
|
390
|
+
loopDo(item,e)
|
391
|
+
this.loopHandleWidget(item.widgetList, (item1) => {
|
392
|
+
toDo(item1)
|
393
|
+
});
|
394
|
+
})
|
395
|
+
|
396
|
+
}*!/
|
397
|
+
if (target && widgetType == 'baseAttachment') {
|
398
|
+
target.initOption();
|
399
|
+
}
|
400
|
+
}
|
401
|
+
|
320
402
|
for (let key in refList) {
|
321
403
|
let target = refList[key];
|
322
404
|
let widget = target.field || target.widget;
|
@@ -324,38 +406,97 @@ modules = {
|
|
324
406
|
if (formItemFlag) {
|
325
407
|
target.setDisabled && target.setDisabled(true);
|
326
408
|
}
|
409
|
+
toDo(target);
|
410
|
+
}*/
|
327
411
|
|
328
|
-
|
412
|
+
let toDo2 = (widget, options, e) => {
|
413
|
+
// let widget = options ? null : (target.field || target.widget);
|
414
|
+
let isWfFlag = options ? true : this.hasConfig(widget, 'wfFlag');
|
329
415
|
let widgetType = widget?.type;
|
330
|
-
let enabledByWf = widget?.options?.enabledByWf;
|
331
|
-
let hiddenByWf = widget?.options?.hiddenByWf;
|
332
|
-
|
416
|
+
let enabledByWf = options ? options.enabledByWf : widget?.options?.enabledByWf;
|
417
|
+
let hiddenByWf = options ? options.hiddenByWf : widget?.options?.hiddenByWf;
|
418
|
+
let widgetName = options ? options.name : widget?.options?.name;
|
333
419
|
if (isWfFlag) {
|
334
|
-
if (
|
420
|
+
if (this.hasConfig(widget, 'disabled') || !!options) {
|
421
|
+
let disabled = null;
|
335
422
|
if (!enabledByWf) {
|
336
|
-
|
337
|
-
|
423
|
+
disabled = true;
|
424
|
+
// setDisabled(target,true);
|
425
|
+
let onClick = options ? options.onClick : widget.options.onClick;
|
338
426
|
if (onClick && onClick.startsWith("this.getFormRef().$baseReload()")) {
|
339
|
-
|
427
|
+
// setDisabled(target,false);
|
428
|
+
disabled = false;
|
340
429
|
}
|
341
430
|
} else {
|
342
|
-
|
431
|
+
// setDisabled(target,false);
|
432
|
+
disabled = false;
|
343
433
|
}
|
344
434
|
if (widgetType == 'reset_button' && enabledByWf === undefined) {
|
345
|
-
|
435
|
+
// setDisabled(target,false)
|
436
|
+
disabled = false;
|
437
|
+
}
|
438
|
+
if (disabled !== null) {
|
439
|
+
if (options) {
|
440
|
+
options.disabled = disabled;
|
441
|
+
} else {
|
442
|
+
widget.options.disabled = disabled;
|
443
|
+
}
|
346
444
|
}
|
347
445
|
}
|
348
446
|
|
447
|
+
let hidden = null;
|
349
448
|
if (hiddenByWf) {
|
350
|
-
|
449
|
+
// setHidden(target,true);
|
450
|
+
// widget.options.hidden = true;
|
451
|
+
hidden = true
|
351
452
|
}
|
352
|
-
if (widgetType == 'save_button' && hiddenByWf === undefined) {
|
353
|
-
|
453
|
+
if (widget && widgetType == 'save_button' && hiddenByWf === undefined) {
|
454
|
+
// setHidden(target,true)
|
455
|
+
// widget.options.hidden = true;
|
456
|
+
hidden = true
|
457
|
+
}
|
458
|
+
if (hidden !== null) {
|
459
|
+
if (options) {
|
460
|
+
options.hidden = hidden;
|
461
|
+
} else {
|
462
|
+
widget.options.hidden = hidden;
|
463
|
+
}
|
354
464
|
}
|
355
465
|
}
|
356
466
|
|
467
|
+
if (widget?.type == "data-table") {
|
468
|
+
let loopDo = (t,e) => {
|
469
|
+
if (t.children && t.children.length) {
|
470
|
+
t.children.forEach(item => {
|
471
|
+
loopDo(item)
|
472
|
+
})
|
473
|
+
} else {
|
474
|
+
if (t.columnOption) {
|
475
|
+
toDo2(null,t.columnOption)
|
476
|
+
}
|
477
|
+
}
|
478
|
+
}
|
479
|
+
widget.options.tableColumns.forEach(item => {
|
480
|
+
loopDo(item)
|
481
|
+
this.loopHandleWidget(item.widgetList, (item1) => {
|
482
|
+
toDo(item1)
|
483
|
+
});
|
484
|
+
})
|
485
|
+
|
486
|
+
}
|
487
|
+
/*if (target && widgetType == 'baseAttachment') {
|
488
|
+
target.initOption();
|
489
|
+
}*/
|
357
490
|
}
|
358
491
|
|
492
|
+
this.loopHandleWidget(this.formJson.widgetList,(widget)=>{
|
493
|
+
let formItemFlag = widget?.formItemFlag
|
494
|
+
if (formItemFlag) {
|
495
|
+
widget.options.disabled = true;
|
496
|
+
}
|
497
|
+
toDo2(widget);
|
498
|
+
});
|
499
|
+
|
359
500
|
},
|
360
501
|
hanldeWfWidget2() {
|
361
502
|
let wfParam = this.wfParam;
|
@@ -372,11 +513,13 @@ modules = {
|
|
372
513
|
let hasModifyItem = false;
|
373
514
|
let refList = this.widgetRefList;
|
374
515
|
let saveButton;
|
516
|
+
let saveButtonOptions;
|
375
517
|
let bdService = this.bdService;
|
376
|
-
|
518
|
+
|
519
|
+
/*for (let key in refList) {
|
377
520
|
let target = refList[key];
|
378
521
|
let widget = target.field || target.widget;
|
379
|
-
|
522
|
+
/!*
|
380
523
|
let wfEdit = widget?.options.wfEdit;
|
381
524
|
if (wfEdit) {
|
382
525
|
let wfConfigData = widget?.options?.wfConfigData || [];
|
@@ -406,7 +549,7 @@ modules = {
|
|
406
549
|
}
|
407
550
|
}
|
408
551
|
})
|
409
|
-
}
|
552
|
+
}*!/
|
410
553
|
let flag = this.hanldeWfWidgetItem(target)
|
411
554
|
if (!hasModifyItem && flag) {
|
412
555
|
hasModifyItem = true
|
@@ -414,71 +557,110 @@ modules = {
|
|
414
557
|
if (!saveButton && widget?.options?.saveButton) {
|
415
558
|
saveButton = target;
|
416
559
|
}
|
417
|
-
}
|
560
|
+
}*/
|
561
|
+
|
562
|
+
this.loopHandleWidget(this.formJson.widgetList,(widget)=>{
|
563
|
+
let flag = this.hanldeWfWidgetItem(widget)
|
564
|
+
if (!hasModifyItem && flag) {
|
565
|
+
hasModifyItem = true
|
566
|
+
}
|
567
|
+
if (!saveButtonOptions && widget?.options?.saveButton) {
|
568
|
+
saveButtonOptions = widget?.options;
|
569
|
+
}
|
570
|
+
});
|
571
|
+
|
572
|
+
|
418
573
|
if (hasModifyItem) {
|
419
|
-
|
420
|
-
|
574
|
+
if(saveButtonOptions){
|
575
|
+
saveButtonOptions.disabled = false;
|
576
|
+
saveButtonOptions.hidden = false;
|
577
|
+
}
|
578
|
+
/*saveButton.setDisabled && saveButton.setDisabled(false);
|
579
|
+
saveButton.setHidden(false);*/
|
421
580
|
}
|
422
581
|
},
|
423
|
-
hanldeWfWidgetItem(
|
582
|
+
hanldeWfWidgetItem(widget) {
|
424
583
|
let hasModifyItem = false;
|
425
|
-
let widget = target.field || target.widget;
|
584
|
+
// let widget = target.field || target.widget;
|
426
585
|
let wfEdit = widget?.options.wfEdit;
|
427
|
-
if (wfEdit) {
|
428
|
-
let bdService = this.bdService;
|
429
|
-
let wfParam = this.wfParam;
|
430
|
-
let wfInfo = wfParam.wfInfo
|
431
|
-
let modelKey = wfInfo.modelKey;
|
432
|
-
let companyCode = this.$store.getters.companyCode;
|
433
|
-
let taskStep = (wfInfo.taskStep ?? "") + "";
|
434
|
-
|
435
|
-
let handleWfConfigData = (options) => {
|
436
|
-
if (!options || !options.wfEdit) return
|
437
|
-
let wfConfigData = options.wfConfigData || [];
|
438
|
-
wfConfigData.forEach(item => {
|
439
586
|
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
|
444
|
-
|
445
|
-
|
446
|
-
|
447
|
-
|
448
|
-
|
449
|
-
|
450
|
-
|
451
|
-
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
|
456
|
-
|
457
|
-
|
458
|
-
|
459
|
-
|
460
|
-
|
461
|
-
|
462
|
-
|
463
|
-
|
464
|
-
|
465
|
-
|
587
|
+
let bdService = this.bdService;
|
588
|
+
let wfParam = this.wfParam;
|
589
|
+
let wfInfo = wfParam.wfInfo
|
590
|
+
let modelKey = wfInfo.modelKey;
|
591
|
+
let companyCode = this.$store.getters.companyCode;
|
592
|
+
let taskStep = (wfInfo.taskStep ?? "") + "";
|
593
|
+
|
594
|
+
let handleWfConfigData = (widget,columnOptions) => {
|
595
|
+
let options = widget?.options || columnOptions;
|
596
|
+
if (!options || !options.wfEdit) return
|
597
|
+
let wfConfigData = options.wfConfigData || [];
|
598
|
+
let flag = false;
|
599
|
+
wfConfigData.forEach(item => {
|
600
|
+
let type = item.type;
|
601
|
+
let taskStepList = item.taskSteps ? item.taskSteps.split(',') : []
|
602
|
+
if (type && taskStepList.includes(taskStep)) {
|
603
|
+
let companyCodeStr = item.companyCodes;
|
604
|
+
let companyCodes = companyCodeStr ? companyCodeStr.split(",").filter(item => !!item) : [];
|
605
|
+
let flag1 = !item.serveName || item.serveName == bdService;
|
606
|
+
let flag2 = !item.modelKey || item.modelKey == modelKey;
|
607
|
+
let flag3 = !companyCodes.length || companyCodes.includes(companyCode)
|
608
|
+
if (flag1 && flag2 && flag3) {
|
609
|
+
if (type === 1) {
|
610
|
+
//可编辑
|
611
|
+
hasModifyItem = true;
|
612
|
+
if (options.disabled !== undefined) options.disabled = false;
|
613
|
+
// target.setDisabled && target.setDisabled(false);
|
614
|
+
// target.setHidden(false);
|
615
|
+
options.hidden = false;
|
616
|
+
flag = true;
|
617
|
+
} else if (type === 2) {
|
618
|
+
//仅显示
|
619
|
+
// target.setDisabled && target.setDisabled(true);
|
620
|
+
if (options.disabled !== undefined) options.disabled = true;
|
621
|
+
// target.setHidden(false);
|
622
|
+
options.hidden = false;
|
623
|
+
flag = true;
|
624
|
+
} else if (type === 3) {
|
625
|
+
// target.setHidden(true);
|
626
|
+
options.hidden = true;
|
627
|
+
flag = true;
|
466
628
|
}
|
467
|
-
} else if (type == "data-table") {
|
468
|
-
target.options.tableColumns.forEach(item => {
|
469
|
-
handleWfConfigData(item.columnOption)
|
470
|
-
})
|
471
|
-
target.widgetList.forEach(item => {
|
472
|
-
handleWfConfigData(item.options)
|
473
|
-
})
|
474
|
-
target.buttons.forEach(item => {
|
475
|
-
handleWfConfigData(item.options)
|
476
|
-
})
|
477
629
|
}
|
478
|
-
}
|
630
|
+
}
|
631
|
+
})
|
632
|
+
/*if (flag && e && widget.type == 'baseAttachment') {
|
633
|
+
e.initOption();
|
634
|
+
}*/
|
635
|
+
}
|
636
|
+
handleWfConfigData(widget)
|
637
|
+
if (widget.type == "data-table") {
|
638
|
+
let loopDo = (t) => {
|
639
|
+
if (t.children && t.children.length) {
|
640
|
+
t.children.forEach(item => {
|
641
|
+
loopDo(item)
|
642
|
+
})
|
643
|
+
} else {
|
644
|
+
if (t.columnOption) {
|
645
|
+
handleWfConfigData(null,t.columnOption)
|
646
|
+
}
|
647
|
+
}
|
479
648
|
}
|
480
|
-
|
649
|
+
|
650
|
+
widget.options.tableColumns.forEach(item => {
|
651
|
+
loopDo(item)
|
652
|
+
this.loopHandleWidget(item.widgetList, (item1) => {
|
653
|
+
handleWfConfigData(item1)
|
654
|
+
});
|
655
|
+
})
|
656
|
+
/*this.loopHandleWidget(widget.widgetList, (item1) => {
|
657
|
+
handleWfConfigData(item1.options)
|
658
|
+
});
|
659
|
+
this.loopHandleWidget(widget.buttons, (item1) => {
|
660
|
+
handleWfConfigData(item1.options)
|
661
|
+
});*/
|
481
662
|
}
|
663
|
+
|
482
664
|
return hasModifyItem;
|
483
665
|
},
|
484
666
|
loadDefaultEntityData(callback) {
|
@@ -515,16 +697,23 @@ modules = {
|
|
515
697
|
formCode: formCode,
|
516
698
|
callback: (wfParam) => {
|
517
699
|
this.setFormData(formData);
|
700
|
+
|
518
701
|
let {hasWf} = wfParam;
|
519
702
|
this.hasWf = hasWf;
|
520
703
|
this.wfParam = wfParam;
|
704
|
+
|
705
|
+
if (hasWf) {
|
706
|
+
this.hanldeWfWidget();
|
707
|
+
this.hanldeWfWidget2();
|
708
|
+
}
|
709
|
+
|
521
710
|
this.showFormContent = true;
|
522
711
|
this.$nextTick(() => {
|
523
712
|
this.handleShowHideRule();
|
524
713
|
if (hasWf) {
|
525
714
|
setTimeout(() => {
|
526
|
-
this.hanldeWfWidget();
|
527
|
-
this.hanldeWfWidget2();
|
715
|
+
// this.hanldeWfWidget();
|
716
|
+
// this.hanldeWfWidget2();
|
528
717
|
callback && callback()
|
529
718
|
callback1 && callback1(wfParam)
|
530
719
|
}, 1000)
|
@@ -1854,6 +2043,128 @@ modules = {
|
|
1854
2043
|
confirmFormDrawer() {
|
1855
2044
|
this.formDrawerOption.confirm && this.formDrawerOption.confirm()
|
1856
2045
|
},
|
2046
|
+
|
2047
|
+
loopHandleWidget: function (e, callback) {
|
2048
|
+
let t = this;
|
2049
|
+
e
|
2050
|
+
&& e.length > 0
|
2051
|
+
&& e.forEach(function (e) {
|
2052
|
+
t.loopHandleWidgetItem(e, callback);
|
2053
|
+
});
|
2054
|
+
},
|
2055
|
+
loopHandleWidgetItem: function (e, callback) {
|
2056
|
+
let t = this;
|
2057
|
+
let dataId = this.dataId;
|
2058
|
+
let currentFormData = this.currentFormData;
|
2059
|
+
let fieldKeyName = this.getFieldKeyName(e)
|
2060
|
+
let defaultValue = e.options.defaultValue === undefined || e.options.defaultValue === "" ? null : e.options.defaultValue;
|
2061
|
+
if ('container' === e.category) {
|
2062
|
+
callback(e)
|
2063
|
+
if ('vf-dialog' === e.type || 'vf-drawer' === e.type) ;
|
2064
|
+
else if ('data-table' === e.type) {
|
2065
|
+
if (!!e.widgetList) {
|
2066
|
+
e.widgetList.forEach((childItem) => {
|
2067
|
+
this.loopHandleWidgetItem(childItem, callback);
|
2068
|
+
});
|
2069
|
+
}
|
2070
|
+
if (!!e.buttons) {
|
2071
|
+
e.buttons.forEach((childItem) => {
|
2072
|
+
this.loopHandleWidgetItem(childItem, callback);
|
2073
|
+
});
|
2074
|
+
}
|
2075
|
+
} else if ('list-h5' === e.type) {
|
2076
|
+
if (!!e.widgetList && (e.widgetList.length > 0)) {
|
2077
|
+
e.widgetList.forEach((childItem) => {
|
2078
|
+
this.loopHandleWidgetItem(childItem, callback);
|
2079
|
+
});
|
2080
|
+
}
|
2081
|
+
} else if ('grid' === e.type) {
|
2082
|
+
e.cols
|
2083
|
+
&& e.cols.length > 0
|
2084
|
+
&& e.cols.forEach(function (e) {
|
2085
|
+
t.loopHandleWidgetItem(e, callback);
|
2086
|
+
});
|
2087
|
+
} else if ('table' === e.type) {
|
2088
|
+
e.rows
|
2089
|
+
&& e.rows.length > 0
|
2090
|
+
&& e.rows.forEach(function (e) {
|
2091
|
+
e.cols
|
2092
|
+
&& e.cols.length > 0
|
2093
|
+
&& e.cols.forEach(function (e) {
|
2094
|
+
t.loopHandleWidgetItem(e, callback);
|
2095
|
+
});
|
2096
|
+
});
|
2097
|
+
} else if ('h5-table' === e.type) {
|
2098
|
+
e.rows
|
2099
|
+
&& e.rows.length > 0
|
2100
|
+
&& e.rows.forEach(function (e) {
|
2101
|
+
e.cols
|
2102
|
+
&& e.cols.length > 0
|
2103
|
+
&& e.cols.forEach(function (e) {
|
2104
|
+
t.loopHandleWidgetItem(e, callback);
|
2105
|
+
});
|
2106
|
+
});
|
2107
|
+
} else if ('tab' === e.type) {
|
2108
|
+
e.tabs
|
2109
|
+
&& e.tabs.length > 0
|
2110
|
+
&& e.tabs.forEach(function (e) {
|
2111
|
+
e.widgetList
|
2112
|
+
&& e.widgetList.length > 0
|
2113
|
+
&& e.widgetList.forEach(function (e) {
|
2114
|
+
t.loopHandleWidgetItem(e, callback);
|
2115
|
+
});
|
2116
|
+
});
|
2117
|
+
} else if ('detail' === e.type) {
|
2118
|
+
if (e.panes) {
|
2119
|
+
e.panes.forEach(function (e) {
|
2120
|
+
if (e.widgetList) {
|
2121
|
+
e.widgetList.forEach(function (e) {
|
2122
|
+
t.loopHandleWidgetItem(e, callback);
|
2123
|
+
});
|
2124
|
+
}
|
2125
|
+
if (e.buttonWidgetList) {
|
2126
|
+
e.buttonWidgetList.forEach(function (e) {
|
2127
|
+
t.loopHandleWidgetItem(e, callback);
|
2128
|
+
});
|
2129
|
+
}
|
2130
|
+
});
|
2131
|
+
}
|
2132
|
+
if (e.widgetList) {
|
2133
|
+
e.widgetList.forEach(function (e) {
|
2134
|
+
t.loopHandleWidgetItem(e, callback);
|
2135
|
+
});
|
2136
|
+
}
|
2137
|
+
} else if ('detail-pane' === e.type) {
|
2138
|
+
if (e.widgetList) {
|
2139
|
+
e.widgetList.forEach(function (e) {
|
2140
|
+
t.loopHandleWidgetItem(e, callback);
|
2141
|
+
});
|
2142
|
+
}
|
2143
|
+
if (e.buttonWidgetList) {
|
2144
|
+
e.buttonWidgetList.forEach(function (e) {
|
2145
|
+
t.loopHandleWidgetItem(e, callback);
|
2146
|
+
});
|
2147
|
+
}
|
2148
|
+
} else {
|
2149
|
+
'grid-col' === e.type || e.type,
|
2150
|
+
e.widgetList
|
2151
|
+
&& e.widgetList.length > 0
|
2152
|
+
&& e.widgetList.forEach(function (e) {
|
2153
|
+
t.loopHandleWidgetItem(e, callback);
|
2154
|
+
});
|
2155
|
+
}
|
2156
|
+
|
2157
|
+
} else {
|
2158
|
+
callback && callback(e)
|
2159
|
+
/*if (dataId || currentFormData.hasOwnProperty(fieldKeyName)) {
|
2160
|
+
let c = currentFormData[fieldKeyName] ?? null;
|
2161
|
+
this.$set(this.formDataModel, fieldKeyName, baseRefUtil.deepClone(c));
|
2162
|
+
} else {
|
2163
|
+
this.$set(this.formDataModel, fieldKeyName, defaultValue);
|
2164
|
+
}*/
|
2165
|
+
}
|
2166
|
+
},
|
2167
|
+
|
1857
2168
|
}
|
1858
2169
|
};
|
1859
2170
|
|