openatc-components 0.3.115 → 0.3.117

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.
Files changed (54) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +11 -0
  2. package/package/kisscomps/components/Channelization/Channelization.vue +1 -1
  3. package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
  4. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
  5. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  6. package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +1 -1
  7. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +63 -0
  8. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -1
  9. package/package/kisscomps/components/OverLap/OverLap.vue +1 -1
  10. package/package/kisscomps/components/OverviewComponent/index.vue +11 -7
  11. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +11 -2
  12. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +85 -20
  13. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +11 -4
  14. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
  15. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/icon.vue +34 -2
  16. package/package/kisscomps/components/StageOptimize/StageOptimize.vue +310 -0
  17. package/package/kisscomps/components/StageOptimize/index.js +2 -0
  18. package/package/kisscomps/components/StageOptimize/index.vue +310 -0
  19. package/package/kisscomps/components/overView/index.vue +2 -2
  20. package/package/kisscomps/components/patternList/patternList.vue +11 -0
  21. package/package/kisscomps/index.js +2 -0
  22. package/package/kissui.min.js +1 -1
  23. package/package.json +1 -1
  24. package/src/i18n/language/en.js +12 -12
  25. package/src/i18n/language/zh.js +17 -17
  26. package/src/kisscomps/components/BoardCard/BoardCard.vue +11 -0
  27. package/src/kisscomps/components/Channelization/Channelization.vue +1 -1
  28. package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
  29. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
  30. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  31. package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +1 -1
  32. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +63 -0
  33. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -1
  34. package/src/kisscomps/components/OverLap/OverLap.vue +1 -1
  35. package/src/kisscomps/components/OverviewComponent/index.vue +11 -7
  36. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +11 -2
  37. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +85 -20
  38. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +11 -4
  39. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
  40. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/icon.vue +34 -2
  41. package/src/kisscomps/components/StageOptimize/StageOptimize.vue +310 -0
  42. package/src/kisscomps/components/StageOptimize/index.js +2 -0
  43. package/src/kisscomps/components/overView/index.vue +2 -2
  44. package/src/kisscomps/components/patternList/patternList.vue +11 -0
  45. package/src/kisscomps/index.js +2 -0
  46. package/src/utils/ControlFormat.js +2 -2
  47. package/src/views/intersection.vue +7 -6
  48. package/src/views/intersection2.vue +4 -4
  49. package/src/views/overView.vue +27 -5
  50. package/static/styles/common.scss +3 -3
  51. package/static/styles/dark/theme/element-dark.scss +1 -1
  52. package/static/styles/intersection.scss +5 -15
  53. package/static/styles/light/theme/element-light.scss +1 -1
  54. package/static/styles/schemeconfig.scss +6 -3
