tnx-shared 5.1.168 → 5.1.169
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/bundles/tnx-shared.umd.js +13 -3
- package/bundles/tnx-shared.umd.js.map +1 -1
- package/bundles/tnx-shared.umd.min.js +1 -1
- package/bundles/tnx-shared.umd.min.js.map +1 -1
- package/components/crud/crud-list/crud-list.component.d.ts.map +1 -1
- package/components/workflow/services/workflow-history.service.d.ts +4 -0
- package/components/workflow/services/workflow-history.service.d.ts.map +1 -1
- package/components/workflow/workflow-history-new/workflow-history-new.component.d.ts.map +1 -1
- package/esm2015/components/crud/crud-list/crud-list.component.js +2 -4
- package/esm2015/components/workflow/services/workflow-history.service.js +12 -1
- package/esm2015/components/workflow/workflow-history-new/workflow-history-new.component.js +2 -1
- package/fesm2015/tnx-shared.js +13 -3
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
- package/tnx-shared.metadata.json +1 -1
|
@@ -11478,6 +11478,7 @@
|
|
|
11478
11478
|
__extends(WorkflowHistoryService, _super);
|
|
11479
11479
|
function WorkflowHistoryService(http, injector, _moduleConfigService) {
|
|
11480
11480
|
var _this = _super.call(this, http, injector, _moduleConfigService.getConfig().environment.apiDomain.workflowEndpoint + "/" + _moduleConfigService.getConfig().environment.apiVersion + "/WorkflowHistory") || this;
|
|
11481
|
+
_this.serviceManagers = {};
|
|
11481
11482
|
_this.entityName = 'WorkflowHistory';
|
|
11482
11483
|
_this.serviceCode = 'workflow';
|
|
11483
11484
|
_this.apiDomain = _moduleConfigService.getConfig().environment.apiDomain;
|
|
@@ -11486,6 +11487,16 @@
|
|
|
11486
11487
|
_this.apiVersion = _moduleConfigService.getConfig().environment.apiVersion;
|
|
11487
11488
|
return _this;
|
|
11488
11489
|
}
|
|
11490
|
+
WorkflowHistoryService.prototype.registerService = function (settingKey, service) {
|
|
11491
|
+
this.serviceManagers[settingKey] = service;
|
|
11492
|
+
};
|
|
11493
|
+
WorkflowHistoryService.prototype.getEndpointByService = function (service) {
|
|
11494
|
+
return service.endPoint + "/" + this._moduleConfig.environment.apiVersion;
|
|
11495
|
+
};
|
|
11496
|
+
WorkflowHistoryService.prototype.changeEndpoint = function (baseService) {
|
|
11497
|
+
this.serviceUri = this.getEndpointByService(baseService) + "/WorkflowHistory";
|
|
11498
|
+
return this;
|
|
11499
|
+
};
|
|
11489
11500
|
WorkflowHistoryService.prototype.getLastByItemId = function (itemId) {
|
|
11490
11501
|
// return this.getDetailByFilter(
|
|
11491
11502
|
// [
|
|
@@ -20379,6 +20390,7 @@
|
|
|
20379
20390
|
}
|
|
20380
20391
|
buttonContexts.sort(multipleSort('soThuTu'));
|
|
20381
20392
|
workflowHistoryService = this._injector.get(WorkflowHistoryService);
|
|
20393
|
+
workflowHistoryService.changeEndpoint(this.setting.baseService);
|
|
20382
20394
|
userService = this._injector.get(UserService);
|
|
20383
20395
|
userId = userService.getId();
|
|
20384
20396
|
userIdStringUpper = '';
|
|
@@ -21418,9 +21430,6 @@
|
|
|
21418
21430
|
if (rowData['metadataStatus'] && rowData['metadataStatus'] != '0') {
|
|
21419
21431
|
return true;
|
|
21420
21432
|
}
|
|
21421
|
-
if (rowData.__workflowCode) {
|
|
21422
|
-
return true;
|
|
21423
|
-
}
|
|
21424
21433
|
return false;
|
|
21425
21434
|
};
|
|
21426
21435
|
CrudListComponent.prototype.showHistory = function (rowData) {
|
|
@@ -48215,6 +48224,7 @@
|
|
|
48215
48224
|
var _this = this;
|
|
48216
48225
|
this.loadDetailFromQueryParam = false;
|
|
48217
48226
|
this.setting.baseService = this._workflowHistoryService;
|
|
48227
|
+
this._workflowHistoryService.changeEndpoint(this.businessSetting.baseService);
|
|
48218
48228
|
this.setting.multipleCheckWhenClickRow = false;
|
|
48219
48229
|
this.setting.settingKey = '__workflow';
|
|
48220
48230
|
this.currentWorkflow = this.workflowSetting.workflows.find(function (q) { return q.code == _this.item.__workflowCode; });
|