openatc-components 0.0.53 → 0.0.56
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 +23 -10
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +11 -10
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +982 -989
- package/package/kisscomps/components/Stages/index.vue +2 -2
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +23 -10
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +11 -10
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +982 -989
- package/src/kisscomps/components/Stages/index.vue +2 -2
package/package.json
CHANGED
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
:controlData="controlData"
|
|
22
22
|
:modelList="modelList"
|
|
23
23
|
:patternSelect="patternSelect"
|
|
24
|
+
:patternAll="patternAll"
|
|
24
25
|
:crossStatusData="crossStatusData"
|
|
25
26
|
:phaseList="phaseList"
|
|
26
27
|
:specialcontrolList="specialcontrolList"
|
|
@@ -117,6 +118,7 @@ import PhaseDataModel from '../IntersectionMap/crossDirection/utils.js'
|
|
|
117
118
|
import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
|
|
118
119
|
import { setToken } from '../../../utils/auth.js'
|
|
119
120
|
import RingDataModel from '../../../utils/RingDataModel.js'
|
|
121
|
+
import { getIntersectionInfo } from '../../../api/template'
|
|
120
122
|
export default {
|
|
121
123
|
name: 'scheme-config',
|
|
122
124
|
components: {
|
|
@@ -150,9 +152,6 @@ export default {
|
|
|
150
152
|
ip: {
|
|
151
153
|
type: String
|
|
152
154
|
},
|
|
153
|
-
patternSelect: {
|
|
154
|
-
type: Array
|
|
155
|
-
},
|
|
156
155
|
planPattern: {
|
|
157
156
|
type: Object
|
|
158
157
|
},
|
|
@@ -293,17 +292,19 @@ export default {
|
|
|
293
292
|
confirmedFault: [],
|
|
294
293
|
ignoredFault: [],
|
|
295
294
|
untreatedFault: [],
|
|
295
|
+
patternAll: [],
|
|
296
|
+
patternSelect: [], // 所有方案id
|
|
296
297
|
specialPage: '' // 哪一个特殊控制页面
|
|
297
298
|
}
|
|
298
299
|
},
|
|
299
300
|
watch: {
|
|
300
|
-
statusData: {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
},
|
|
301
|
+
// statusData: {
|
|
302
|
+
// handler: function (val) {
|
|
303
|
+
// this.initData()
|
|
304
|
+
// },
|
|
305
|
+
// // 深度观察监听
|
|
306
|
+
// deep: true
|
|
307
|
+
// },
|
|
307
308
|
phaseList: {
|
|
308
309
|
handler: function (val, oldVal) {
|
|
309
310
|
this.getPedPhasePos()
|
|
@@ -330,6 +331,7 @@ export default {
|
|
|
330
331
|
if (this.realtimeStatusModalvisible === false) {
|
|
331
332
|
this.changeStatus()
|
|
332
333
|
}
|
|
334
|
+
this.getIntersectionInfo(this.agentId)
|
|
333
335
|
},
|
|
334
336
|
async mounted () {
|
|
335
337
|
this.setPropsToken(this.Token)
|
|
@@ -338,6 +340,17 @@ export default {
|
|
|
338
340
|
this.initData()
|
|
339
341
|
},
|
|
340
342
|
methods: {
|
|
343
|
+
getIntersectionInfo (agentid) {
|
|
344
|
+
// 获取路口信息
|
|
345
|
+
getIntersectionInfo(agentid).then(res => {
|
|
346
|
+
this.patternAll = res.data.data.param.patternList
|
|
347
|
+
this.patternSelect = res.data.data.param.patternList.map(item => {
|
|
348
|
+
return {
|
|
349
|
+
value: item.id
|
|
350
|
+
}
|
|
351
|
+
})
|
|
352
|
+
})
|
|
353
|
+
},
|
|
341
354
|
getFault () {
|
|
342
355
|
this.getFaultById()
|
|
343
356
|
this.faultTimer = setInterval(() => {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
:label="$t('openatccomponents.overview.controlnumber') + ':'"
|
|
24
24
|
prop="shape">
|
|
25
25
|
<!-- <el-input-number v-model="manualInfo.tempPatternid" :controls="false" size="mini" :max="65535" :min="0" :precision="0" :step="1" :placeholder="$t('openatccomponents.common.input')"></el-input-number> -->
|
|
26
|
-
<el-select v-model="manualInfo.tempPatternid" class="col-inner" size="small" :placeholder="$t('openatccomponents.common.select')">
|
|
26
|
+
<el-select v-model="manualInfo.tempPatternid" @change="changeStage" class="col-inner" size="small" :placeholder="$t('openatccomponents.common.select')">
|
|
27
27
|
<el-option
|
|
28
28
|
v-for="item in patternSelect"
|
|
29
29
|
:key="item.value"
|
|
@@ -94,6 +94,9 @@ export default {
|
|
|
94
94
|
Stages
|
|
95
95
|
},
|
|
96
96
|
props: {
|
|
97
|
+
patternAll: {
|
|
98
|
+
type: Array
|
|
99
|
+
},
|
|
97
100
|
crossStatusData: {
|
|
98
101
|
type: Object,
|
|
99
102
|
default: () => {}
|
|
@@ -150,15 +153,6 @@ export default {
|
|
|
150
153
|
return {
|
|
151
154
|
basicFuncControlId: [0, 1, 4, 5], // 基础功能包含的控制方式: 自主控制(手动下)、黄闪、步进、定周期
|
|
152
155
|
visible: this.Visible,
|
|
153
|
-
// patternSelect: [{
|
|
154
|
-
// value: 0
|
|
155
|
-
// }, {
|
|
156
|
-
// value: 1
|
|
157
|
-
// }, {
|
|
158
|
-
// value: 2
|
|
159
|
-
// }, {
|
|
160
|
-
// value: 3
|
|
161
|
-
// }],
|
|
162
156
|
manualInfo: {
|
|
163
157
|
tempPatternid: '', // 控制方式手动操作的情况下的控制编号的临时值。
|
|
164
158
|
tempDelay: 0, // 控制方式手动操作的情况下的延迟时间的临时值。
|
|
@@ -167,6 +161,13 @@ export default {
|
|
|
167
161
|
}
|
|
168
162
|
},
|
|
169
163
|
methods: {
|
|
164
|
+
changeStage (value) {
|
|
165
|
+
let stages = []
|
|
166
|
+
stages = this.patternAll.filter(item => {
|
|
167
|
+
return item.id === value
|
|
168
|
+
})[0].stages
|
|
169
|
+
this.crossStatusData.stages = stages
|
|
170
|
+
},
|
|
170
171
|
handleClose () {
|
|
171
172
|
this.$emit('closeManualModal')
|
|
172
173
|
},
|