@@ -0,0 +1,310 @@
1
+ /**
2
+ * Copyright (c) 2020 kedacom
3
+ * OpenATC is licensed under Mulan PSL v2.
4
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
+ * You may obtain a copy of Mulan PSL v2 at:
6
+ * http://license.coscl.org.cn/MulanPSL2
7
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
+ * See the Mulan PSL v2 for more details.
11
+ **/
12
+ <template>
13
+ <div>
14
+ <div v-if="this.nowNumber === 1" class="optimizetype">
15
+ <span>{{$t('openatccomponents.pattern.optimizetype')}}</span>
16
+ <el-select v-model="value" clearable :placeholder="$t('openatccomponents.common.select')">
17
+ <el-option
18
+ v-for="item in typeOptions"
19
+ :key="item.value"
20
+ :label="$t('openatccomponents.overview.type' + item.value)"
21
+ :value="item.value"
22
+ >
23
+ </el-option>
24
+ </el-select>
25
+ <span class="optimiNum">{{$t('openatccomponents.pattern.optimizecycle')}}</span>
26
+ <el-input v-model="optimizecycle" clearable :placeholder="$t('openatccomponents.common.enter')"></el-input>
27
+ <el-button type="primary" @click="optimize()">{{$t('openatccomponents.pattern.inoptimize')}}</el-button>
28
+ </div>
29
+ <div class="common-board-column" style="margin-top: 50px;">
30
+ <div class="common-board-column-header">
31
+ {{headerText}}
32
+ </div>
33
+ <div class="common-board-table-header">
34
+ <el-row :gutter="13">
35
+ <el-col :span="4">{{this.$t('openatccomponents.overview.phase')}}
36
+ </el-col>
37
+ <el-col :span="10">{{this.$t('openatccomponents.overview.flow')}}
38
+ </el-col>
39
+ <el-col :span="10">{{this.$t('openatccomponents.overview.saturationflow')}}
40
+ </el-col>
41
+ </el-row>
42
+ </div>
43
+ <draggable
44
+ class="common-board-column-content"
45
+ :list="stageData"
46
+ :options="options">
47
+ <div class="common-board-item" v-for="element in stageData" :key="element.id">
48
+ <el-row :gutter="13">
49
+ <el-col :span="4">
50
+ <el-tooltip class="item" effect="dark" placement="left">
51
+ <div slot="content">{{element.name}}</div>
52
+ <div class="common-phase-description">
53
+ <xdrdirselector v-if="element.desc.length > 0" Width="70px" Height="70px" Widths="58px" Heights="58px" :Datas="styles" :Data="showStyle" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
54
+ </div>
55
+ </el-tooltip>
56
+ </el-col>
57
+ <el-col :span="10">
58
+ <el-input-number :controls="false" class="col-content" size="small" :step="1" v-model.number="element.flowperhour" ref="type" :disabled="element.mode === 7"></el-input-number>
59
+ </el-col>
60
+ <el-col :span="10">
61
+ <el-input-number :controls="false" class="col-content" size="small" :step="1" v-model.number="element.saturation" ref="types" :disabled="element.mode === 7"></el-input-number>
62
+ </el-col>
63
+ </el-row>
64
+ </div>
65
+ </draggable>
66
+ </div>
67
+ </div>
68
+ </template>
69
+ <script>
70
+ import draggable from 'vuedraggable'
71
+ import { getDuration } from '../../../api/cross'
72
+ import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
73
+
74
+ export default {
75
+ name: 'StageOptimize',
76
+ components: {
77
+ draggable,
78
+ xdrdirselector
79
+ },
80
+ data () {
81
+ return {
82
+ showStyle: {
83
+ left: '2px',
84
+ top: '0px'
85
+ },
86
+ styles: {
87
+ left: '1px',
88
+ top: '0px'
89
+ },
90
+ typeOptions: [{
91
+ value: 'flow-split-opt'
92
+ }, {
93
+ value: 'cycle-opt'
94
+ }],
95
+ value: '',
96
+ optimizecycle: 0
97
+ }
98
+ },
99
+ props: {
100
+ headerText: {
101
+ type: String,
102
+ default: 'Header'
103
+ },
104
+ contrloType: {
105
+ type: String
106
+ },
107
+ stageData: {
108
+ type: Array
109
+ },
110
+ stagesChange: {
111
+ type: Array
112
+ },
113
+ id: {
114
+ type: Number
115
+ },
116
+ rings: {
117
+ type: Object
118
+ },
119
+ nowNumber: {
120
+ type: Number
121
+ },
122
+ phaseList: {
123
+ type: Array
124
+ },
125
+ options: {
126
+ type: Object,
127
+ default () {
128
+ return {}
129
+ }
130
+ },
131
+ list: {
132
+ type: Array,
133
+ default () {
134
+ return []
135
+ }
136
+ },
137
+ // index: {
138
+ // type: Number
139
+ // },
140
+ ISActiveMask: {
141
+ type: Boolean,
142
+ default: true
143
+ },
144
+ // 当phase的描述为空时,显示的图形颜色。
145
+ MaskColor: {
146
+ type: String,
147
+ default: '#000000'
148
+ }
149
+ },
150
+ created () {
151
+ // this.addMinSplit()
152
+ this.addMin()
153
+ },
154
+ watch: {
155
+ list: {
156
+ handler: function () {
157
+ this.addMin()
158
+ // let list = this.$refs.type
159
+ // let flow = this.$refs.types
160
+ // console.log(this.list, 'list')
161
+ // let cycle = 0
162
+ // let n = this.index
163
+ // for (let i = 0; i < list.length; i++) {
164
+ // cycle = cycle + Number(list[i].currentValue)
165
+ // }
166
+ // const globalParamModel = this.$store.getters.globalParamModel
167
+ // // let MaxCycle = globalParamModel.getParamsByType('patternList')[n].cycle
168
+ // let pattern = globalParamModel.getParamsByType('patternList')[n]
169
+ // globalParamModel.getParamsByType('patternList')[n].cycle = this.getMaxCycle(pattern)
170
+ // this.addMinSplit()
171
+ // this.$emit('handleSplit', n)
172
+ },
173
+ deep: true
174
+ },
175
+ stageData: {
176
+ handler: function () {
177
+ this.addMins()
178
+ // let list = this.$refs.type
179
+ // let flow = this.$refs.types
180
+ // console.log(this.list, 'list')
181
+ // let cycle = 0
182
+ // let n = this.index
183
+ // for (let i = 0; i < list.length; i++) {
184
+ // cycle = cycle + Number(list[i].currentValue)
185
+ // }
186
+ // const globalParamModel = this.$store.getters.globalParamModel
187
+ // // let MaxCycle = globalParamModel.getParamsByType('patternList')[n].cycle
188
+ // let pattern = globalParamModel.getParamsByType('patternList')[n]
189
+ // globalParamModel.getParamsByType('patternList')[n].cycle = this.getMaxCycle(pattern)
190
+ // this.addMinSplit()
191
+ // this.$emit('handleSplit', n)
192
+ },
193
+ deep: true
194
+ }
195
+ },
196
+ methods: {
197
+ optimize () {
198
+ let _that = this
199
+ let newPha = []
200
+ for (let i = 0; i < _that.rings.rings.length; i++) {
201
+ newPha.push(..._that.rings.rings[i])
202
+ }
203
+ let phaseData = newPha.map(item => {
204
+ return {
205
+ id: item.id,
206
+ flowperhour: item.flowperhour,
207
+ saturation: item.saturation
208
+ }
209
+ })
210
+ // let patternList = _that.$store.state.globalParam.tscParam.patternList
211
+ // console.log(patternList, 'patternList')
212
+ let pattern = _that.rings
213
+ let reqData = {
214
+ 'type': _that.value,
215
+ 'optcycle': _that.optimizecycle,
216
+ 'phaseList': _that.phaseList,
217
+ 'pattern': pattern,
218
+ 'phases': phaseData
219
+ }
220
+ let isValidata = []
221
+ for (let j = 0; j < newPha.length; j++) {
222
+ let comNum = (newPha[j].length / 4) * 1700 * 0.8
223
+ isValidata.push(newPha[j].flowperhour > comNum)
224
+ }
225
+ if (isValidata.includes(true)) {
226
+ this.$confirm(this.$t('openatccomponents.overview.maxFlow'),
227
+ this.$t('openatccomponents.common.alarm'), {
228
+ confirmButtonText: this.$t('openatccomponents.common.confirm'),
229
+ cancelButtonText: this.$t('openatccomponents.common.cancel'),
230
+ type: 'warning'
231
+ }).then(() => {
232
+ getDuration(reqData).then(data => {
233
+ if (data.data.success) {
234
+ _that.$message({
235
+ type: 'success',
236
+ message: _that.$t('openatccomponents.pattern.success')
237
+ })
238
+ for (let i = 0; i < _that.stagesChange.length; i++) {
239
+ if (_that.stagesChange[i].key === data.data.data.phase[i].id - 1) {
240
+ _that.stagesChange[i].stageSplit = data.data.data.phase[i].duration
241
+ }
242
+ }
243
+ this.$emit('optimizestage', this.id)
244
+ }
245
+ }).catch(error => {
246
+ console.log(error)
247
+ })
248
+ }).catch(() => {
249
+ })
250
+ } else {
251
+ getDuration(reqData).then(data => {
252
+ if (data.data.success) {
253
+ _that.$message({
254
+ type: 'success',
255
+ message: _that.$t('openatccomponents.pattern.success')
256
+ })
257
+ for (let i = 0; i < _that.stagesChange.length; i++) {
258
+ if (_that.stagesChange[i].key === data.data.data.phase[i].id - 1) {
259
+ _that.stagesChange[i].stageSplit = data.data.data.phase[i].duration
260
+ }
261
+ }
262
+ this.$emit('optimizestage', this.id)
263
+ }
264
+ }).catch(error => {
265
+ console.log(error)
266
+ })
267
+ }
268
+ },
269
+ addMins () {
270
+ for (let i of this.stageData) {
271
+ if (!i.flowperhour || !i.saturation) {
272
+ i.flowperhour = 0
273
+ i.saturation = 1700
274
+ i.length = this.list.length
275
+ }
276
+ }
277
+ },
278
+ addMin () {
279
+ for (let i of this.list) {
280
+ if (!i.flowperhour || !i.saturation) {
281
+ i.flowperhour = 0
282
+ i.saturation = 1700
283
+ i.length = this.list.length
284
+ }
285
+ }
286
+ }
287
+ }
288
+ }
289
+ </script>
290
+ <style lang="scss" scoped>
291
+ .col-content {
292
+ width: 100%;
293
+ }
294
+ .optimizetype{
295
+ position: absolute;
296
+ margin:0 0 10PX 0;
297
+ .el-input {
298
+ width: 80PX;
299
+ }
300
+ .el-select{
301
+ width: 145PX;
302
+ }
303
+ .el-button {
304
+ margin-left: 10PX;
305
+ }
306
+ .optimiNum {
307
+ padding-left: 10PX;
308
+ }
309
+ }
310
+ </style>
@@ -0,0 +1,2 @@
1
+ import StageOptimize from './StageOptimize.vue'
2
+ export default StageOptimize
@@ -153,8 +153,8 @@ export default {
153
153
  volumeControlTimer: null, // 流量定时器
154
154
  ParamsMode: new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']]),
155
155
  ParamsModeEn: new Map([[0, 'Autonomous Control'], [1, 'Local Manual'], [2, 'Platform Control'], [3, 'Configuration Software Control'], [4, 'Remote Control'], [5, 'Yellow Flasher Control'], [6, 'Degradation Control'], [7, 'Script Control'], [8, 'Algorithm Control']]),
156
- ParamsControl: new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '自适应'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '方案生成'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '预留18'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']]),
157
- ParamsControlEn: new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Reserving18'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']]),
156
+ ParamsControl: new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '单点感应控制'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '自适应控制'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '感应式自适应'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']]),
157
+ ParamsControlEn: new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Inductive Adaptive'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']]),
158
158
  phaseType: new Map([[1, '红'], [2, '黄'], [3, '绿']]), // phaseType表示红,黄,绿
