mooho-base-admin-plus 2.0.54 → 2.0.56
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.
|
@@ -23385,7 +23385,11 @@ var mixinPage = {
|
|
|
23385
23385
|
return false;
|
|
23386
23386
|
}
|
|
23387
23387
|
},
|
|
23388
|
-
tParam(
|
|
23388
|
+
tParam(value) {
|
|
23389
|
+
if (value == null) {
|
|
23390
|
+
return null;
|
|
23391
|
+
}
|
|
23392
|
+
let str = value.toString();
|
|
23389
23393
|
let array = str.split("|");
|
|
23390
23394
|
let key = array[0];
|
|
23391
23395
|
array.shift();
|
|
@@ -37049,7 +37053,7 @@ const _sfc_main$w = {
|
|
|
37049
37053
|
item.needClear = true;
|
|
37050
37054
|
});
|
|
37051
37055
|
}
|
|
37052
|
-
} else if (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect") {
|
|
37056
|
+
} else if (sender && (column.controlType === "DialogSelect" || column.controlType === "MultiDialogSelect")) {
|
|
37053
37057
|
this.setData(this.data, column.code, null);
|
|
37054
37058
|
column.triggers.forEach((item) => {
|
|
37055
37059
|
item.needClear = true;
|
|
@@ -42143,6 +42147,26 @@ const _sfc_main$q = {
|
|
|
42143
42147
|
this.total = res2.totalCount;
|
|
42144
42148
|
this.data = res2.data;
|
|
42145
42149
|
}
|
|
42150
|
+
if (this.tableView.isDynamicColumn) {
|
|
42151
|
+
this.columns = this.columns.filter((item) => item.slot != "normal");
|
|
42152
|
+
if (this.data.length > 0) {
|
|
42153
|
+
let index2 = 0;
|
|
42154
|
+
for (const key in this.data[0]) {
|
|
42155
|
+
this.columns.push({
|
|
42156
|
+
name: key,
|
|
42157
|
+
title: key,
|
|
42158
|
+
code: key,
|
|
42159
|
+
key: "column_" + index2,
|
|
42160
|
+
dataType: "String",
|
|
42161
|
+
align: "center",
|
|
42162
|
+
slot: "normal",
|
|
42163
|
+
controlType: "Label",
|
|
42164
|
+
isShow: true
|
|
42165
|
+
});
|
|
42166
|
+
}
|
|
42167
|
+
index2++;
|
|
42168
|
+
}
|
|
42169
|
+
}
|
|
42146
42170
|
if (this.current > Math.ceil(this.total / this.size)) {
|
|
42147
42171
|
this.current = Math.ceil(this.total / this.size);
|
|
42148
42172
|
}
|