ps-toolkit-ui 1.6.70 → 1.6.73

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.
@@ -1814,7 +1814,7 @@
1814
1814
  this.inputs.forEach(function (inp) {
1815
1815
  var iv = _.get(d, inp.name);
1816
1816
  if (inp.type === exports.InputType.Vehicle) {
1817
- var ivt = _.get(d, inp.name + 'Type');
1817
+ var ivt = _.get(d, 'Type');
1818
1818
  inp.setValue({ Value: iv, Type: ivt }, true);
1819
1819
  }
1820
1820
  else if (inp.type === exports.InputType.VehicleSearch) {
@@ -6848,14 +6848,13 @@
6848
6848
  _this.fingerprint.clear();
6849
6849
  };
6850
6850
  this.inp.data = function () {
6851
- var d = {};
6851
+ var d = { Type: _this.type };
6852
6852
  d[_this.inp.name] = _this.type === exports.VehicleType.Car ? _this.car.data() :
6853
6853
  _this.type === exports.VehicleType.Motorcycle ? _this.motor.data() :
6854
6854
  _this.type === exports.VehicleType.CarF ? _this.carF.data() :
6855
6855
  _this.type === exports.VehicleType.CarG ? _this.carG.data() :
6856
6856
  _this.type === exports.VehicleType.Driver ? _this.driver.data() :
6857
6857
  _this.type === exports.VehicleType.Fingerprint ? _this.fingerprint.data() : null;
6858
- d[_this.inp.name + 'Type'] = _this.type;
6859
6858
  return d;
6860
6859
  };
6861
6860
  };
@@ -6953,6 +6952,7 @@
6953
6952
  this.car.displayLabel = this.carF.displayLabel = this.carG.displayLabel = this.motor.displayLabel = false;
6954
6953
  this.car.disabled = this.carF.disabled = this.carG.disabled = this.motor.disabled = this.inp.disabled;
6955
6954
  this.inp.setValue = function (v) {
6955
+ console.log(v);
6956
6956
  if (v != null && v.Value !== null) {
6957
6957
  _this.changeType(v.Type);
6958
6958
  setTimeout(function () {
@@ -7004,12 +7004,11 @@
7004
7004
  _this.carG.clear();
7005
7005
  };
7006
7006
  this.inp.data = function () {
7007
- var d = {};
7007
+ var d = { Type: _this.type };
7008
7008
  d[_this.inp.name] = _this.type === exports.VehicleType.Car ? _this.car.data() :
7009
7009
  _this.type === exports.VehicleType.Motorcycle ? _this.motor.data() :
7010
7010
  _this.type === exports.VehicleType.CarF ? _this.carF.data() :
7011
7011
  _this.type === exports.VehicleType.CarG ? _this.carG.data() : null;
7012
- d[_this.inp.name + 'Type'] = _this.type;
7013
7012
  return d;
7014
7013
  };
7015
7014
  };