ps-toolkit-ui 1.6.88 → 1.6.91

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.
@@ -840,6 +840,7 @@
840
840
  ResultStatusEnum[ResultStatusEnum["Success"] = 1] = "Success";
841
841
  ResultStatusEnum[ResultStatusEnum["Unauthorized"] = 2] = "Unauthorized";
842
842
  ResultStatusEnum[ResultStatusEnum["NotAccess"] = 3] = "NotAccess";
843
+ ResultStatusEnum[ResultStatusEnum["NotRegistered"] = 4] = "NotRegistered";
843
844
  })(exports.ResultStatusEnum || (exports.ResultStatusEnum = {}));
844
845
  (function (PermissionTypeEnum) {
845
846
  PermissionTypeEnum[PermissionTypeEnum["Form"] = -1] = "Form";
@@ -1329,7 +1330,10 @@
1329
1330
  }
1330
1331
  else {
1331
1332
  var m = '';
1332
- if (res.status === exports.ResultStatusEnum.Unauthorized) {
1333
+ if (res.status === exports.ResultStatusEnum.NotRegistered) {
1334
+ m = form.l('FormBaseErrorRegistered');
1335
+ }
1336
+ else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1333
1337
  m = form.l('FormBaseErrorExpired');
1334
1338
  }
1335
1339
  else if (res.status === exports.ResultStatusEnum.NotAccess) {
@@ -1434,7 +1438,10 @@
1434
1438
  }
1435
1439
  else {
1436
1440
  var m = '';
1437
- if (res.status === exports.ResultStatusEnum.Unauthorized) {
1441
+ if (res.status === exports.ResultStatusEnum.NotRegistered) {
1442
+ m = 'FormBaseErrorRegistered';
1443
+ }
1444
+ else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1438
1445
  m = 'FormBaseErrorExpired';
1439
1446
  }
1440
1447
  else if (res.status === exports.ResultStatusEnum.NotAccess) {
@@ -1498,7 +1505,10 @@
1498
1505
  }
1499
1506
  else {
1500
1507
  var m = '';
1501
- if (res.status === exports.ResultStatusEnum.Unauthorized) {
1508
+ if (res.status === exports.ResultStatusEnum.NotRegistered) {
1509
+ m = 'FormBaseErrorRegistered';
1510
+ }
1511
+ else if (res.status === exports.ResultStatusEnum.Unauthorized) {
1502
1512
  m = 'FormBaseErrorExpired';
1503
1513
  }
1504
1514
  else if (res.status === exports.ResultStatusEnum.NotAccess) {
@@ -1520,7 +1530,7 @@
1520
1530
  HelperClass.addNotification(_this.l(m));
1521
1531
  }
1522
1532
  if (failure) {
1523
- failure(res.message);
1533
+ failure(m);
1524
1534
  }
1525
1535
  if (btn) {
1526
1536
  btn.loading = false;
@@ -5686,9 +5696,6 @@
5686
5696
  if (f.selected) {
5687
5697
  l.push(f.value);
5688
5698
  }
5689
- if (f.selected && f.options.length !== 0) {
5690
- continue;
5691
- }
5692
5699
  var rs = this.getSelected(f.options);
5693
5700
  l = l.concat(rs);
5694
5701
  }