openatc-components 0.1.107 → 0.1.109

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.
@@ -327,7 +327,7 @@ export default {
327
327
  }, {
328
328
  id: 24,
329
329
  permission: 'configer:manual:preempt',
330
- iconClass: 'tentativeplan'
330
+ iconClass: 'prioritycontrol'
331
331
  }, {
332
332
  id: 25,
333
333
  permission: 'configer:manual:optimize',
@@ -540,12 +540,16 @@ export default {
540
540
  patternCommit (manualInfo) {
541
541
  let that = this
542
542
  let control = {}
543
+ if (that.preselectModel === -1) {
544
+ this.$message.error(this.$t('openatccomponents.overview.noselectcontroltip'))
545
+ return
546
+ }
543
547
  that.ParamsMode.forEach(function (value, key, map) {
544
548
  if (that.controlData.mode === value) {
545
549
  control.mode = key
546
550
  }
547
551
  })
548
- control.control = that.preselectModel === -1 ? that.currModel : that.preselectModel
552
+ control.control = that.preselectModel
549
553
  // control.terminal = isNaN(parseInt(manualInfo.tempPatternid)) ? Number(manualInfo.tempPatternid.replace(/[^0-9]/ig, '')) : manualInfo.tempPatternid
550
554
  control.terminal = Number(manualInfo.tempPatternid)
551
555
  control.delay = Number(manualInfo.tempDelay)
@@ -101,7 +101,7 @@
101
101
 
102
102
  <script>
103
103
  import { getPhase } from './utils'
104
- // import { getIframdevid } from '../../../../utils/auth'
104
+ import { getIframdevid } from '../../../../utils/auth'
105
105
  import { getlockPhase, lockPhase } from '../../../../api/control'
106
106
  import Stages from '../../Stages/index'
107
107
  import RingDataModel from '../../../../utils/RingDataModel.js'
@@ -190,8 +190,9 @@ export default {
190
190
  },
191
191
  getLockPhase (val) {
192
192
  this.directions = [this.checkId(val)]
193
+ let iframdevid = getIframdevid()
193
194
  let param = {
194
- 'agentid': 'config_test',
195
+ 'agentid': iframdevid,
195
196
  'direction': this.directions
196
197
  }
197
198
  getlockPhase(param).then(res => {
@@ -223,8 +224,9 @@ export default {
223
224
  this.$message.error(this.$t('openatccomponents.overview.directionnull'))
224
225
  return
225
226
  }
227
+ let iframdevid = getIframdevid()
226
228
  let submitdata = {
227
- agentid: 'config_test',
229
+ agentid: iframdevid,
228
230
  direction: this.directions,
229
231
  greenflash: this.manualInfo.greenclear,
230
232
  duration: this.manualInfo.duration,