openatc-components 0.5.80 → 0.5.82

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 (70) hide show
  1. package/_diff_a.txt +360 -0
  2. package/_diff_b.txt +362 -0
  3. package/build/package.config.js +62 -58
  4. package/build/package.dev.config.js +114 -107
  5. package/build/package.prod.config.js +167 -160
  6. package/build/utils.js +109 -101
  7. package/index.html +16 -0
  8. package/package/kisscomps/components/Channelization/Channelization.vue +9 -4
  9. package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +363 -360
  10. package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
  11. package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +259 -255
  12. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  13. package/package/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
  14. package/package/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
  15. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +6 -2
  16. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +11 -0
  17. package/package/kisscomps/components/IntersectionMapDirSelect/customCrossDiagram.vue +3 -2
  18. package/package/kisscomps/components/IntersectionMapDirSelect/customintersectionmap.vue +7 -0
  19. package/package/kisscomps/components/MessageBox/index.vue +1 -1
  20. package/package/kisscomps/components/OverviewComponent/index.vue +0 -6
  21. package/package/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
  22. package/package/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
  23. package/package/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
  24. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
  25. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
  26. package/package/kisscomps/components/Stages/index.vue +2 -3
  27. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
  28. package/package/kisscomps/components/overView/index.vue +0 -6
  29. package/package/kisscomps/components/patternConfig/index.vue +1 -1
  30. package/package/kisscomps/index.js +7 -2
  31. package/package/kissui.js +321283 -0
  32. package/package/kissui.min.js +1 -1
  33. package/package.json +2 -2
  34. package/src/App.vue +2 -0
  35. package/src/i18n/index.js +20 -2
  36. package/src/i18n/language/ar.js +685 -0
  37. package/src/i18n/language/en.js +69 -1157
  38. package/src/i18n/language/index.js +6 -0
  39. package/src/i18n/language/ru.js +132 -1027
  40. package/src/i18n/language/zh.js +65 -1150
  41. package/src/kisscomps/components/Channelization/Channelization.vue +9 -4
  42. package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +363 -360
  43. package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +2 -2
  44. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +259 -255
  45. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  46. package/src/kisscomps/components/DrawChannelization/drawsvg/table.vue +2 -2
  47. package/src/kisscomps/components/IntersectionMap/crossDirection/baseImg/CustomRoadsSvg.vue +1 -1
  48. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +6 -2
  49. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +11 -0
  50. package/src/kisscomps/components/IntersectionMapDirSelect/customCrossDiagram.vue +3 -2
  51. package/src/kisscomps/components/IntersectionMapDirSelect/customintersectionmap.vue +7 -0
  52. package/src/kisscomps/components/MessageBox/index.vue +1 -1
  53. package/src/kisscomps/components/OverviewComponent/index.vue +0 -6
  54. package/src/kisscomps/components/PatternWalkSvg/PatternWalkSvg.vue +0 -16
  55. package/src/kisscomps/components/PhaseLegend/PhaseLegend.vue +2 -3
  56. package/src/kisscomps/components/PhaseMarker/svg/phaseSvg.vue +1 -1
  57. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +0 -82
  58. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +3 -4
  59. package/src/kisscomps/components/Stages/index.vue +2 -3
  60. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +0 -28
  61. package/src/kisscomps/components/overView/index.vue +0 -6
  62. package/src/kisscomps/components/patternConfig/index.vue +1 -1
  63. package/src/kisscomps/index.js +7 -2
  64. package/src/utils/ControlFormat.js +0 -8
  65. package/src/utils/fault.js +3 -1
  66. package/src/utils/faultcode.js +37 -36
  67. package/src/utils/i18nDirection.js +37 -0
  68. package/src/utils/phasedesc.js +0 -4
  69. package/src/utils/responseMessage.js +4 -0
  70. package/static/styles/intersection.scss +4 -0
@@ -12,7 +12,7 @@
12
12
  <template>
13
13
  <div class="direction-list-configuration">
14
14
  <div class="dir-config-row">
15
- <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.desc')}}:</div>
15
+ <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.desc')}}{{$i18n.locale === 'zh' ? ':' : ': '}}</div>
16
16
  <div class="dir-btn lane-dir">
17
17
  <div class="each-icon" v-for="(item, index) in laneList" :key="index" :class="item.disabled ? 'disabled-icon': ''">