159
159
  phaseTypeEn: new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]), // phaseType表示红,黄,绿
160
160
  ip: '--',
@@ -5,6 +5,7 @@
5
5
  :contrloType="contrloType"
6
6
  :stagesChange="stagesChange"
7
7
  :isShowTip="isShowTip"
8
+ :isMove="isMove"
8
9
  :patternStatusList="patternStatusList"
9
10
  :cycles="cycles"
10
11
  :cycle="cycle"
@@ -19,6 +20,7 @@
19
20
  :agentId="agentId"
20
21
  :controlData="controlData"
21
22
  :syncTime="syncTime"
23
+ @handleSplitMove="handleSplitMove"
22
24
  :isPhase="isPhase"
23
25
  >
24
26
  </BoardCard>
@@ -502,6 +504,10 @@ export default {
502
504
  type: Boolean,
503
505
  default: true
504
506
  },
507
+ isMove: {
508
+ type: Boolean,
509
+ default: true
510
+ },
505
511
  contrloType: {
506
512
  type: String
507
513
  },
@@ -581,6 +587,11 @@ export default {
581
587
  // if (this.$route.query !== undefined && Object.keys(this.$route.query).length) {
582
588
  // this.resetCrossDiagram()
583
589
  // }
590
+ },
591
+ methods: {
592
+ handleSplitMove (data) {
593
+ this.$emit('handleSplitMove', data)
594
+ }
584
595
  }
