@adins/ucsearch 3.4.9 → 3.4.10
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/README.md +4 -0
- package/esm2020/lib/model/input-search-obj.model.mjs +2 -1
- package/esm2020/lib/ucsearch.component.mjs +17 -4
- package/fesm2015/adins-ucsearch.mjs +18 -3
- package/fesm2015/adins-ucsearch.mjs.map +1 -1
- package/fesm2020/adins-ucsearch.mjs +17 -3
- package/fesm2020/adins-ucsearch.mjs.map +1 -1
- package/lib/model/input-search-obj.model.d.ts +1 -0
- package/package.json +1 -1
|
@@ -114,6 +114,7 @@ class InputSearchObj {
|
|
|
114
114
|
this.isJoinExAPI = false;
|
|
115
115
|
this.IsSubsection = true;
|
|
116
116
|
this.searchId = 'UcSearch';
|
|
117
|
+
this.dicts = {};
|
|
117
118
|
}
|
|
118
119
|
}
|
|
119
120
|
class EnviObj {
|
|
@@ -544,6 +545,10 @@ class UCSearchComponent {
|
|
|
544
545
|
const _value = this.autofill(data.component[i]);
|
|
545
546
|
this.configuration.component[i].value = isUppercase ? _value.toUpperCase() : _value;
|
|
546
547
|
}
|
|
548
|
+
if (data.component[i].type == "dropdown") {
|
|
549
|
+
const _value = this.autofill(data.component[i], false);
|
|
550
|
+
this.configuration.component[i].value = _value;
|
|
551
|
+
}
|
|
547
552
|
}
|
|
548
553
|
setTimeout(() => {
|
|
549
554
|
for (let j = 0; j < this.countForm; j++) {
|
|
@@ -561,9 +566,12 @@ class UCSearchComponent {
|
|
|
561
566
|
const userAccess = JSON.parse(this.DecryptString(_userAccess, "AdInsFOU12345678"));
|
|
562
567
|
return userAccess;
|
|
563
568
|
}
|
|
564
|
-
autofill(data) {
|
|
565
|
-
|
|
566
|
-
|
|
569
|
+
autofill(data, checkValue = true) {
|
|
570
|
+
var _a, _b;
|
|
571
|
+
if (checkValue) {
|
|
572
|
+
if (data.value != "")
|
|
573
|
+
return data.value;
|
|
574
|
+
}
|
|
567
575
|
const autofill = data.autofill;
|
|
568
576
|
if (autofill == undefined)
|
|
569
577
|
return data.value;
|
|
@@ -574,6 +582,13 @@ class UCSearchComponent {
|
|
|
574
582
|
const userAccess = this.getUserAccess();
|
|
575
583
|
return userAccess[autofill.key];
|
|
576
584
|
}
|
|
585
|
+
if (autofill.source == "dicts") {
|
|
586
|
+
if (!this.searchInput.dicts) {
|
|
587
|
+
console.log("dicts undefined...");
|
|
588
|
+
return autofill.key;
|
|
589
|
+
}
|
|
590
|
+
return (_b = (_a = this.searchInput) === null || _a === void 0 ? void 0 : _a.dicts[autofill.key]) !== null && _b !== void 0 ? _b : autofill.key;
|
|
591
|
+
}
|
|
577
592
|
return data.value;
|
|
578
593
|
}
|
|
579
594
|
SetRoleOfficeCodes(i) {
|