mooho-base-admin-plus 0.1.56 → 0.1.57
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.
|
@@ -26187,15 +26187,17 @@ const _sfc_main$K = {
|
|
|
26187
26187
|
async init(pageID) {
|
|
26188
26188
|
let res2 = await this.loadPage(pageID);
|
|
26189
26189
|
this.page = res2.customPage;
|
|
26190
|
-
|
|
26191
|
-
this.$refs.table.
|
|
26190
|
+
setTimeout(() => {
|
|
26191
|
+
this.$refs.table.init(this.page.tableViewCode, () => {
|
|
26192
|
+
this.$refs.table.loadData();
|
|
26193
|
+
});
|
|
26194
|
+
if (!!(this.page.formViewCode || "").trim()) {
|
|
26195
|
+
this.$refs.form.init(this.page.formViewCode);
|
|
26196
|
+
}
|
|
26197
|
+
if (!!(this.page.formViewCode || "").trim() || !!(this.page.showViewCode || "").trim()) {
|
|
26198
|
+
this.$refs.showForm.init(!(this.page.showViewCode || "").trim() ? this.page.formViewCode : this.page.showViewCode);
|
|
26199
|
+
}
|
|
26192
26200
|
});
|
|
26193
|
-
if (!!(this.page.formViewCode || "").trim()) {
|
|
26194
|
-
this.$refs.form.init(this.page.formViewCode);
|
|
26195
|
-
}
|
|
26196
|
-
if (!!(this.page.formViewCode || "").trim() || !!(this.page.showViewCode || "").trim()) {
|
|
26197
|
-
this.$refs.showForm.init(!(this.page.showViewCode || "").trim() ? this.page.formViewCode : this.page.showViewCode);
|
|
26198
|
-
}
|
|
26199
26201
|
},
|
|
26200
26202
|
create() {
|
|
26201
26203
|
let application = {
|
|
@@ -26971,10 +26973,12 @@ const _sfc_main$I = {
|
|
|
26971
26973
|
this.page = res2.customPage;
|
|
26972
26974
|
res2 = await this.loadView(this.page.tableViewCode);
|
|
26973
26975
|
this.tableView = res2.dataView;
|
|
26974
|
-
|
|
26975
|
-
this.$refs.table.
|
|
26976
|
+
setTimeout(() => {
|
|
26977
|
+
this.$refs.table.init(this.page.tableViewCode, () => {
|
|
26978
|
+
this.$refs.table.loadData();
|
|
26979
|
+
});
|
|
26980
|
+
this.$refs.chart.initWithTable(this.tableView, this.$refs.table.data);
|
|
26976
26981
|
});
|
|
26977
|
-
this.$refs.chart.initWithTable(this.tableView, this.$refs.table.data);
|
|
26978
26982
|
},
|
|
26979
26983
|
onLoadData() {
|
|
26980
26984
|
this.$refs.chart.loadChart(this.$refs.table.data);
|
|
@@ -27049,25 +27053,27 @@ const _sfc_main$H = {
|
|
|
27049
27053
|
async init(pageID) {
|
|
27050
27054
|
let res2 = await this.loadPage(pageID);
|
|
27051
27055
|
this.page = res2.customPage;
|
|
27052
|
-
|
|
27053
|
-
this.$refs.table.
|
|
27054
|
-
|
|
27055
|
-
|
|
27056
|
-
|
|
27057
|
-
|
|
27058
|
-
|
|
27059
|
-
|
|
27060
|
-
|
|
27061
|
-
|
|
27062
|
-
|
|
27063
|
-
|
|
27064
|
-
|
|
27065
|
-
|
|
27066
|
-
|
|
27056
|
+
setTimeout(() => {
|
|
27057
|
+
this.$refs.table.init(this.page.tableViewCode, () => {
|
|
27058
|
+
this.$refs.table.loadData();
|
|
27059
|
+
});
|
|
27060
|
+
if (!!(this.page.formViewCode || "").trim()) {
|
|
27061
|
+
this.$refs.form.init(this.page.formViewCode);
|
|
27062
|
+
}
|
|
27063
|
+
this.page.controls = res2.customPageControls.filter((item) => {
|
|
27064
|
+
return item.customPageComponentID == null;
|
|
27065
|
+
});
|
|
27066
|
+
this.tables = res2.customPageComponents.filter((item) => {
|
|
27067
|
+
return item.componentType === "Table";
|
|
27068
|
+
});
|
|
27069
|
+
this.tables.forEach((component) => {
|
|
27070
|
+
component.controls = res2.customPageControls.filter((item) => {
|
|
27071
|
+
return item.customPageComponentID === component.id;
|
|
27072
|
+
});
|
|
27073
|
+
});
|
|
27074
|
+
this.forms = res2.customPageComponents.filter((item) => {
|
|
27075
|
+
return item.componentType === "Form";
|
|
27067
27076
|
});
|
|
27068
|
-
});
|
|
27069
|
-
this.forms = res2.customPageComponents.filter((item) => {
|
|
27070
|
-
return item.componentType === "Form";
|
|
27071
27077
|
});
|
|
27072
27078
|
},
|
|
27073
27079
|
controlClick(data2, targetCode, param) {
|