cat-qw-lib 2.1.41 → 2.1.42
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/fesm2022/cat-qw-lib.mjs
CHANGED
|
@@ -181,6 +181,8 @@ class SHARED {
|
|
|
181
181
|
static PRODUCT_ID = 'ProductId';
|
|
182
182
|
static EXPENDITURE = 'expenditure';
|
|
183
183
|
static INCOME = 'income';
|
|
184
|
+
static VALUATION = 'valuation';
|
|
185
|
+
static VALUATIONID = 'ValuationId';
|
|
184
186
|
static WIDGET_NAME = 'widgetName';
|
|
185
187
|
static IS_MENU = 'isMenu';
|
|
186
188
|
static ON_WIDGET_UPDATE = 'onWidgetUpdate';
|
|
@@ -5389,6 +5391,12 @@ class WidgetItemComponent {
|
|
|
5389
5391
|
case SHARED.EXPENDITURE:
|
|
5390
5392
|
updatedItem.value = applicantId;
|
|
5391
5393
|
break;
|
|
5394
|
+
case SHARED.VALUATION:
|
|
5395
|
+
const valuation = this.widget.dataItems.filter((val) => val.key === SHARED.VALUATIONID);
|
|
5396
|
+
console.log(valuation);
|
|
5397
|
+
updatedItem.value = valuation[0].value;
|
|
5398
|
+
console.log(updatedItem.value);
|
|
5399
|
+
break;
|
|
5392
5400
|
}
|
|
5393
5401
|
this.widgetStore.setWidgetData(this.widget);
|
|
5394
5402
|
this.widgetStore.setOnWidgetItemClick(updatedItem);
|