openatc-components 0.1.16 → 0.1.17

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.
@@ -377,7 +377,7 @@ export default {
377
377
  this.patternSelect = res.data.data.param.patternList.map(item => {
378
378
  return {
379
379
  value: item.id,
380
- desc: item.desc ? item.desc : '' + item.id ? item.id : ''
380
+ label: item.desc ? item.desc : '' + item.id ? item.id : ''
381
381
  }
382
382
  })
383
383
  })
@@ -518,7 +518,8 @@ export default {
518
518
  }
519
519
  })
520
520
  control.control = that.preselectModel === -1 ? that.currModel : that.preselectModel
521
- control.terminal = isNaN(parseInt(manualInfo.tempPatternid)) ? Number(manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : manualInfo.tempPatternid
521
+ // control.terminal = isNaN(parseInt(manualInfo.tempPatternid)) ? Number(manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : manualInfo.tempPatternid
522
+ control.terminal = Number(manualInfo.tempPatternid)
522
523
  control.delay = Number(manualInfo.tempDelay)
523
524
  control.duration = Number(manualInfo.tempDuration)
524
525
  control.value = that.preselectStages === -1 ? 0 : that.preselectStages
@@ -27,7 +27,8 @@
27
27
  <el-option
28
28
  v-for="item in patternSelect"
29
29
  :key="item.value"
30
- :value="item.desc">
30
+ :label="item.label"
31
+ :value="item.value">
31
32
  </el-option>
32
33
  </el-select>
33
34
  </el-form-item>