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/kisscomps/components/SchemeConfig/SchemeConfig.vue +20 -1
- package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +5 -2
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +20 -1
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +5 -2
- package/src/views/schemeconfig.vue +2 -1
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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: {
|