openatc-components 0.5.73 → 0.5.75

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.5.73",
3
+ "version": "0.5.75",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -155,6 +155,9 @@ const en = {
155
155
  'autocontrol': 'Multi Period',
156
156
  'yellowflash': 'Yellow light(s)',
157
157
  'allred': 'Red Control(s)',
158
+ 'lockingtype': 'Lock Type',
159
+ 'phasepass': 'Phase Pass',
160
+ 'stagepass': 'Stage Pass',
158
161
  'step': 'Step Control',
159
162
  'fixedperiod': 'Fixed_Cycle Control',
160
163
  'inductioncontrol': 'Free Control',
@@ -307,7 +310,7 @@ const en = {
307
310
  'transitioneffic': 'The execution is successful. It will take effect after the transition switch!',
308
311
  'controlnumerrormess': 'When the control mode is user-defined, the control mode number cannot be empty!',
309
312
  'delay': 'Delay time(s)',
310
- 'duration': 'Duration(s)',
313
+ 'duration': 'Control time(s)',
311
314
  'curModel': 'Current Model',
312
315
  'curStage': 'Current Stage',
313
316
  'curPhase': 'Current Phase',
@@ -205,6 +205,9 @@ const ru = {
205
205
  'autocontrol': 'Многоэтапный',
206
206
  'yellowflash': 'Желтый свет (с)',
207
207
  'allred': 'Полностью красный (с)',
208
+ 'lockingtype': 'Тип блокировки',
209
+ 'phasepass': 'Пропуск фазы',
210
+ 'stagepass': 'Пропуск этапа',
208
211
  'step': 'Шаг',
209
212
  'fixedperiod': 'Фиксированный цикл',
210
213
  'inductioncontrol': 'Индуктивное управление',
@@ -305,7 +308,7 @@ const ru = {
305
308
  'transitioneffic': 'Выполнение успешно, вступит в силу после перехода!',
306
309
  'controlnumerrormess': 'При настраиваемом способе управления номер способа обязательный!',
307
310
  'delay': 'Время задержки (с)',
308
- 'duration': 'Длительность (с)',
311
+ 'duration': 'Контролировать время (с)',
309
312
  'curModel': 'Способ управления',
310
313
  'curStage': 'Текущий этап',
311
314
  'curPhase': 'Текущая фаза',
@@ -207,6 +207,9 @@ const zh = {
207
207
  'autocontrol': '多时段',
208
208
  'yellowflash': '黄灯(s)',
209
209
  'allred': '全红(s)',
210
+ 'lockingtype': '锁定类型',
211
+ 'phasepass': '相位放行',
212
+ 'stagepass': '阶段放行',
210
213
  'step': '步进',
211
214
  'fixedperiod': '定周期',
212
215
  'inductioncontrol': '感应控制',
@@ -307,7 +310,7 @@ const zh = {
307
310
  'transitioneffic': '执行成功,过渡切换后生效!',
308
311
  'controlnumerrormess': '控制方式为自定义时,控制方式编号不能为空!',
309
312
  'delay': '延迟时间(s)',
310
- 'duration': '持续时间(s)',
313
+ 'duration': '控制时间(s)',
311
314
  'curModel': '控制方式',
312
315
  'curStage': '当前阶段',
313
316
  'curPhase': '当前相位',
@@ -54,6 +54,14 @@
54
54
  prop="intersection">
55
55
  <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempRedclear" size="small"></el-input-number>
56
56
  </el-form-item>
57
+ <el-form-item
58
+ :label="$t('openatccomponents.overview.lockingtype')"
59
+ prop="group">
60
+ <el-select v-model="manualInfo.group" size="small" style="width: 100%;">
61
+ <el-option :label="$t('openatccomponents.overview.phasepass')" :value="0"></el-option>
62
+ <el-option :label="$t('openatccomponents.overview.stagepass')" :value="1"></el-option>
63
+ </el-select>
64
+ </el-form-item>
57
65
  </el-form>
58
66
  </el-col>
59
67
  </el-row>
@@ -140,7 +148,8 @@ export default {
140
148
  tempDuration: 600, // 控制方式手动操作的情况下的持续时间的临时值。
141
149
  tempYellow: 3,
142
150
  tempRedclear: 2,
143
- tempMingreen: 15
151
+ tempMingreen: 15,
152
+ group: 0
144
153
  },
145
154
  lockingOption: [{
146
155
  value: 0
@@ -187,6 +196,9 @@ export default {
187
196
  if (this.manualInfo.tempMingreen !== undefined) {
188
197
  submitdata.data.mingreen = Number(this.manualInfo.tempMingreen)
189
198
  }
199
+ if (this.manualInfo.group !== undefined) {
200
+ submitdata.data.group = Number(this.manualInfo.group)
201
+ }
190
202
  submitdata.data.phases = this.phases
191
203
  this.$emit('closePhaseControl', submitdata)
192
204
  },
@@ -41,13 +41,19 @@
41
41
 
42
42
  <div class="stage-part" v-if="preselecttype === '阶段锁定'">
43
43
  <div class="stage-label">{{$t('openatccomponents.overview.stage')}}</div>
44
- <div style="width: 100%; height: auto;overflow: hidden;" v-if="isHasPermission('configer:manual:dwell')">
45
- <Stages :crossStatusData="manuals?manualsStage:realtimeStage"
46
- :phaseList="phaseList"
47
- :preselectStages="preselectStages"
48
- :preselectModel="preselectModel"
49
- :isShowCurrentStage="false"
50
- @onSelectStages="selectStages"></Stages>
44
+ <div style="width: 100%; height: auto;overflow: hidden;display: flex;align-items: center;" v-if="isHasPermission('configer:manual:dwell')">
45
+ <div style="flex: 1;">
46
+ <Stages :crossStatusData="manuals?manualsStage:realtimeStage"
47
+ :phaseList="phaseList"
48
+ :preselectStages="preselectStages"
49
+ :preselectModel="preselectModel"
50
+ :isShowCurrentStage="false"
51
+ @onSelectStages="selectStages"></Stages>
52
+ </div>
53
+ <div style="display: flex;gap: 10px;margin-left: 15px;">
54
+ <div class="single-model stage-btn stage-btn-extend" @click="selectStages(998)" :class="preselectStages === 998 ? 'stage-btn-active' : ''">延长</div>
55
+ <div class="single-model stage-btn stage-btn-shorten" @click="selectStages(999)" :class="preselectStages === 999 ? 'stage-btn-active' : ''">缩短</div>
56
+ </div>
51
57
  </div>
52
58
  </div>
53
59
 
@@ -362,6 +362,26 @@
362
362
  .stage-part {
363
363
  margin-top: 6PX;
364
364
  }
365
+ .stage-btn {
366
+ display: flex;
367
+ align-items: center;
368
+ justify-content: center;
369
+ font-size: 14px;
370
+ background-color: #edf6ff;
371
+ color: #606266;
372
+ transition: all 0.3s;
373
+ }
374
+ .stage-btn:hover {
375
+ background-color: #c1e0ff;
376
+ }
377
+ .stage-btn-active {
378
+ background-color: #c1e0ff !important;
379
+ color: #606266;
380
+ }
381
+ .stage-btn-active:hover {
382
+ background-color: #c1e0ff !important;
383
+ color: #606266;
384
+ }
365
385
  }
366
386
  .priority-control{
367
387
  height: 100%;