mooho-base-admin-plus 0.4.49 → 0.4.50
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
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
* @param {string} viewCode 视图代码
|
|
89
89
|
* @public
|
|
90
90
|
*/
|
|
91
|
-
async init(viewCode) {
|
|
91
|
+
async init(viewCode, callback) {
|
|
92
92
|
// 加载表格视图
|
|
93
93
|
let view = await this.loadDataView(viewCode);
|
|
94
94
|
|
|
@@ -104,11 +104,14 @@
|
|
|
104
104
|
this.setting = {};
|
|
105
105
|
}
|
|
106
106
|
|
|
107
|
-
// 图表
|
|
108
107
|
setTimeout(() => {
|
|
109
108
|
this.chart = this.$echarts.init(document.getElementById(this.uid));
|
|
110
109
|
|
|
111
|
-
|
|
110
|
+
if (typeof callback === 'function') {
|
|
111
|
+
callback(view);
|
|
112
|
+
} else {
|
|
113
|
+
this.loadData();
|
|
114
|
+
}
|
|
112
115
|
});
|
|
113
116
|
},
|
|
114
117
|
/**
|