585
596
  }
586
597
  </script>
@@ -12,6 +12,7 @@ import FaultDetailModal from './components/FaultDetailModal/index'
12
12
  import CommonKanban from './components/CommonKanban/index'
13
13
  import patternList from './components/patternList/index'
14
14
  import PatternStatus from './components/PatternStatus/index'
15
+ import StageOptimize from './components/StageOptimize/index'
15
16
  import BoardCard from './components/BoardCard/index'
16
17
  import StageStatus from './components/StageStatus/index'
17
18
  import OverLap from './components/OverLap/index'
@@ -69,6 +70,7 @@ const components = {
69
70
  priorityControl,
70
71
  tentativeplancontrolmodal,
71
72
  PhaseDirectionText,
73
+ StageOptimize,
72
74
  patternConfig,
73
75
  XiaoKanBan,
74
76
  PhaseDirectionSelect,
@@ -14,8 +14,8 @@ export default class ControlFormat {
14
14
  constructor (crossStatusData, phaseList) {
15
15
  this.ParamsMode = new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']])
16
16
  this.ParamsModeEn = new Map([[0, 'Autonomous Control'], [1, 'Local Manual'], [2, 'Platform Control'], [3, 'Configuration Software Control'], [4, 'Remote Control'], [5, 'Yellow Flasher Control'], [6, 'Degradation Control'], [7, 'Script Control'], [8, 'Algorithm Control']])
17
- this.ParamsControl = new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '自适应'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '方案生成'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '预留18'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']])
18
- this.ParamsControlEn = new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Reserving18'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']])
17
+ this.ParamsControl = new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '单点感应控制'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '自适应控制'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '感应式自适应'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']])
18
+ this.ParamsControlEn = new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Inductive Adaptive'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']])
19
19
  this.phaseType = new Map([[1, '红'], [2, '黄'], [3, '绿']]) // phaseType表示红,黄,绿
