openatc-components 0.1.21 → 0.1.23

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.
@@ -475,7 +475,7 @@ export default {
475
475
  Object.keys(data).forEach(function (key) {
476
476
  if (that.$i18n.locale === 'en') {
477
477
  if (key === 'mode') {
478
- if (data[key] > 0 && data[key] < 6) {
478
+ if (that.ParamsModeEn.get(data[key]) !== undefined) {
479
479
  data[key] = that.ParamsModeEn.get(data[key])
480
480
  } else {
481
481
  data[key] = that.ParamsModeEn.get(0)
@@ -491,7 +491,7 @@ export default {
491
491
  }
492
492
  } else if (that.$i18n.locale === 'zh') {
493
493
  if (key === 'mode') {
494
- if (data[key] > 0 && data[key] < 6) {
494
+ if (that.ParamsMode.get(data[key]) !== undefined) {
495
495
  data[key] = that.ParamsMode.get(data[key])
496
496
  } else {
497
497
  data[key] = that.ParamsMode.get(0)
@@ -182,9 +182,12 @@ export default {
182
182
  control: 24,
183
183
  delay: this.manualInfo.delay,
184
184
  duration: this.manualInfo.duration,
185
- type: this.manualInfo.type,
186
- phase: this.manualInfo.phase,
187
- level: this.manualInfo.level
185
+ data: {
186
+ type: this.manualInfo.type,
187
+ phase: this.manualInfo.phase,
188
+ level: this.manualInfo.level
189
+ }
190
+
188
191
  }
189
192
  console.log(submitdata, 'submitdata')
190
193
  this.$emit('closePhaseControl', submitdata)
@@ -549,7 +549,7 @@ export default {
549
549
  Object.keys(data).forEach(function (key) {
550
550
  if (that.$i18n.locale === 'en') {
551
551
  if (key === 'mode') {
552
- if (data[key] > 0 && data[key] < 6) {
552
+ if (that.ParamsModeEn.get(data[key]) !== undefined) {
553
553
  data[key] = that.ParamsModeEn.get(data[key])
554
554
  } else {
555
555
  data[key] = that.ParamsModeEn.get(0)
@@ -565,7 +565,7 @@ export default {
565
565
  }
566
566
  } else if (that.$i18n.locale === 'zh') {
567
567
  if (key === 'mode') {
568
- if (data[key] > 0 && data[key] < 6) {
568
+ if (that.ParamsMode.get(data[key]) !== undefined) {
569
569
  data[key] = that.ParamsMode.get(data[key])
570
570
  } else {
571
571
  data[key] = that.ParamsMode.get(0)