cloud-web-corejs 1.0.54-dev.646 → 1.0.54-dev.647
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/setting-panel/property-editor/container-data-table/data-table-editor.vue +18 -18
- package/src/components/xform/form-render/container-item/containerItemMixin.js +1229 -4
- package/src/components/xform/form-render/container-item/data-table-mixin.js +107 -111
- package/src/components/xform/form-render/container-item/list-h5-item.vue +0 -2
package/package.json
CHANGED
|
@@ -638,7 +638,7 @@ export default {
|
|
|
638
638
|
},
|
|
639
639
|
defaultCheckedKeys: [],
|
|
640
640
|
tableConfigParams: ["dataId", "formCode"],
|
|
641
|
-
rowShowParams: ["
|
|
641
|
+
rowShowParams: ["dataId", "formCode", "tableParam"],
|
|
642
642
|
showExportItemColumnsDialog: false,
|
|
643
643
|
};
|
|
644
644
|
},
|
|
@@ -774,9 +774,9 @@ export default {
|
|
|
774
774
|
handleShowButtonsColumnChange: function (e) {
|
|
775
775
|
if (e) {
|
|
776
776
|
var t = this.designer.formWidget.getSelectedWidgetRef();
|
|
777
|
-
t
|
|
778
|
-
t.refreshLayout
|
|
779
|
-
this.$nextTick(function () {
|
|
777
|
+
t
|
|
778
|
+
&& t.refreshLayout
|
|
779
|
+
&& this.$nextTick(function () {
|
|
780
780
|
t.refreshLayout();
|
|
781
781
|
});
|
|
782
782
|
}
|
|
@@ -789,8 +789,8 @@ export default {
|
|
|
789
789
|
this.optionModel.operationButtons.map(function (n, o) {
|
|
790
790
|
n.name === e && o !== t && (i = !0);
|
|
791
791
|
}),
|
|
792
|
-
i
|
|
793
|
-
(this.$message.error(
|
|
792
|
+
i
|
|
793
|
+
&& (this.$message.error(
|
|
794
794
|
this.i18nt("designer.setting.operationButtonDuplicatedNameError")
|
|
795
795
|
),
|
|
796
796
|
(this.optionModel.operationButtons[t].name = this.oldButtonName));
|
|
@@ -831,9 +831,9 @@ export default {
|
|
|
831
831
|
},
|
|
832
832
|
refreshTableLayout: function () {
|
|
833
833
|
var e = this.designer.formWidget.getSelectedWidgetRef();
|
|
834
|
-
e
|
|
835
|
-
e.refreshLayout
|
|
836
|
-
this.$nextTick(function () {
|
|
834
|
+
e
|
|
835
|
+
&& e.refreshLayout
|
|
836
|
+
&& this.$nextTick(function () {
|
|
837
837
|
e.refreshLayout();
|
|
838
838
|
});
|
|
839
839
|
},
|
|
@@ -891,9 +891,9 @@ export default {
|
|
|
891
891
|
columnSelectedWidget.id = idVal;
|
|
892
892
|
columnSelectedWidget.options.name = idVal;
|
|
893
893
|
if (
|
|
894
|
-
!isChange
|
|
895
|
-
row.columnOption
|
|
896
|
-
Object.keys(row.columnOption).length
|
|
894
|
+
!isChange
|
|
895
|
+
&& row.columnOption
|
|
896
|
+
&& Object.keys(row.columnOption).length
|
|
897
897
|
) {
|
|
898
898
|
row.columnOption.required = row.required || false;
|
|
899
899
|
columnSelectedWidget.options = row.columnOption;
|
|
@@ -1009,8 +1009,8 @@ export default {
|
|
|
1009
1009
|
this.treeData.forEach((item1) => {
|
|
1010
1010
|
item1.children.forEach((item2) => {
|
|
1011
1011
|
if (
|
|
1012
|
-
fields.includes(item2.name)
|
|
1013
|
-
!defaultCheckedKeys.includes(item2.name)
|
|
1012
|
+
fields.includes(item2.name)
|
|
1013
|
+
&& !defaultCheckedKeys.includes(item2.name)
|
|
1014
1014
|
) {
|
|
1015
1015
|
defaultCheckedKeys.push(item2.name);
|
|
1016
1016
|
}
|
|
@@ -1054,10 +1054,10 @@ export default {
|
|
|
1054
1054
|
this.showTableConfigDialog = true;
|
|
1055
1055
|
},
|
|
1056
1056
|
downloadExcel() {
|
|
1057
|
-
let defaultUrl
|
|
1058
|
-
"http://file.sc.5mall.com/download/repo1/b/mk1/2024/12/13/b2aea548-a9a8-4dca-bba7-8d9c6134ebe3.xlsx";
|
|
1059
|
-
let xformImportTemplateFile
|
|
1060
|
-
setttingConfig.xformImportTemplateFile || defaultUrl;
|
|
1057
|
+
let defaultUrl
|
|
1058
|
+
= "http://file.sc.5mall.com/download/repo1/b/mk1/2024/12/13/b2aea548-a9a8-4dca-bba7-8d9c6134ebe3.xlsx";
|
|
1059
|
+
let xformImportTemplateFile
|
|
1060
|
+
= setttingConfig.xformImportTemplateFile || defaultUrl;
|
|
1061
1061
|
if (!xformImportTemplateFile) return;
|
|
1062
1062
|
this.$commonFileUtil.downloadFile(
|
|
1063
1063
|
xformImportTemplateFile,
|