openatc-components 0.0.3 → 0.0.6

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 (30) hide show
  1. package/config/index.js +2 -2
  2. package/package/kisscomps/components/CommonKanban/CommonKanban.vue +14 -3
  3. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +11 -7
  4. package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +3 -3
  5. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +6 -1
  6. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +6 -1
  7. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +18 -1
  8. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +8 -0
  9. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +8 -0
  10. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +4 -1
  11. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +4 -1
  12. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +10 -6
  13. package/package/kissui.min.js +1 -1
  14. package/package.json +1 -1
  15. package/src/kisscomps/components/CommonKanban/CommonKanban.vue +14 -3
  16. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +11 -7
  17. package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +3 -3
  18. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +6 -1
  19. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +6 -1
  20. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +18 -1
  21. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +8 -0
  22. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +8 -0
  23. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +4 -1
  24. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +4 -1
  25. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +10 -6
  26. package/src/store/getters.js +2 -2
  27. package/src/store/modules/globalParam.js +7 -7
  28. package/src/views/intersection.vue +3 -2
  29. package/src/views/schemeconfig.vue +2 -1
  30. package/static/styles/common.scss +16 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.0.3",
3
+ "version": "0.0.6",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -27,7 +27,7 @@
27
27
  <el-tooltip class="item" effect="dark" placement="left">
28
28
  <div slot="content">{{element.name}}</div>
29
29
  <div class="common-phase-description">
30
- <xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
30
+ <xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor" :roadDirection="roadDirection"></xdrdirselector>
31
31
  </div>
32
32
  </el-tooltip>
33
33
  </div>
@@ -43,7 +43,10 @@
43
43
  <el-tooltip class="item" effect="dark" placement="left">
44
44
  <div slot="content">{{element.name}}</div>
45
45
  <div class="common-phase-description">
46
- <xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
46
+ <div v-for="(side, index) in sidewalkPhaseData" :key="side.key + '-' + index">
47
+ <PatternWalkSvg v-if="element.peddirection.includes(side.id)" :Data="side" Width="38" Height="40" />
48
+ </div>
49
+ <xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor" :roadDirection="roadDirection"></xdrdirselector>
47
50
  </div>
48
51
  </el-tooltip>
49
52
  </div>
@@ -57,12 +60,14 @@
57
60
  <script>
58
61
  import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
59
62
  import draggable from 'vuedraggable'
63
+ import PatternWalkSvg from '../IntersectionMap/crossDirection/baseImg/PatternWalkSvg'
60
64
 