20
20
  this.phaseTypeEn = new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]) // phaseType表示红,黄,绿
21
21
  }
@@ -1,15 +1,16 @@
1
1
  <template>
2
2
  <div>
3
+ <intersection-with-interface :AgentId="agentId" />
3
4
  <h2 class="text">实时通道路口图</h2>
4
- <channel-realtime-intersection
5
+ <!-- <channel-realtime-intersection
5
6
  :agentId="this.agentId"
6
7
  :roadDirection="roadDirection"
7
8
  :channelRealtimeStatusData="channelRealtimeStatusData"
8
- />
9
+ /> -->
9
10
 
10
11
  <!-- 按通道获取相位的方向选择列表,特殊路口显示列表,普通路口显示模版路口图 -->
11
12
  <h2 class="text">非第三方配置路口图(按通道显示相位方向)</h2>
12
- <intersection-direction-selection
13
+ <!-- <intersection-direction-selection
13
14
  :agentId="this.agentId"
14
15
  :choosedDirection="[14,6,13,8]"
15
16
  :choosedPedDirection="[1]"
@@ -25,7 +26,7 @@
25
26
  :choosedPedDirection="[1,2]"
26
27
  :roadDirection="roadDirection"
27
28
  @handleClickCrossIcon="handleClickCrossIcon" />
28
- </div>
29
+ </div> -->
29
30
 
30
31
  <!-- 显示按通道获取相位的模版路口图 -->
31
32
  <h2 class="text">显示配置的相位路口图</h2>
