cloud-web-corejs 1.0.54-dev.251 → 1.0.54-dev.252
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
CHANGED
@@ -469,7 +469,7 @@ modules = {
|
|
469
469
|
let hasCreated =
|
470
470
|
!!taZdMc && createdTableColumnArray.includes(taZdMc);
|
471
471
|
// let style = !row.relationZd ? "margin-left:20px" : "";
|
472
|
-
if (!row.systems && !hasCreated
|
472
|
+
if (!row.systems && !hasCreated) {
|
473
473
|
//非内置,未创建字段,非关联表带出来的字段
|
474
474
|
return getJsxBtn({
|
475
475
|
iconName: "el-icon-delete",
|
@@ -530,14 +530,10 @@ modules = {
|
|
530
530
|
this.szTaMb.szTaZdMbDTOs.splice(0, 0, item);
|
531
531
|
},
|
532
532
|
deleteItem(row, rowIndex) {
|
533
|
-
|
534
|
-
|
535
|
-
this.szTaMb.szTaZdMbDTOs.splice(rowIndex, 1);
|
536
|
-
if (referenceZd) {
|
537
|
-
this.szTaMb.szTaZdMbDTOs = this.szTaMb.szTaZdMbDTOs.filter((item) => {
|
538
|
-
return referenceZd !== item.relationZd && referenceZd2 !== item.relationZd;
|
539
|
-
});
|
533
|
+
if (row.referenceZd) {
|
534
|
+
this.clearReferenceZd(row);
|
540
535
|
}
|
536
|
+
this.szTaMb.szTaZdMbDTOs.splice(rowIndex, 1);
|
541
537
|
},
|
542
538
|
confirmInsertSzTaMb(rows) {
|
543
539
|
if (rows.length > 0) {
|
@@ -646,6 +642,39 @@ modules = {
|
|
646
642
|
this.currentIndex = rowIndex;
|
647
643
|
this.showReferenceZdDialog = true;
|
648
644
|
},
|
645
|
+
changeZdType(row) {
|
646
|
+
this.clearReferenceZd(row);
|
647
|
+
},
|
648
|
+
clearReferenceZd(row) {
|
649
|
+
let referenceZd = row.referenceZd;
|
650
|
+
if (referenceZd) {
|
651
|
+
let referenceZd2 = row.referenceZd + "." + row.zdEn;
|
652
|
+
this.szTaMb.szTaZdMbDTOs = this.szTaMb.szTaZdMbDTOs.filter((item) => {
|
653
|
+
return referenceZd !== item.relationZd && referenceZd2 !== item.relationZd;
|
654
|
+
});
|
655
|
+
row.referenceZd = null;
|
656
|
+
}
|
657
|
+
|
658
|
+
|
659
|
+
/*let oldReferenceZd = row.referenceZd;
|
660
|
+
if (oldReferenceZd) {
|
661
|
+
let oldReferenceZd2 = row.referenceZd + "." + row.zdEn;
|
662
|
+
let index0 = oldReferenceZd.indexOf(".");
|
663
|
+
let oldReferenceEntity = oldReferenceZd.substring(0, index0);
|
664
|
+
let delIndex = [];
|
665
|
+
this.szTaMb.szTaZdMbDTOs.forEach((item, index) => {
|
666
|
+
if (item.relationZd && (oldReferenceZd == item.relationZd || oldReferenceZd2 == item.relationZd)) {
|
667
|
+
delIndex.push(index);
|
668
|
+
}
|
669
|
+
});
|
670
|
+
if (delIndex.length) {
|
671
|
+
delIndex.reverse().forEach((i) => {
|
672
|
+
this.szTaMb.szTaZdMbDTOs.splice(i, 1);
|
673
|
+
});
|
674
|
+
}
|
675
|
+
row.referenceZd = null;
|
676
|
+
}*/
|
677
|
+
},
|
649
678
|
confirmReferenceZdDialog() {
|
650
679
|
let row = this.szTaMb.szTaZdMbDTOs[this.currentIndex];
|
651
680
|
let oldReferenceZd = row.referenceZd;
|
@@ -653,9 +682,11 @@ modules = {
|
|
653
682
|
|
654
683
|
let referenceEntity = this.referenceEntity;
|
655
684
|
let refServiceName = this.refServiceName;
|
685
|
+
let referenceKey = this.referenceKey
|
686
|
+
let referenceZd = referenceEntity && referenceKey ? (referenceEntity + "." + referenceKey) : null;
|
656
687
|
|
657
|
-
let referenceZd = referenceEntity + "." + this.referenceKey;
|
658
688
|
let referenceShowFields = this.referenceShowFields;
|
689
|
+
|
659
690
|
let keys = referenceShowFields.map((item) => {
|
660
691
|
return referenceEntity + "." + item;
|
661
692
|
});
|
@@ -669,13 +700,7 @@ modules = {
|
|
669
700
|
delIndex.push(index);
|
670
701
|
}
|
671
702
|
});
|
672
|
-
}
|
673
|
-
this.szTaMb.szTaZdMbDTOs = this.szTaMb.szTaZdMbDTOs.forEach((item, index) => {
|
674
|
-
if (oldReferenceZd == item.relationZd) {
|
675
|
-
delIndex.push(index)
|
676
|
-
}
|
677
|
-
})
|
678
|
-
}*/ else {
|
703
|
+
} else {
|
679
704
|
this.szTaMb.szTaZdMbDTOs.forEach((item, index) => {
|
680
705
|
if (oldReferenceZd == item.relationZd || oldReferenceZd2 == item.relationZd) {
|
681
706
|
if (!keys.includes(item.referenceZd)) {
|
@@ -687,18 +712,12 @@ modules = {
|
|
687
712
|
});
|
688
713
|
}
|
689
714
|
if (delIndex.length) {
|
690
|
-
/*this.szTaMb.szTaZdMbDTOs = this.szTaMb.szTaZdMbDTOs.filter((item, index) => {
|
691
|
-
return !delIndex.includes(index);
|
692
|
-
})*/
|
693
715
|
delIndex.reverse().forEach((i) => {
|
694
716
|
this.szTaMb.szTaZdMbDTOs.splice(i, 1);
|
695
717
|
});
|
696
718
|
}
|
697
719
|
}
|
698
720
|
|
699
|
-
/*let addReferenceShowFields = referenceShowFields.filter((item, index) => {
|
700
|
-
return !keys.includes(item)
|
701
|
-
})*/
|
702
721
|
let oldKeys = this.szTaMb.szTaZdMbDTOs
|
703
722
|
.filter((item) => (referenceZd == item.relationZd || (referenceZd + "." + item.zdEn) == item.relationZd))
|
704
723
|
.map((item) => item.referenceZd);
|
@@ -743,6 +762,7 @@ modules = {
|
|
743
762
|
this.handleReferenceOrders(row);
|
744
763
|
this.showReferenceZdDialog = false;
|
745
764
|
},
|
765
|
+
|
746
766
|
changeOrders(row) {
|
747
767
|
this.handleReferenceOrders(row);
|
748
768
|
},
|