61
65
  export default {
62
66
  name: 'common-kanban',
63
67
  components: {
64
68
  draggable,
65
- xdrdirselector
69
+ xdrdirselector,
70
+ PatternWalkSvg
66
71
  },
67
72
  props: {
68
73
  headerText: {
@@ -86,6 +91,12 @@ export default {
86
91
  Draggable: { // 是否开启拖动调整顺序
87
92
  type: Boolean,
88
93
  default: true
94
+ },
95
+ sidewalkPhaseData: {
96
+ type: Array
97
+ },
98
+ roadDirection: {
99
+ type: String
89
100
  }
90
101
  },
91
102
  methods: {
@@ -136,7 +136,7 @@ import RampSouthRoadsSvg from './baseImg/RampSouthSvg'
136
136
  import RampPhaseIconSvg from './phaseIcon/rampPhaseIconSvg'
137
137
  import PedSectionEWSvg from './baseImg/PedSectionEWSvg'
138
138
  import PedSectionSNSvg from './baseImg/PedSectionSNSvg'
139
- import { mapState } from 'vuex'
139
+ // import { mapState } from 'vuex'
140
140
  import LCrossRoadsSvg from './baseImg/leftroad/LCrossRoadsSvg'
141
141
  import LTShapeEastRoadsSvg from './baseImg/leftroad/LTShapeEastRoadsSvg'
142
142
  import LTShapeWestRoadsSvg from './baseImg/leftroad/LTShapeWestRoadsSvg.vue'
@@ -186,13 +186,17 @@ export default {
186
186
  isShowInterval: {
187
187
  type: Boolean,
188
188
  devault: true
189
+ },
190
+ roadDirection: {
191
+ type: String,
192
+ default: 'right'
189
193
  }
190
194
  },
191
- computed: {
192
- ...mapState({
193
- roadDirection: state => state.globalParam.roadDirection
194
- })
195
- },
195
+ // computed: {
196
+ // ...mapState({
197
+ // roadDirection: state => state.globalParam.roadDirection
198
+ // })
199
+ // },
196
200
  watch: {
197
201
  tempType: {
198
202
  handler: function (val) {
@@ -296,7 +300,7 @@ export default {
296
300
  init () {
297
301
  this.CrossDiagramMgr = new CrossDiagramMgr()
298
302
  this.getRoadDirection()
299
- this.PhaseDataModel = new PhaseDataModel()
303
+ this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
300
304
  this.getIntersectionInfo() // 获取路口信息
301
305
  },
302
306
  comparePhaseStatus () {
@@ -10,9 +10,9 @@
10
10
  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
11
11
  * See the Mulan PSL v2 for more details.
12
12
  **/
13
- import store from '../../../../store'
14
13
  export default class PhaseDataModel {
15
- constructor () {
14
+ constructor (roadDirection = 'right') {
15
+ this.roadDirection = roadDirection
16
16
  this.PhasePosMap = new Map()
17
17
  this.SidePosMap = new Map()
18
18
  this.RampMainPosMap = new Map() // 匝道主路坐标
@@ -27,7 +27,7 @@ export default class PhaseDataModel {
27
27
  let rampJson = require('./posJson/rampPos.json')
28
28
  let busMapJson = require('./posJson/busPos.json').busMap
29
29
  let busPhaseJson = require('./posJson/busPos.json').busphases
30
- if (store.getters.roadDirection === 'left') {
30
+ if (this.roadDirection === 'left') {
31
31
  phaseJson = require('./posJson/phasePos.left.json').phaseList
32
32
  busMapJson = require('./posJson/busPos.left.json').busMap
33
33
  busPhaseJson = require('./posJson/busPos.left.json').busphases
@@ -27,7 +27,8 @@
27
27
  :crossStatusData="crossStatusData"
28
28
  :agentId="agentId"
29
29
  :isShowInterval="isShowInterval"
30
- :devStatus="devStatus"/>
30
+ :devStatus="devStatus"
31
+ :roadDirection="roadDirection" />
31
32
  </div>
32
33
  </div>
33
34
  </template>
@@ -75,6 +76,10 @@ export default {
75
76
  handler: function (val) {
76
77
  this.setPropsToken(val)
77
78
  }
79
+ },
80
+ roadDirection: {
81
+ type: String,
82
+ default: 'right'
78
83
  }
79
84
  },
80
85
  watch: {
@@ -17,7 +17,8 @@
17
17
  :crossStatusData="crossStatusData"
18
18
  :devStatus="devStatus"
19
19
  :agentId="agentId"
20
- :graphicMode="true"/>
20
+ :graphicMode="true"
21
+ :roadDirection="roadDirection" />
21
22
  </div>
22
23
  </template>
23
24
  <script>
@@ -51,6 +52,10 @@ export default {
51
52
  Token: {
52
53
  type: String,
53
54
  default: ''
55
+ },
56
+ roadDirection: {
57
+ type: String,
58
+ default: 'right'
54
59
  }
55
60
  },
56
61
  watch: {
@@ -27,6 +27,7 @@
27
27
  :currentStage="currentStage"
28
28
  :preselectStages="preselectStages"
29
29
  :realtimeStatusModalvisible="realtimeStatusModalvisible"
30
+ :roadDirection="roadDirection"
30
31
  @closeManualModal="closeManualModal"
31
32
  @selectModel="selectModel"
32
33
  @selectStages="selectStages"
@@ -42,14 +43,18 @@
42
43
  v-if="specialPage === 'closephase'"
43
44
  :controlData="controlData"
44
45
  :closePhaseRings="phaseRings"
46
+ :sidewalkPhaseData="sidewalkPhaseData"
45
47
  :realtimeStatusModalvisible="realtimeStatusModalvisible"
48
+ :roadDirection="roadDirection"
46
49
  @closePhaseBack="closePhaseBack"
47
50
  @closePhaseControl= "closePhaseControl" />
48
51
  <LockingPhaseControlModal
49
52
  v-if="specialPage === 'lockingphase'"
50
53
  :controlData="controlData"
51
54
  :closePhaseRings="phaseRings"
55
+ :sidewalkPhaseData="sidewalkPhaseData"
52
56
  :realtimeStatusModalvisible="realtimeStatusModalvisible"
57
+ :roadDirection="roadDirection"
53
58
  @closePhaseBack="closePhaseBack"
54
59
  @closePhaseControl= "closePhaseControl" />
55
60
  </div>
@@ -76,6 +81,7 @@
76
81
  :agentId="agentId"
77
82
  :stagesList="stagesList"
78
83
  :sidewalkPhaseData="sidewalkPhaseData"
84
+ :roadDirection="roadDirection"
79
85
  @changeStatus="changeStatus"
80
86
  @showFaultDetail="showFaultDetail"/>
81
87
  </div>
@@ -139,6 +145,10 @@ export default {
139
145
  Token: {
140
146
  type: String,
141
147
  default: ''
148
+ },
149
+ roadDirection: {
150
+ type: String,
151
+ default: 'right'
142
152
  }
143
153
  },
144
154
  data () {
@@ -270,10 +280,17 @@ export default {
270
280
  handler: function (val) {
271
281
  this.setPropsToken(val)
272
282
  }
283
+ },
284
+ roadDirection: {
285
+ handler: function (val) {
286
+ if (val === 'left' || val === 'right') {
287
+ this.PhaseDataModel = new PhaseDataModel(val)
288
+ }
289
+ }
273
290
  }
274
291
  },
275
292
  created () {
276
- this.PhaseDataModel = new PhaseDataModel()
293
+ this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
277
294
  this.CrossDiagramMgr = new CrossDiagramMgr()
278
295
  if (this.realtimeStatusModalvisible === false) {
279
296
  this.changeStatus()
@@ -41,6 +41,8 @@
41
41
  :list="ring.phases"
42
42
  :header-text="$t('openatccomponents.pattern.ring') + ring.num"
43
43
  :Draggable="false"
44
+ :sidewalkPhaseData="sidewalkPhaseData"
45
+ :roadDirection="roadDirection"
44
46
  @handleSort="handleSort">
45
47
  <template v-slot:kanbantitle>
46
48
  <div class="col-title" v-text="$t('openatccomponents.overview.closemode')"></div>
@@ -106,6 +108,12 @@ export default {
106
108
  realtimeStatusModalvisible: {
107
109
  type: Boolean,
108
110
  default: true
111
+ },
112
+ sidewalkPhaseData: {
113
+ type: Array
114
+ },
115
+ roadDirection: {
116
+ type: String
109
117
  }
110
118
  },
111
119
  computed: {
@@ -57,6 +57,8 @@
57
57
  :list="ring.phases"
58
58
  :header-text="$t('openatccomponents.pattern.ring') + ring.num"
59
59
  :Draggable="false"
60
+ :sidewalkPhaseData="sidewalkPhaseData"
61
+ :roadDirection="roadDirection"
60
62
  @handleSort="handleSort">
61
63
  <template v-slot:kanbantitle>
62
64
  <div class="col-title" v-text="$t('openatccomponents.overview.closemode')"></div>
@@ -122,6 +124,12 @@ export default {
122
124
  realtimeStatusModalvisible: {
123
125
  type: Boolean,
124
126
  default: true
127
+ },
128
+ sidewalkPhaseData: {
129
+ type: Array
130
+ },
131
+ roadDirection: {
132
+ type: String
125
133
  }
126
134
  },
127
135
  data () {
@@ -54,7 +54,7 @@
54
54
  <div style="width: 100%; height: auto;overflow: hidden;">
55
55
  <div class="control-model" v-for="(item, index) in stagesList" :key="index">
56
56
  <div class="single-model" @click="selectStages(index + 1)" :class="preselectStages == index + 1 ? 'single-model-select' : ''">
57
- <xdrdirselector Width="40px" Height="40px" :showlist="item"></xdrdirselector>
57
+ <xdrdirselector Width="40px" Height="40px" :showlist="item" :roadDirection="roadDirection"></xdrdirselector>
58
58
  <div style="display:flex;flex-direction:row;justify-content:center;align-items:center;">
59
59
  <div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
60
60
  <div style="width:70%;">
@@ -126,6 +126,9 @@ export default {
126
126
  realtimeStatusModalvisible: {
127
127
  type: Boolean,
128
128
  default: true
129
+ },
130
+ roadDirection: {
131
+ type: String
129
132
  }
130
133
  },
131
134
  computed: {
@@ -161,7 +161,7 @@
161
161
  :Width="'44'"
162
162
  :Height="'44'"
163
163
  />
164
- <xdrdirselector Width="40PX" Height="40PX" :showlist="item"></xdrdirselector>
164
+ <xdrdirselector Width="40PX" Height="40PX" :showlist="item" :roadDirection="roadDirection"></xdrdirselector>
165
165
  <div
166
166
  style="display:flex;flex-direction:row;justify-content:center;align-items:center;"
167
167
  >
@@ -274,6 +274,9 @@ export default {
274
274
  },
275
275
  untreatedFault: {
276
276
  type: Array
277
+ },
278
+ roadDirection: {
279
+ type: String
277
280
  }
278
281
  },
279
282
  data () {
@@ -306,7 +306,7 @@
306
306
  </svg>
307
307
  </template>
308
308
  <script>
309
- import { mapState } from 'vuex'
309
+ // import { mapState } from 'vuex'
310
310
  export default {
311
311
  name: 'xdr-dir-selector',
312
312
  props: {
@@ -344,13 +344,17 @@ export default {
344
344
  MaskColor: {
345
345
  type: String,
346
346
  default: '#0096ba'
347
+ },
348
+ roadDirection: {
349
+ type: String,
350
+ default: 'right'
347
351
  }
348
352
  },
349
- computed: {
350
- ...mapState({
351
- roadDirection: state => state.globalParam.roadDirection
352
- })
353
- },
353
+ // computed: {
354
+ // ...mapState({
355
+ // roadDirection: state => state.globalParam.roadDirection
356
+ // })
357
+ // },
354
358
  data () {
355
359
  return {
356
360
  maskmark: false,
@@ -23,7 +23,7 @@ const getters = {
23
23
  curPath: state => state.globalParam.curPath,
24
24
  globalParamModel: state => state.globalParamModel.GlobalParamModeObject,
25
25
  devParams: state => state.globalParamModel.devParams,
26
- permissionRoutes: state => state.permissionRoutes.routers,
27
- roadDirection: state => state.globalParam.roadDirection
26
+ permissionRoutes: state => state.permissionRoutes.routers
27
+ // roadDirection: state => state.globalParam.roadDirection
28
28
  }
29
29
  export default getters
@@ -66,7 +66,7 @@ const Global = {
66
66
  FuncSort: 'allFunc',
67
67
  hideMenu: false,
68
68
  graphicMode: false, // 为true时,切换到图形界面模式,只显示路口图部分
69
- roadDirection: 'right', // 当前路口行车方向:默认右行
69
+ // roadDirection: 'right', // 当前路口行车方向:默认右行
70
70
  channelDescMap: new Map(), // 管理实时通道描述数据
71
71
  isShowGui: true, // 总览当前是否是图形界面
72
72
  isRefreshTankuang: 'norefresh' // 刷新某个页面的相位弹框组件
@@ -114,9 +114,9 @@ const Global = {
114
114
  SET_GRAPHIC_MODE: (state, isSwitchGraphicMode) => {
115
115
  state.graphicMode = isSwitchGraphicMode
116
116
  },
117
- SET_ROAD_RIRECTION: (state, DIR) => {
118
- state.roadDirection = DIR
119
- },
117
+ // SET_ROAD_RIRECTION: (state, DIR) => {
118
+ // state.roadDirection = DIR
119
+ // },
120
120
  SET_CHANNEL_DESC: (state, descmap) => {
121
121
  state.channelDescMap = descmap
122
122
  },
@@ -176,9 +176,9 @@ const Global = {
176
176
  SetGraphicMode ({ commit }, isSwitchGraphicMode) {
177
177
  commit('SET_GRAPHIC_MODE', isSwitchGraphicMode)
178
178
  },
179
- SetRoadDirection ({ commit }, DIR) {
180
- commit('SET_ROAD_RIRECTION', DIR)
181
- },
179
+ // SetRoadDirection ({ commit }, DIR) {
180
+ // commit('SET_ROAD_RIRECTION', DIR)
181
+ // },
182
182
  SetChannelDesc ({ commit }, descmap) {
183
183
  commit('SET_CHANNEL_DESC', descmap)
184
184
  },
@@ -12,7 +12,8 @@
12
12
  <intersection-with-interface
13
13
  ref="intersectionWithInterface"
14
14
  :AgentId="agentId"
15
- Token="eyJraWQiOiIxNjQ4NDMyMTY5NjExIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNDgzMjE2OSwiaWF0IjoxNjQ4NDMyMTY5fQ.yNM6N0STwcNHE9tYi7fTfb0vqYLabjPntx7pQDS2zy4"
15
+ roadDirection="left"
16
+ Token="eyJraWQiOiIxNjQ4ODAyNTk2Nzc4IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTczNTIwMjU5NiwiaWF0IjoxNjQ4ODAyNTk2fQ.TMA7MaKDDwGxOrzyRIFbfrsH-_UyPGFz2Uqnnwsc8nk"
16
17
  ></intersection-with-interface>
17
18
  </el-dialog>
18
19
  </div>
@@ -24,7 +25,7 @@ export default {
24
25
  return {
25
26
  boxVisible: false,
26
27
  dialogWidth: '80%',
27
- agentId: '1640244524086'
28
+ agentId: '10001-928'
28
29
  }
29
30
  },
30
31
  methods: {
@@ -22,7 +22,8 @@
22
22
  append-to-body>
23
23
  <scheme-config
24
24
  ref="rightpanel"
25
- agentId="1640244524086"
25
+ agentId="10001-928"
26
+ roadDirection="right"
26
27
  :statusData="crossStatusData"
27
28
  :realtimeStatusModalvisible="false" />
28
29
  </el-dialog>
@@ -1,3 +1,18 @@
1
1
  @import './intersection.scss';
2
2
  @import './schemeconfig.scss';
3
- @import './commonkanban.scss';
3
+ @import './commonkanban.scss';
4
+
5
+ // 全局滚动条样式
6
+ ::-webkit-scrollbar {
7
+ width: 6px;
8
+ height: 6px;
9
+ }
10
+ ::-webkit-scrollbar-thumb {
11
+ // 滚动条的滑块
12
+ border-radius: 4px;
13
+ background: rgba(144, 147, 153, 0.3);
14
+ }
15
+ ::-webkit-scrollbar-corner{
16
+ // 横向滚动条和纵向滚动条同时出现,右下角有个小白方格
17
+ background: transparent;
18
+ }