@@ -161,12 +162,12 @@ export default {
161
162
  return {
162
163
  roadDirection: 'right',
163
164
  // reqUrl: 'http://192.168.13.103:10003/openatc',
164
- agentId: 'tjblfql',
165
+ agentId: '32050101041121000001',
165
166
  // agentId: '13013',
166
167
  // agentId: '12007_390',
167
168
  // agentId: '12014',
168
169
  reqUrl: 'http://192.168.13.103:10003/openatc',
169
- Token: 'eyJraWQiOiIxNzM0MDc1MTI0MjczIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNDA3ODcyNCwiaWF0IjoxNzM0MDcxNTI0fQ.KixCOm8CIbS10UYc0djLAr-NCg24S5ftHM384yweVVU',
170
+ Token: 'eyJraWQiOiIxNzMwODU1NTQ1NzA3IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMDg1OTE0NSwiaWF0IjoxNzMwODUxOTQ1fQ.CBl61S3eRifl4qEtTmgVjOZGo2hqNSGQKPxG1bN-utU',
170
171
  // agentId: '30003-352',
171
172
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
172
173
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -102,12 +102,12 @@ export default {
102
102
  return {
103
103
  roadDirection: 'left',
104
104
  // reqUrl: 'http://192.168.13.103:10003/openatc',
105
- agentId: 'cllzpl',
105
+ // agentId: '32050101041121000001',
106
106
  // agentId: '13013',
107
- // agentId: '12007_390',
107
+ agentId: '12007_390',
108
108
  // agentId: '12014',
109
109
  reqUrl: 'http://192.168.13.103:10003/openatc',
110
- Token: 'eyJraWQiOiIxNzEwNzU4MTU3Njk0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiIxMjM0NTYiLCJleHAiOjE3MTM4ODgwMDAsImlhdCI6MTcxMDY5MTIwMH0.vicLABPjoZEWmHr12-5FXMbjYmEKv-WSTVRROR1eOME',
110
+ Token: 'eyJraWQiOiIxNjkzMjkyMzI0NzUyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6NDA5MjEzNDQwMCwiaWF0IjoxNjkwODE5MjAwfQ.97bSPcUdh4xgAqkbw96Q-NfLVhFbgK0Yo1S8KYkSwz8',
111
111
  // agentId: '30003-352',
112
112
  // reqUrl: 'https://kints-dev.devdolphin.com/openatc',
113
113
  // Token: 'eyJraWQiOiIxNjUwNTA5MDI2ODk2IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJ4aWFvbWluZyIsImV4cCI6MTczNjkwOTAyNiwiaWF0IjoxNjUwNTA5MDI2fQ.-s4T-uMRmB2zf9yer87USKQXLY1a12Zq5lCOnqjNmfA',
@@ -117,7 +117,7 @@ export default {
117
117
  controlName: '步进',
118
118
  isShowState: true,
119
119
  isShowMode: true,
120
- isShowMessage: true,
120
+ isShowMessage: false,
121
121
  isShowPatternStatus: false,
122
122
  isShowIntersection: true,
123
123
  isShowInterval: true,
@@ -1,13 +1,18 @@
1
1
  <template>
2
2
  <div id="test1">
3
- <overview
3
+ <!-- <overview
4
4
  :AgentId="agentId"
5
5
  :reqUrl="reqUrl"
6
6
  :modeName="modeName"
7
7
  :controlName="controlName"
8
8
  :isShowState="isShowState"
9
9
  :isShowMode="isShowMode"
10
- :Token="Token"></overview>
10
+ :Token="Token"></overview> -->
11
+ <el-button @click="handleChangeOverview">切换overview组件</el-button>
12
+ <overview-component
13
+ :AgentId="agentId2"
14
+ :isShowInterval="isShowInterval"
15
+ :isShowMessage ="isShowMessage"/>
11
16
  </div>
12
17
  </template>
13
18
 
@@ -19,12 +24,29 @@ export default {
19
24
  isShowMode: true,
20
25
  modeName: '交警遥控',
21
26
  controlName: '步进',
22
- agentId: 'stao',
23
- Token: 'eyJraWQiOiIxNzA4OTA5NDk2ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcwODk1MjY5NiwiaWF0IjoxNzA4OTA5NDk2fQ.FI0gzBQFLyQsj95LG56lVZxb6WYlr2-datNsyv6fF-I',
24
- reqUrl: 'http://192.168.13.103:10003/openatc'
27
+ agentId: '13013',
28
+ agentid1: 'gjnlahql',
29
+ agentid2: '12007_390',
30
+ isShowMessage: false,
31
+ isShowInterval: true,
32
+ sum: 0,
33
+ Token: 'eyJraWQiOiIxNzMzODg3MDYyMjgwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczMzg5MDY2MiwiaWF0IjoxNzMzODgzNDYyfQ.qUJZ4lKv0WU3s3lWfYwl5ZM77n2rriYeFQ8qOwRFuzk',
34
+ reqUrl: 'http://192.168.13.103:10003/openatc',
35
+ isOnlyMap: true
25
36
  }
26
37
  },
27
38
  methods: {
39
+ handleChangeOverview () {
40
+ if (this.sum % 2 === 0) {
41
+ this.agentId = this.agentid1
42
+ } else {
43
+ this.agentId = this.agentid2
44
+ }
45
+ this.sum++
46
+ },
47
+ reverseOverviewBtMap () {
48
+ this.isOnlyMap = !this.isOnlyMap
49
+ }
28
50
  },
29
51
  watch: {
30
52
  },
@@ -11,12 +11,12 @@
11
11
 
12
12
  // 全局滚动条样式
13
13
  ::-webkit-scrollbar {
14
- width: 12PX;
15
- height: 12PX;
14
+ width: 6PX;
15
+ height: 6PX;
16
16
  }
17
17
  ::-webkit-scrollbar-thumb {
18
18
  // 滚动条的滑块
19
- border-radius: 4px;
19
+ border-radius: 3PX;
20
20
  background: rgba(144, 147, 153, 0.3);
21
21
  }
22
22
  ::-webkit-scrollbar-corner{
@@ -34,7 +34,7 @@ $--button-danger-font-color: #FFFFFF;
34
34
  $--button-success-font-color: #FFFFFF;
35
35
  $--radio-button-checked-font-color: #FFFFFF;
36
36
  $--radio-font-color: $--color-text-secondary;
37
- $--tag-info-color: $--color-text-placeholder;
37
+ $--tag-info-color: #FFFFFF;
38
38
  $--tooltip-color: $--color-white;
39
39
  $--checkbox-font-color: $--color-text-secondary;
40
40
 
@@ -38,9 +38,6 @@
38
38
  zoom: 0.9;
39
39
 
40
40
  }
41
- .centerText .text {
42
- font-size: 14px;
43
- }
44
41
  }
45
42
  /*当屏幕小于等于1440px的屏幕样式*/
46
43
  @media only screen and (max-width: 1440px){
@@ -49,9 +46,6 @@
49
46
  zoom: 0.8;
50
47
 
51
48
  }
52
- .centerText .text {
53
- font-size: 18px;
54
- }
55
49
  }
56
50
  /*当屏幕小于等于1280px的屏幕样式*/
57
51
  @media only screen and (max-width: 1280px){
@@ -59,9 +53,6 @@
59
53
  // transform: scale(0.65);
60
54
  zoom: 0.65;
61
55
  }
62
- .centerText .text {
63
- font-size: 20px;
64
- }
65
56
  }
66
57
  /*当屏幕小于等于960px的屏幕样式*/
67
58
  @media only screen and (max-width: 960px){
@@ -69,9 +60,6 @@
69
60
  // transform: scale(0.5);
70
61
  zoom: 0.5;
71
62
  }
72
- .centerText .text {
73
- font-size: 14px;
74
- }
75
63
  }
