@ibiz-template/runtime 0.7.7 → 0.7.8
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/dist/index.esm.js +33 -3
- package/dist/index.system.min.js +1 -1
- package/out/controller/control/dashboard/dashboard.controller.d.ts +7 -0
- package/out/controller/control/dashboard/dashboard.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/dashboard.controller.js +13 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts +6 -0
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.d.ts.map +1 -1
- package/out/controller/control/dashboard/portlet/portlet-part/portlet-part.controller.js +19 -0
- package/out/controller/control/form/form/form.controller.js +1 -1
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts +13 -0
- package/out/interface/controller/controller/control/portlet/i-portlet.controller.d.ts.map +1 -1
- package/out/interface/controller/event/control/i-dashboard.event.d.ts +9 -0
- package/out/interface/controller/event/control/i-dashboard.event.d.ts.map +1 -1
- package/out/service/service/counter/counter.service.js +2 -2
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -7988,8 +7988,8 @@ var CounterService = class {
|
|
|
7988
7988
|
*/
|
|
7989
7989
|
static async getCounter(model, context, params) {
|
|
7990
7990
|
let id = model.id;
|
|
7991
|
-
if (params && params.
|
|
7992
|
-
id = params.
|
|
7991
|
+
if (params && params.srfcustomtag) {
|
|
7992
|
+
id = params.srfcustomtag;
|
|
7993
7993
|
}
|
|
7994
7994
|
if (this.counterMap.has(id)) {
|
|
7995
7995
|
const counter2 = this.counterMap.get(id);
|
|
@@ -22281,6 +22281,19 @@ var DashboardController = class extends ControlController {
|
|
|
22281
22281
|
}
|
|
22282
22282
|
});
|
|
22283
22283
|
}
|
|
22284
|
+
/**
|
|
22285
|
+
* 重置门户
|
|
22286
|
+
*
|
|
22287
|
+
* @return {*} {Promise<void>}
|
|
22288
|
+
* @memberof DashboardController
|
|
22289
|
+
*/
|
|
22290
|
+
async resetPortlets() {
|
|
22291
|
+
Object.keys(this.portlets).forEach((key) => {
|
|
22292
|
+
const portlet = this.portlets[key];
|
|
22293
|
+
portlet.resetConfig();
|
|
22294
|
+
});
|
|
22295
|
+
this.evt.emit("onResetPortlet", void 0);
|
|
22296
|
+
}
|
|
22284
22297
|
/**
|
|
22285
22298
|
* 通知所有表单成员表单操作过程中的数据变更
|
|
22286
22299
|
*
|
|
@@ -22601,6 +22614,7 @@ var PortletPartController = class {
|
|
|
22601
22614
|
this.state.title = title;
|
|
22602
22615
|
}
|
|
22603
22616
|
this.config = { srftitle: this.state.title };
|
|
22617
|
+
Object.assign(this.params, this.config);
|
|
22604
22618
|
await this.initActionStates();
|
|
22605
22619
|
}
|
|
22606
22620
|
/**
|
|
@@ -22638,6 +22652,22 @@ var PortletPartController = class {
|
|
|
22638
22652
|
config: this.config
|
|
22639
22653
|
});
|
|
22640
22654
|
}
|
|
22655
|
+
/**
|
|
22656
|
+
* 重置自定义配置
|
|
22657
|
+
*
|
|
22658
|
+
* @memberof PortletPartController
|
|
22659
|
+
*/
|
|
22660
|
+
resetConfig() {
|
|
22661
|
+
const { title, titleLanguageRes } = this.model;
|
|
22662
|
+
this.params = new IBizParams2({}, this.dashboard.params);
|
|
22663
|
+
if (titleLanguageRes) {
|
|
22664
|
+
this.state.title = ibiz.i18n.t(titleLanguageRes.lanResTag, title);
|
|
22665
|
+
} else {
|
|
22666
|
+
this.state.title = title;
|
|
22667
|
+
}
|
|
22668
|
+
this.config = { srftitle: this.state.title };
|
|
22669
|
+
Object.assign(this.params, this.config);
|
|
22670
|
+
}
|
|
22641
22671
|
/**
|
|
22642
22672
|
* 数据改变方法
|
|
22643
22673
|
* @param {DataChangeEvent} event
|
|
@@ -24322,7 +24352,7 @@ var FormController = class extends ControlController {
|
|
|
24322
24352
|
const counter = await CounterService.getCounterByRef(
|
|
24323
24353
|
counterRef,
|
|
24324
24354
|
this.context,
|
|
24325
|
-
dataKey ? {
|
|
24355
|
+
dataKey ? { srfcustomtag: dataKey, ...this.params } : { ...this.params }
|
|
24326
24356
|
);
|
|
24327
24357
|
this.counters[counterRef.id] = counter;
|
|
24328
24358
|
})
|