tnx-shared 5.1.145 → 5.1.149
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 +2 -21
- 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/workflow/process-workflow-target/process-workflow-target.component.d.ts.map +1 -1
- package/esm2015/components/workflow/process-workflow-target/process-workflow-target.component.js +3 -22
- package/fesm2015/tnx-shared.js +2 -21
- package/fesm2015/tnx-shared.js.map +1 -1
- package/package.json +2 -2
|
@@ -47409,32 +47409,13 @@
|
|
|
47409
47409
|
if (multiple === void 0) { multiple = true; }
|
|
47410
47410
|
var control = createUserPickerControl(field, label, 15, function (item) { return _this.getUserLabel(item); });
|
|
47411
47411
|
control.multiple = multiple;
|
|
47412
|
+
control.plusUrl = 'ForUserPicker';
|
|
47412
47413
|
// control.lazyLoadOrganization = true;
|
|
47413
47414
|
return control;
|
|
47414
47415
|
};
|
|
47415
47416
|
ProcessWorkflowTargetComponent.prototype.getUserLabel = function (item) {
|
|
47416
47417
|
var label = this._userService.getUserName(item);
|
|
47417
|
-
|
|
47418
|
-
label += " (" + item.tenChucVu + ")";
|
|
47419
|
-
}
|
|
47420
|
-
else if (item.lstTenChucVu && item.lstTenChucVu.length) {
|
|
47421
|
-
var lstChucVu = item.lstTenChucVu;
|
|
47422
|
-
var index = 0;
|
|
47423
|
-
for (var chucVu in lstChucVu) {
|
|
47424
|
-
switch (index) {
|
|
47425
|
-
case 0:
|
|
47426
|
-
label += "(" + chucVu + ",";
|
|
47427
|
-
break;
|
|
47428
|
-
case lstChucVu.length - 1:
|
|
47429
|
-
label += chucVu + ")";
|
|
47430
|
-
break;
|
|
47431
|
-
default:
|
|
47432
|
-
label += "" + chucVu;
|
|
47433
|
-
break;
|
|
47434
|
-
}
|
|
47435
|
-
index++;
|
|
47436
|
-
}
|
|
47437
|
-
}
|
|
47418
|
+
label = (item.maChucVu ? item.maChucVu + ". " : '') + ("" + label) + (item.tenDonVi ? " - " + item.tenDonVi : '');
|
|
47438
47419
|
return label;
|
|
47439
47420
|
};
|
|
47440
47421
|
ProcessWorkflowTargetComponent.prototype._createCoCauToChucControl = function (field, label) {
|