openatc-components 0.5.7 → 0.5.8

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.
@@ -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 () {
@@ -537,6 +543,16 @@ export default {
537
543
  this.PhaseDataModel = new PhaseDataModel(val)
538
544
  }
539
545
  }
546
+ },
547
+ protocol: {
548
+ handler: function (val, oldVal) {
549
+ // 20999 协议驻留控制里仅支持阶段锁定
550
+ if (val === 'rcp') {
551
+ this.residentControlList = this.residentControlList.filter(item => item.type === '阶段锁定')
552
+ }
553
+ },
554
+ deep: true,
555
+ immediate: true
540
556
  }
541
557
  },
542
558
  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: {