cat-qw-lib 0.43.57 → 0.43.60

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.
@@ -1367,7 +1367,8 @@ class BaseFormComponent {
1367
1367
  this.baseQuery = baseQuery;
1368
1368
  this.subscriptions = [];
1369
1369
  this.record = {};
1370
- this.initialRecord = {};
1370
+ this.initialRecord = JSON.parse(JSON.stringify(this.record));
1371
+ console.log("constructor=>", this.initialRecord);
1371
1372
  }
1372
1373
  message = [];
1373
1374
  attributeMode;
@@ -1386,12 +1387,16 @@ class BaseFormComponent {
1386
1387
  this.recordChange.next(res);
1387
1388
  });
1388
1389
  }
1390
+ else {
1391
+ this.initialRecord = JSON.parse(JSON.stringify(this.record));
1392
+ console.log("init initialRecord =>", this.initialRecord);
1393
+ }
1389
1394
  this.formStateService.selectIsFormNavigating()
1390
1395
  .pipe(takeUntil(this.destroy$))
1391
1396
  .subscribe((res) => {
1392
1397
  if (res) {
1393
1398
  console.log("0 unSavedCall", this.initialRecord);
1394
- console.log("1 unSavedCall", this.initialRecord);
1399
+ console.log("1 unSavedCall", this.record);
1395
1400
  this.checkUnsavedChanges();
1396
1401
  }
1397
1402
  });