18
18
  <el-tooltip class="item" effect="dark" :content="item.name" placement="bottom-start">
@@ -27,7 +27,7 @@
27
27
  </div>
28
28
  </div>
29
29
  <div class="dir-config-row">
30
- <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.peddesc')}}:</div>
30
+ <div class="label" :style="{width: labelWidth}">{{$t('openatccomponents.phase.peddesc')}}{{$i18n.locale === 'zh' ? ':' : ': '}}</div>
31
31
  <div class="dir-btn ped-dir">
32
32
  <div class="each-icon" v-for="(item, index) in pedList" :key="index" :class="item.disabled ? 'disabled-icon': ''">
33
33
  <el-tooltip class="item" effect="dark" :content="item.name" placement="bottom-start">
@@ -1,255 +1,259 @@
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
- <!-- 渠化图支持显示的元素类型 -->
14
- <div class="channelization-elements-components"
15
- :class="{'show-channelization-elements-components': UsageMode === 'show'}"
16
- :style="{'height': allitem.h + 'px', 'width': allitem.w + 'px'}">
17
- <drr
18
- id="sketchpadArea"
19
- :resizable="false"
20
- :x="allitem.x"
21
- :y="allitem.y"
22
- :w="allitem.w"
23
- :h="allitem.h"
24
- :angle="allitem.angle"
25
- :selectable="false"
26
- :aspectRatio="true"
27
- >
28
- <!-- 自定义底图 -->
29
- <CrossMap
30
- v-if="CrossMapVisible"
31
- :UsageMode="UsageMode"
32
- :CrossMapData="CrossMapData"
33
- :isSeletable="!isLockedCrossMap"
34
- :pointchange="pointchange"
35
- :chooseIndex="curChooseIconIndex"
36
- @changeCrossMap="changeCrossMap"
37
- @handleSelectIcon="handleSelectIcon"
38
- />
39
- <!-- 机动车图标 -->
40
- <div v-if="resetflag">
41
- <MotorwayIconSvg
42
- v-for="motorwaysitem in Motorways"
43
- :key="'motor-' + motorwaysitem.index"
44
- :UsageMode="UsageMode"
45
- :chooseIndex="curChooseIconIndex"
46
- :Data="motorwaysitem"
47
- :isSeletable="isSeletable"
48
- @changeMotorwayItem="changeMotorwayItem"
49
- @handleSelectIcon="handleSelectIcon"
50
- />
51
- </div>
52
- <!-- 文字图标 -->
53
- <!-- <EditableText
54
- :UsageMode="UsageMode"
55
- v-for="textitem in Texts"
56
- :key="textitem.index"
57
- :TextData="textitem"
58
- :isSeletable="isSeletable"
59
- @changeText="changeText"
60
- /> -->
61
- <!-- 倒计时图标 -->
62
- <CountdownIcon
63
- :UsageMode="UsageMode"
64
- v-for="timeitem in Countdown"
65
- :key="timeitem.index"
66
- :chooseIndex="curChooseIconIndex"
67
- :CountdownData="timeitem"
68
- :isSeletable="isSeletable"
69
- :CountdownList="CountdownList"
70
- :isHasPhase="isHasPhase"
71
- :bcgColor="bcgColor"
72
- :customText="customText"
73
- :textFontSize="textFontSize"
74
- @changeTimeItem="changeTimeItem"
75
- @handleSelectIcon="handleSelectIcon"
76
- />
77
- <!-- 人行横道图标 -->
78
- <div v-if="resetflag">
79
- <PedroadIconSvg
80
- :UsageMode="UsageMode"
81
- v-for="peditem in Pedwalk"
82
- :key="'ped-' + peditem.index"
83
- :chooseIndex="curChooseIconIndex"
84
- :PedData="peditem"
85
- :isSeletable="isSeletable"
86
- @changePedItem="changePedItem"
87
- @handleSelectIcon="handleSelectIcon"
88
- />
89
- </div>
90
- <DetectorIconSvg
91
- :UsageMode="UsageMode"
92
- v-for="detectoritem in Detector"
93
- :key="'detector-' + detectoritem.index"
94
- :chooseIndex="curChooseIconIndex"
95
- :DetectorData="detectoritem"
96
- :isSeletable="isSeletable"
97
- :CurChooseIcon="CurChooseIcon"
98
- @changeDetectorItem="changeDetectorItem"
99
- @handleSelectIcon="handleSelectIcon"
100
- />
101
- <!-- <DetectorChart
102
- :UsageMode="UsageMode"
103
- v-for="detchartitem in DetectorChart"
104
- :key="'detectorchart-' + detchartitem.index"
105
- :chooseIndex="curChooseIconIndex"
106
- :DetectorChartData="detchartitem"
107
- :Detector="Detector"
108
- :isSeletable="isSeletable"
109
- @changeDetectorChartItem="changeDetectorChartItem"
110
- @handleSelectIcon="handleSelectIcon" /> -->
111
- </drr>
112
- </div>
113
- </template>
114
-
115
- <script>
116
- import CrossMap from './drawElement/crossMap'
117
- import EditableText from './drawElement/editText'
118
- import MotorwayIconSvg from './iconSvg/motorwayIconSvg'
119
- import CountdownIcon from './iconSvg/countdownSvg'
120
- import PedroadIconSvg from './iconSvg/pedroadIconSvg'
121
- import DetectorIconSvg from './iconSvg/detectorIconSvg'
122
- import DetectorChart from './iconSvg/detectorChart.vue'
123
-
124
- export default {
125
- name: 'channelization-elements',
126
- components: {
127
- CrossMap,
128
- EditableText,
129
- MotorwayIconSvg,
130
- CountdownIcon,
131
- PedroadIconSvg,
132
- DetectorIconSvg,
133
- DetectorChart
134
- },
135
- props: {
136
- isSeletable: { // 元素是否可以编辑
137
- type: Boolean,
138
- default: true
139
- },
140
- allitem: {
141
- type: Object,
142
- required: true
143
- },
144
- CrossMapVisible: {
145
- type: Boolean,
146
- default: true
147
- },
148
- CrossMapData: {
149
- type: Object,
150
- required: true
151
- },
152
- pointchange: {
153
- type: Boolean,
154
- default: false
155
- },
156
- Motorways: {
157
- type: Array
158
- },
159
- Countdown: {
160
- type: Array
161
- },
162
- CountdownList: {
163
- type: Array
164
- },
165
- Pedwalk: {
166
- type: Array
167
- },
168
- curChooseIconIndex: {
169
- type: Number,
170
- default: -1
171
- },
172
- UsageMode: {
173
- type: String,
174
- default: 'draw'
175
- },
176
- isHasPhase: {
177
- type: Boolean,
178
- default: true
179
- },
180
- Detector: {
181
- type: Array
182
- },
183
- DetectorChart: {
184
- type: Array
185
- },
186
- CurChooseIcon: {
187
- type: Object
188
- },
189
- isLockedCrossMap: { // 是否锁定底图(是否允许编辑底图位置,角度等)
190
- type: Boolean,
191
- default: true
192
- },
193
- customText: {
194
- type: String
195
- },
196
- bcgColor: {
197
- type: String
198
- },
199
- textFontSize: {
200
- type: String
201
- }
202
- },
203
- data () {
204
- return {
205
- resetflag: true // 离线或者特殊控制后,控制行人相位、车道相位reset标识,主要是清空绿闪样式
206
- }
207
- },
208
- methods: {
209
- changeCrossMap (mapdata, fields) {
210
- this.$emit('changeCrossMap', mapdata, fields)
211
- },
212
- changeMotorwayItem (MotorwayItem, fields) {
213
- this.$emit('changeMotorwayItem', MotorwayItem, fields)
214
- },
215
- handleSelectIcon (iconobj, isCrossMap) {
216
- this.$emit('handleSelectIcon', iconobj, isCrossMap)
217
- },
218
- changeText (textobj, fields) {
219
- this.$emit('changeText', textobj, fields)
220
- },
221
- changeTimeItem (timeItem, fields) {
222
- this.$emit('changeTimeItem', timeItem, fields)
223
- },
224
- changePedItem (PedItem, fields) {
225
- this.$emit('changePedItem', PedItem, fields)
226
- },
227
- changeDetectorItem (detectorItem, fields) {
228
- this.$emit('changeDetectorItem', detectorItem, fields)
229
- },
230
- changeDetectorChartItem (detectorChartItem, fields) {
231
- this.$emit('changeDetectorChartItem', detectorChartItem, fields)
232
- },
233
- resetPhaseStatus () {
234
- // 车道相位、行人相位恢复默认状态
235
- this.resetflag = false
236
- this.$nextTick(() => {
237
- this.resetflag = true
238
- })
239
- }
240
- },
241
- created () {},
242
- mounted () {}
243
- }
244
- </script>
245
- <style lang="scss" scoped>
246
- .channelization-elements-components {
247
- position: relative;
248
- }
249
- .show-channelization-elements-components {
250
- left: 50%;
251
- top: 30px;
252
- transform: translateX(-50%);
253
- overflow: hidden;
254
- }
255
- </style>
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
+ <!-- 渠化图支持显示的元素类型 -->
14
+ <div class="channelization-elements-components"
15
+ :class="{'show-channelization-elements-components': UsageMode === 'show'}"
16
+ :style="{'height': allitem.h + 'px', 'width': allitem.w + 'px'}">
17
+ <drr
18
+ id="sketchpadArea"
19
+ :resizable="false"
20
+ :x="allitem.x"
21
+ :y="allitem.y"
22
+ :w="allitem.w"
23
+ :h="allitem.h"
24
+ :angle="allitem.angle"
25
+ :selectable="false"
26
+ :aspectRatio="true"
27
+ >
28
+ <!-- 自定义底图 -->
29
+ <CrossMap
30
+ v-if="CrossMapVisible"
31
+ :UsageMode="UsageMode"
32
+ :CrossMapData="CrossMapData"
33
+ :isSeletable="!isLockedCrossMap"
34
+ :pointchange="pointchange"
35
+ :chooseIndex="curChooseIconIndex"
36
+ @changeCrossMap="changeCrossMap"
37
+ @handleSelectIcon="handleSelectIcon"
38
+ />
39
+ <!-- 机动车图标 -->
40
+ <div v-if="resetflag">
41
+ <MotorwayIconSvg
42
+ v-for="motorwaysitem in Motorways"
43
+ :key="'motor-' + motorwaysitem.index"
44
+ :UsageMode="UsageMode"
45
+ :chooseIndex="curChooseIconIndex"
46
+ :Data="motorwaysitem"
47
+ :isSeletable="isSeletable"
48
+ @changeMotorwayItem="changeMotorwayItem"
49
+ @handleSelectIcon="handleSelectIcon"
50
+ />
51
+ </div>
52
+ <!-- 文字图标 -->
53
+ <!-- <EditableText
54
+ :UsageMode="UsageMode"
55
+ v-for="textitem in Texts"
56
+ :key="textitem.index"
57
+ :TextData="textitem"
58
+ :isSeletable="isSeletable"
59
+ @changeText="changeText"
60
+ /> -->
61
+ <!-- 倒计时图标 -->
62
+ <CountdownIcon
63
+ :UsageMode="UsageMode"
64
+ v-for="timeitem in Countdown"
65
+ :key="timeitem.index"
66
+ :chooseIndex="curChooseIconIndex"
67
+ :CountdownData="timeitem"
68
+ :isSeletable="isSeletable"
69
+ :CountdownList="CountdownList"
70
+ :isHasPhase="isHasPhase"
71
+ :bcgColor="bcgColor"
72
+ :customText="customText"
73
+ :textFontSize="textFontSize"
74
+ @changeTimeItem="changeTimeItem"
75
+ @handleSelectIcon="handleSelectIcon"
76
+ />
77
+ <!-- 人行横道图标 -->
78
+ <div v-if="resetflag">
79
+ <PedroadIconSvg
80
+ :UsageMode="UsageMode"
81
+ v-for="peditem in Pedwalk"
82
+ :key="'ped-' + peditem.index"
83
+ :chooseIndex="curChooseIconIndex"
84
+ :PedData="peditem"
85
+ :isSeletable="isSeletable"
86
+ @changePedItem="changePedItem"
87
+ @handleSelectIcon="handleSelectIcon"
88
+ />
89
+ </div>
90
+ <DetectorIconSvg
91
+ :UsageMode="UsageMode"
92
+ v-for="detectoritem in Detector"
93
+ :key="'detector-' + detectoritem.index"
94
+ :chooseIndex="curChooseIconIndex"
95
+ :DetectorData="detectoritem"
96
+ :isSeletable="isSeletable"
97
+ :CurChooseIcon="CurChooseIcon"
98
+ @changeDetectorItem="changeDetectorItem"
99
+ @handleSelectIcon="handleSelectIcon"
100
+ />
101
+ <!-- <DetectorChart
102
+ :UsageMode="UsageMode"
103
+ v-for="detchartitem in DetectorChart"
104
+ :key="'detectorchart-' + detchartitem.index"
105
+ :chooseIndex="curChooseIconIndex"
106
+ :DetectorChartData="detchartitem"
107
+ :Detector="Detector"
108
+ :isSeletable="isSeletable"
109
+ @changeDetectorChartItem="changeDetectorChartItem"
110
+ @handleSelectIcon="handleSelectIcon" /> -->
111
+ </drr>
112
+ </div>
113
+ </template>
114
+
115
+ <script>
116
+ import CrossMap from './drawElement/crossMap'
117
+ import EditableText from './drawElement/editText'
118
+ import MotorwayIconSvg from './iconSvg/motorwayIconSvg'
119
+ import CountdownIcon from './iconSvg/countdownSvg'
120
+ import PedroadIconSvg from './iconSvg/pedroadIconSvg'
121
+ import DetectorIconSvg from './iconSvg/detectorIconSvg'
122
+ import DetectorChart from './iconSvg/detectorChart.vue'
123
+
124
+ export default {
125
+ name: 'channelization-elements',
126
+ components: {
127
+ CrossMap,
128
+ EditableText,
129
+ MotorwayIconSvg,
130
+ CountdownIcon,
131
+ PedroadIconSvg,
132
+ DetectorIconSvg,
133
+ DetectorChart
134
+ },
135
+ props: {
136
+ isSeletable: { // 元素是否可以编辑
137
+ type: Boolean,
138
+ default: true
139
+ },
140
+ allitem: {
141
+ type: Object,
142
+ required: true
143
+ },
144
+ CrossMapVisible: {
145
+ type: Boolean,
146
+ default: true
147
+ },
148
+ CrossMapData: {
149
+ type: Object,
150
+ required: true
151
+ },
152
+ pointchange: {
153
+ type: Boolean,
154
+ default: false
155
+ },
156
+ Motorways: {
157
+ type: Array
158
+ },
159
+ Countdown: {
160
+ type: Array
161
+ },
162
+ CountdownList: {
163
+ type: Array
164
+ },
165
+ Pedwalk: {
166
+ type: Array
167
+ },
168
+ curChooseIconIndex: {
169
+ type: Number,
170
+ default: -1
171
+ },
172
+ UsageMode: {
173
+ type: String,
174
+ default: 'draw'
175
+ },
176
+ isHasPhase: {
177
+ type: Boolean,
178
+ default: true
179
+ },
180
+ Detector: {
181
+ type: Array
182
+ },
183
+ DetectorChart: {
184
+ type: Array
185
+ },
186
+ CurChooseIcon: {
187
+ type: Object
188
+ },
189
+ isLockedCrossMap: { // 是否锁定底图(是否允许编辑底图位置,角度等)
190
+ type: Boolean,
191
+ default: true
192
+ },
193
+ customText: {
194
+ type: String
195
+ },
196
+ bcgColor: {
197
+ type: String
198
+ },
199
+ textFontSize: {
200
+ type: String
201
+ }
202
+ },
203
+ data () {
204
+ return {
205
+ resetflag: true // 离线或者特殊控制后,控制行人相位、车道相位reset标识,主要是清空绿闪样式
206
+ }
207
+ },
208
+ methods: {
209
+ changeCrossMap (mapdata, fields) {
210
+ this.$emit('changeCrossMap', mapdata, fields)
211
+ },
212
+ changeMotorwayItem (MotorwayItem, fields) {
213
+ this.$emit('changeMotorwayItem', MotorwayItem, fields)
214
+ },
215
+ handleSelectIcon (iconobj, isCrossMap) {
216
+ this.$emit('handleSelectIcon', iconobj, isCrossMap)
217
+ },
218
+ changeText (textobj, fields) {
219
+ this.$emit('changeText', textobj, fields)
220
+ },
221
+ changeTimeItem (timeItem, fields) {
222
+ this.$emit('changeTimeItem', timeItem, fields)
223
+ },
224
+ changePedItem (PedItem, fields) {
225
+ this.$emit('changePedItem', PedItem, fields)
226
+ },
227
+ changeDetectorItem (detectorItem, fields) {
228
+ this.$emit('changeDetectorItem', detectorItem, fields)
229
+ },
230
+ changeDetectorChartItem (detectorChartItem, fields) {
231
+ this.$emit('changeDetectorChartItem', detectorChartItem, fields)
232
+ },
233
+ resetPhaseStatus () {
234
+ // 车道相位、行人相位恢复默认状态
235
+ this.resetflag = false
236
+ this.$nextTick(() => {
237
+ this.resetflag = true
238
+ })
239
+ }
240
+ },
241
+ created () {},
242
+ mounted () {}
243
+ }
244
+ </script>
245
+ <style scoped>
246
+ /* 本块为纯 CSS:不用 lang="scss",因为 node-sass 会把声明里的 rtl:ignore 指令整条丢弃,
247
+ 导致 rtlcss 仍翻出 [dir=rtl] 镜像副本(已实测确认)。去掉 sass 后指令才能到达 rtlcss。 */
248
+ .channelization-elements-components {
249
+ position: relative;
250
+ }
251
+ .show-channelization-elements-components {
252
+ /* 同 .crossImg:固定宽图层在窄父级内属“过约束块”,居中不能交给 rtlcss 翻转,
253
+ RTL 下锁定与 LTR 完全一致的 left/transform */
254
+ left: 50% /*!rtl:ignore*/;
255
+ top: 30px;
256
+ transform: translateX(-50%) /*!rtl:ignore*/;
257
+ overflow: hidden;
258
+ }
259
+ </style>
@@ -319,10 +319,10 @@ export default {
319
319
  AddType: '', // 正在添加的图标类型
320
320
 
321
321
  dirNameMap: new Map([
322
- [1, '直行'],
323
- [2, '左转'],
324
- [3, '右转'],
325
- [4, '掉头']
322
+ [1, this.$t('openatccomponents.channelizationmap.straightahead')],
323
+ [2, this.$t('openatccomponents.channelizationmap.turnleft')],
324
+ [3, this.$t('openatccomponents.channelizationmap.turnright')],
325
+ [4, this.$t('openatccomponents.channelizationmap.turnaround')]
326
326
  ]),
327
327
  phaseAssociatedMap: new Map(), // 关联相位Map: key 是相位ID, value 是车道数据包含direction
328
328
  dialogVisible: false,
@@ -16,12 +16,12 @@
16
16
  <span>{{scope.$index+1}}</span>
17
17
  </template>
18
18
  </el-table-column>
19
- <el-table-column align="center" label='类型' min-width="60">
19
+ <el-table-column align="center" :label="$t('openatccomponents.overview.type')" min-width="60">
20
20
  <template slot-scope="scope">
21
21
  <span>{{scope.row.icontype}}</span>
22
22
  </template>
23
23
  </el-table-column>
24
- <el-table-column align="center" label="相位">
24
+ <el-table-column align="center" :label="$t('openatccomponents.overview.phase')">
25
25
  <template slot-scope="scope">
26
26
  <el-select v-if="scope.row.icontype === 'vehile' || scope.row.icontype === 'ped'" v-model="scope.row.phaseid" :placeholder="$t('openatccomponents.common.select')" size="small" @change="handleChangePhase(scope.row)">
27
27
  <el-option
@@ -14,7 +14,7 @@
14
14
  <svg width="179" height="146" viewBox="0 0 179 146" xmlns="http://www.w3.org/2000/svg">
15
15
  <path id="默认路口" class="cls-1" d="M1101.92,2792H945.085A11.127,11.127,0,0,0,934,2803.14v123.72A11.127,11.127,0,0,0,945.085,2938H1101.92a11.124,11.124,0,0,0,11.08-11.14V2803.14A11.124,11.124,0,0,0,1101.92,2792Zm-156.835,7.42H1101.92a3.713,3.713,0,0,1,3.69,3.72v110.83l-43.01-39.04-35.51,29.73-50.281-43.15-35.419,38.42v-96.79A3.712,3.712,0,0,1,945.085,2799.42Zm-3.7,127.44v-16l36.017-39.07,68.513,58.79H945.085A3.712,3.712,0,0,1,941.39,2926.86Zm160.53,3.72H1057.3l-24.51-21.03,29.61-24.79,43.21,39.22v2.88A3.713,3.713,0,0,1,1101.92,2930.58Zm-46.4-75.89a21.445,21.445,0,1,0-21.35-21.45A21.424,21.424,0,0,0,1055.52,2854.69Zm0-35.47a14.025,14.025,0,1,1-13.96,14.02A14,14,0,0,1,1055.52,2819.22Z" transform="translate(-934 -2792)"/>
16
16
  </svg>
17
- <p class="text">未显示路口图</p>
17
+ <p class="text">{{ $t('openatccomponents.overview.noIntersectionMap') }}</p>
18
18
  </div>
19
19
  </template>
20
20
  <script>
@@ -1863,8 +1863,12 @@ export default {
1863
1863
  position: relative;
1864
1864
  width: 870px;
1865
1865
  height: 650px;
1866
- left: 50%;
1867
- transform: translateX(-50%);
1866
+ /* 水平居中与书写方向无关:本块 870px 宽、父级 .crossDirection-display 常窄于它,
1867
+ 属“过约束块”,静态位置随父级 direction 贴左/贴右;rtlcss 又会把 left:50%+
1868
+ translateX(-50%) 翻成 right:50%+translateX(50%),阿语下整块偏出面板被裁。
1869
+ 用 rtl:ignore 声明级忽略,RTL 下与 LTR 保持完全一致的定位,无需任何补偿规则。 */
1870
+ left: 50% /*!rtl:ignore*/;
1871
+ transform: translateX(-50%) /*!rtl:ignore*/;
1868
1872
  }
1869
1873
  .centerText {
1870
1874
  position: absolute;
@@ -228,3 +228,14 @@ export default {
228
228
  }
229
229
  }
230
230
  </script>
231
+ <style scoped>
232
+ /* 路口图内容方向由相位/渠化数据决定,与书写方向无关。本节点是 .crossImg(870px 宽的
233
+ 过约束块)的包含块:direction 若为 rtl,过宽子块会按“贴右”排布而整体偏出面板。
234
+ 锁 ltr 后配合 .crossImg 上的 rtl:ignore,阿语与中文逐像素一致。
235
+ direction 本身也必须 ignore:rtlcss 会把它翻成 [dir=rtl]…{direction:rtl} 的镜像副本
236
+ (特异性更高、后出现),不 ignore 则这条锁被自己抵消(已实测)。
237
+ 中/英本身就是 ltr,该声明对两个语种零影响。 */
238
+ .crossDirection-display {
239
+ direction: ltr /*!rtl:ignore*/;
240
+ }
241
+ </style>
@@ -650,8 +650,9 @@ export default {
650
650
  position: relative;
651
651
  width: 870px;
652
652
  height: 650px;
653
- left: 50%;
654
- transform: translateX(-50%);
653
+ /* 同 crossDiagram.vue:过约束块 + rtlcss 翻转会导致阿语整体偏出,用 rtl:ignore 锁定 LTR 定位 */
654
+ left: 50% /*!rtl:ignore*/;
655
+ transform: translateX(-50%) /*!rtl:ignore*/;
655
656
  }
656
657
  .centerText {
657
658
  position: absolute;
@@ -186,3 +186,10 @@ export default {
186
186
  }
187
187
  }
188
188
  </script>
189
+ <style scoped>
190
+ /* 同 intersectionmap.vue:图内容方向与书写方向无关,锁 LTR;
191
+ direction 加 rtl:ignore 防止被 rtlcss 翻成 [dir=rtl]…{direction:rtl};中/英下零影响 */
192
+ .crossDirection-display {
193
+ direction: ltr /*!rtl:ignore*/;
194
+ }
195
+ </style>
@@ -52,7 +52,7 @@ export default {
52
52
  },
53
53
  title: {
54
54
  type: String,
55
- default: '提示'
55
+ default: ''
56
56
  },
57
57
  text: {
58
58
  type: String,
@@ -171,12 +171,6 @@ export default {
171
171
  registerMessageTimer: null, // 延时器
172
172
  volumeControlTimer: null, // 流量定时器
173
173
  detectorStatusTimer: null, // 检测器定时器
174
- ParamsMode: new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']]),
175
- 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']]),
176
- 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, '设备维护']]),
177
- 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']]),
178
- phaseType: new Map([[1, '红'], [2, '黄'], [3, '绿'], [4, '绿闪']]), // phaseType表示红,黄,绿
179
- phaseTypeEn: new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green'], [4, 'Greenclear']]), // phaseType表示红,黄,绿
180
174
  ip: '--',
181
175
  port: '--',
182
176
  protocol: '--',