openatc-components 0.5.7 → 0.5.9

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.07",
3
+ "version": "0.5.09",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -45,6 +45,7 @@
45
45
  :isShowBack="isShowBack"
46
46
  :isShowRecovery="isShowRecovery"
47
47
  :isShowImplement="isShowImplement"
48
+ :protocol="protocol"
48
49
  @closeManualModal="closeManualModal"
49
50
  @selectModel="selectModel"
50
51
  @selectStages="selectStages"
@@ -112,6 +113,7 @@
112
113
  :isShowBack="isShowBack"
113
114
  :isShowRecovery="isShowRecovery"
114
115
  :isShowImplement="isShowImplement"
116
+ :protocol="protocol"
115
117
  @closeManualModal="closeManualModal"
116
118
  @selectModel="selectModel"
117
119
  @selectStages="selectStages"
@@ -229,6 +231,10 @@ export default {
229
231
  isShowImplement: {
230
232
  type: Boolean,
231
233
  default: true
234
+ },
235
+ protocol: {
236
+ type: String,
237
+ default: 'ocp'
232
238
  }
233
239
  },
234
240
  data () {
@@ -324,7 +330,7 @@ export default {
324
330
  permission: 'configer:manual:base',
325
331
  iconName: '感应式行人过街控制'
326
332
  }],
327
- residentControlList: [
333
+ originResidentControlList: [
328
334
  {
329
335
  type: '步进',
330
336
  id: 4,
@@ -358,6 +364,7 @@ export default {
358
364
  bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
359
365
  }
360
366
  ],
367
+ residentControlList: [],
361
368
  specialControlList: [
362
369
  {
363
370
  type: '黄闪',
@@ -537,6 +544,18 @@ export default {
537
544
  this.PhaseDataModel = new PhaseDataModel(val)
538
545
  }
539
546
  }
547
+ },
548
+ protocol: {
549
+ handler: function (val, oldVal) {
550
+ // 20999 协议驻留控制里仅支持阶段锁定
551
+ if (val === 'rcp') {
552
+ this.residentControlList = this.originResidentControlList.filter(item => item.type === '阶段锁定')
553
+ } else {
554
+ this.residentControlList = [...this.originResidentControlList]
555
+ }
556
+ },
557
+ deep: true,
558
+ immediate: true
540
559
  }
541
560
  },
542
561
  created () {
@@ -117,7 +117,7 @@
117
117
 
118
118
  </el-tab-pane>
119
119
  <el-tab-pane :label="$t('openatccomponents.overview.schemeselection')" name="schemeselection"
120
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('schemeselection') !== -1))">
120
+ v-if="protocol !== 'rcp' && (funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('schemeselection') !== -1))">
121
121
  <ControlModelGroup
122
122
  v-if="activeName === 'schemeselection'"
123
123
  ref="ControlModelGroup"
@@ -184,7 +184,7 @@
184
184
  </div>
185
185
  </el-tab-pane>
186
186
  <el-tab-pane :label="$t('openatccomponents.overview.others')" name="others"
187
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('others') !== -1))">
187
+ v-if="protocol !== 'rcp' && (funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('others') !== -1))">
188
188
  <ControlModelGroup
189
189
  v-if="activeName === 'others'"
190
190
  ref="ControlModelGroup"
@@ -362,6 +362,9 @@ export default {
362
362
  },
363
363
  thirdPartyControl: {
364
364
  type: Array
365
+ },
366
+ protocol: {
367
+ type: String
365
368
  }
366
369
  },
367
370
  watch: {
@@ -36,7 +36,8 @@
36
36
  :phaseList="phaseList2"
37
37
  :realtimeStatusModalvisible="false"
38
38
  :isShowBack="false"
39
- :isShowRecovery="false"/>
39
+ :isShowRecovery="false"
40
+ protocol="rcp"/>
40
41
  </div>
41
42
  </div>
42
43
  </template>