76
64
  /*当屏幕小于等于720px的屏幕样式*/
77
65
  @media only screen and (max-width: 720px){
@@ -79,9 +67,6 @@
79
67
  // transform: scale(0.45);
80
68
  zoom: 0.45;
81
69
  }
82
- .centerText .text {
83
- font-size: 14px;
84
- }
85
70
  }
86
71
  // 小屏幕打开首页适配样式
87
72
  .minifont {
@@ -188,4 +173,9 @@
188
173
  color: $--color-text-primary;
189
174
  font-size:30PX;
190
175
  }
176
+ .centerText {
177
+ .text {
178
+ font-size: 18PX;
179
+ }
180
+ }
191
181
  }
@@ -34,7 +34,7 @@ $--card-background-selected: #c1e0ff;
34
34
  // $--button-success-font-color: #FFFFFF;
35
35
  // $--radio-button-checked-font-color: #FFFFFF;
36
36
  // $--radio-font-color: $--color-text-secondary;
37
- // $--tag-info-color: $--color-text-placeholder;
37
+ $--tag-info-color: #303133;
38
38
  // $--tooltip-color: $--color-white;
39
39
  // $--checkbox-font-color: $--color-text-secondary;
40
40
 
@@ -226,7 +226,7 @@
226
226
  overflow-y: auto;
227
227
  }
228
228
  .manual-common-content::-webkit-scrollbar {
229
- width: 8PX;
229
+ width: 6PX;
230
230
  }
231
231
  }
232
232
  // 手动控制弹框
@@ -498,12 +498,12 @@
498
498
  width: 85% !important;
499
499
  }
500
500
  .el-input.is-disabled .el-input__inner {
501
- text-align: center;
501
+ text-align: left;
502
502
  }
503
503
  .el-input-number {
504
504
  width: 100%;
505
505
  .el-input__inner {
506
- text-align: center;
506
+ text-align: left;
507
507
  }
508
508
  }
509
509
  .el-select {
@@ -540,6 +540,9 @@
540
540
  }
541
541
  .el-input-number {
542
542
  width: 100%;
543
+ .el-input__inner {
544
+ text-align: left;
545
+ }
543
546
  }
544
547
  .el-input-number--mini{
545
548
  width: 100%;