openatc-components 0.5.8 → 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.08",
3
+ "version": "0.5.09",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -330,7 +330,7 @@ export default {
330
330
  permission: 'configer:manual:base',
331
331
  iconName: '感应式行人过街控制'
332
332
  }],
333
- residentControlList: [
333
+ originResidentControlList: [
334
334
  {
335
335
  type: '步进',
336
336
  id: 4,
@@ -364,6 +364,7 @@ export default {
364
364
  bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
365
365
  }
366
366
  ],
367
+ residentControlList: [],
367
368
  specialControlList: [
368
369
  {
369
370
  type: '黄闪',
@@ -548,7 +549,9 @@ export default {
548
549
  handler: function (val, oldVal) {
549
550
  // 20999 协议驻留控制里仅支持阶段锁定
550
551
  if (val === 'rcp') {
551
- this.residentControlList = this.residentControlList.filter(item => item.type === '阶段锁定')
552
+ this.residentControlList = this.originResidentControlList.filter(item => item.type === '阶段锁定')
553
+ } else {
554
+ this.residentControlList = [...this.originResidentControlList]
552
555
  }
553
556
  },
554
557
  deep: true,