openatc-components 0.0.6 → 0.0.12

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 (35) hide show
  1. package/package/kisscomps/components/CommonKanban/CommonKanban.vue +2 -5
  2. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -11
  3. package/package/kisscomps/components/IntersectionMap/crossDirection/utils.js +3 -3
  4. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -6
  5. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -6
  6. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -15
  7. package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +0 -6
  8. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +0 -4
  9. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +13 -8
  10. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -4
  11. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +6 -10
  12. package/package/kissui.min.js +1 -1
  13. package/package.json +1 -1
  14. package/src/kisscomps/components/CommonKanban/CommonKanban.vue +2 -5
  15. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -11
  16. package/src/kisscomps/components/IntersectionMap/crossDirection/utils.js +3 -3
  17. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -6
  18. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +1 -6
  19. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +4 -15
  20. package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +0 -6
  21. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +0 -4
  22. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +13 -8
  23. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -4
  24. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +6 -10
  25. package/src/store/getters.js +1 -14
  26. package/src/store/index.js +1 -11
  27. package/src/store/modules/globalParam.js +5 -174
  28. package/src/views/intersection.vue +1 -2
  29. package/src/views/schemeconfig.vue +6 -2
  30. package/src/EdgeMgr/controller/globalParamsMgr.js +0 -75
  31. package/src/store/modules/app.js +0 -54
  32. package/src/store/modules/globalParamModel.js +0 -34
  33. package/src/store/modules/permissionRoutes.js +0 -50
  34. package/src/store/modules/saveAgent.js +0 -35
  35. package/src/store/modules/user.js +0 -133
@@ -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" :roadDirection="roadDirection"></xdrdirselector>
30
+ <xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
31
31
  </div>
32
32
  </el-tooltip>
33
33
  </div>
@@ -46,7 +46,7 @@
46
46
  <div v-for="(side, index) in sidewalkPhaseData" :key="side.key + '-' + index">
47
47
  <PatternWalkSvg v-if="element.peddirection.includes(side.id)" :Data="side" Width="38" Height="40" />
48
48
  </div>
49
- <xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor" :roadDirection="roadDirection"></xdrdirselector>
49
+ <xdrdirselector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></xdrdirselector>
50
50
  </div>
51
51
  </el-tooltip>
52
52
  </div>
@@ -94,9 +94,6 @@ export default {
94
94
  },
95
95
  sidewalkPhaseData: {
96
96
  type: Array
97
- },
98
- roadDirection: {
99
- type: String
100
97
  }
101
98
  },
102
99
  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,17 +186,13 @@ export default {
186
186
  isShowInterval: {
187
187
  type: Boolean,
188
188
  devault: true
189
- },
190
- roadDirection: {
191
- type: String,
192
- default: 'right'
193
189
  }
194
190
  },
195
- // computed: {
196
- // ...mapState({
197
- // roadDirection: state => state.globalParam.roadDirection
198
- // })
199
- // },
191
+ computed: {
192
+ ...mapState({
193
+ roadDirection: state => state.globalParam.roadDirection
194
+ })
195
+ },
200
196
  watch: {
201
197
  tempType: {
202
198
  handler: function (val) {
@@ -300,7 +296,7 @@ export default {
300
296
  init () {
301
297
  this.CrossDiagramMgr = new CrossDiagramMgr()
302
298
  this.getRoadDirection()
303
- this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
299
+ this.PhaseDataModel = new PhaseDataModel()
304
300
  this.getIntersectionInfo() // 获取路口信息
305
301
  },
306
302
  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'
13
14
  export default class PhaseDataModel {
14
- constructor (roadDirection = 'right') {
15
- this.roadDirection = roadDirection
15
+ constructor () {
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 (this.roadDirection === 'left') {
30
+ if (store.getters.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,8 +27,7 @@
27
27
  :crossStatusData="crossStatusData"
28
28
  :agentId="agentId"
29
29
  :isShowInterval="isShowInterval"
30
- :devStatus="devStatus"
31
- :roadDirection="roadDirection" />
30
+ :devStatus="devStatus" />
32
31
  </div>
33
32
  </div>
34
33
  </template>
@@ -76,10 +75,6 @@ export default {
76
75
  handler: function (val) {
77
76
  this.setPropsToken(val)
78
77
  }
79
- },
80
- roadDirection: {
81
- type: String,
82
- default: 'right'
83
78
  }
84
79
  },
85
80
  watch: {
@@ -17,8 +17,7 @@
17
17
  :crossStatusData="crossStatusData"
18
18
  :devStatus="devStatus"
19
19
  :agentId="agentId"
20
- :graphicMode="true"
21
- :roadDirection="roadDirection" />
20
+ :graphicMode="true" />
22
21
  </div>
23
22
  </template>
24
23
  <script>
@@ -52,10 +51,6 @@ export default {
52
51
  Token: {
53
52
  type: String,
54
53
  default: ''
55
- },
56
- roadDirection: {
57
- type: String,
58
- default: 'right'
59
54
  }
60
55
  },
61
56
  watch: {
@@ -27,7 +27,7 @@
27
27
  :currentStage="currentStage"
28
28
  :preselectStages="preselectStages"
29
29
  :realtimeStatusModalvisible="realtimeStatusModalvisible"
30
- :roadDirection="roadDirection"
30
+ :funcSort="funcSort"
31
31
  @closeManualModal="closeManualModal"
32
32
  @selectModel="selectModel"
33
33
  @selectStages="selectStages"
@@ -45,7 +45,6 @@
45
45
  :closePhaseRings="phaseRings"
46
46
  :sidewalkPhaseData="sidewalkPhaseData"
47
47
  :realtimeStatusModalvisible="realtimeStatusModalvisible"
48
- :roadDirection="roadDirection"
49
48
  @closePhaseBack="closePhaseBack"
50
49
  @closePhaseControl= "closePhaseControl" />
51
50
  <LockingPhaseControlModal
@@ -54,7 +53,6 @@
54
53
  :closePhaseRings="phaseRings"
55
54
  :sidewalkPhaseData="sidewalkPhaseData"
56
55
  :realtimeStatusModalvisible="realtimeStatusModalvisible"
57
- :roadDirection="roadDirection"
58
56
  @closePhaseBack="closePhaseBack"
59
57
  @closePhaseControl= "closePhaseControl" />
60
58
  </div>
@@ -81,7 +79,6 @@
81
79
  :agentId="agentId"
82
80
  :stagesList="stagesList"
83
81
  :sidewalkPhaseData="sidewalkPhaseData"
84
- :roadDirection="roadDirection"
85
82
  @changeStatus="changeStatus"
86
83
  @showFaultDetail="showFaultDetail"/>
87
84
  </div>
@@ -146,9 +143,8 @@ export default {
146
143
  type: String,
147
144
  default: ''
148
145
  },
149
- roadDirection: {
150
- type: String,
151
- default: 'right'
146
+ funcSort: {
147
+ type: String
152
148
  }
153
149
  },
154
150
  data () {
@@ -280,17 +276,10 @@ export default {
280
276
  handler: function (val) {
281
277
  this.setPropsToken(val)
282
278
  }
283
- },
284
- roadDirection: {
285
- handler: function (val) {
286
- if (val === 'left' || val === 'right') {
287
- this.PhaseDataModel = new PhaseDataModel(val)
288
- }
289
- }
290
279
  }
291
280
  },
292
281
  created () {
293
- this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
282
+ this.PhaseDataModel = new PhaseDataModel()
294
283
  this.CrossDiagramMgr = new CrossDiagramMgr()
295
284
  if (this.realtimeStatusModalvisible === false) {
296
285
  this.changeStatus()
@@ -42,7 +42,6 @@
42
42
  :header-text="$t('openatccomponents.pattern.ring') + ring.num"
43
43
  :Draggable="false"
44
44
  :sidewalkPhaseData="sidewalkPhaseData"
45
- :roadDirection="roadDirection"
46
45
  @handleSort="handleSort">
47
46
  <template v-slot:kanbantitle>
48
47
  <div class="col-title" v-text="$t('openatccomponents.overview.closemode')"></div>
@@ -111,13 +110,8 @@ export default {
111
110
  },
112
111
  sidewalkPhaseData: {
113
112
  type: Array
114
- },
115
- roadDirection: {
116
- type: String
117
113
  }
118
114
  },
119
- computed: {
120
- },
121
115
  data () {
122
116
  return {
123
117
  visible: this.Visible,
@@ -58,7 +58,6 @@
58
58
  :header-text="$t('openatccomponents.pattern.ring') + ring.num"
59
59
  :Draggable="false"
60
60
  :sidewalkPhaseData="sidewalkPhaseData"
61
- :roadDirection="roadDirection"
62
61
  @handleSort="handleSort">
63
62
  <template v-slot:kanbantitle>
64
63
  <div class="col-title" v-text="$t('openatccomponents.overview.closemode')"></div>
@@ -127,9 +126,6 @@ export default {
127
126
  },
128
127
  sidewalkPhaseData: {
129
128
  type: Array
130
- },
131
- roadDirection: {
132
- type: String
133
129
  }
134
130
  },
135
131
  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" :roadDirection="roadDirection"></xdrdirselector>
57
+ <xdrdirselector Width="40px" Height="40px" :showlist="item"></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%;">
@@ -89,7 +89,6 @@
89
89
 
90
90
  <script>
91
91
  import xdrdirselector from '../../XRDDirSelector/XRDDirSelector'
92
- import { mapState } from 'vuex'
93
92
  export default {
94
93
  name: 'manualControl',
95
94
  components: {
@@ -127,14 +126,16 @@ export default {
127
126
  type: Boolean,
128
127
  default: true
129
128
  },
130
- roadDirection: {
129
+ funcSort: {
131
130
  type: String
132
131
  }
133
132
  },
134
- computed: {
135
- ...mapState({
136
- FuncSort: state => state.globalParam.FuncSort
137
- })
133
+ watch: {
134
+ funcSort: {
135
+ handler: function (val) {
136
+ this.FuncSort = val
137
+ }
138
+ }
138
139
  },
139
140
  data () {
140
141
  return {
@@ -144,7 +145,8 @@ export default {
144
145
  tempPatternid: 0, // 控制方式手动操作的情况下的控制编号的临时值。
145
146
  tempDelay: 0, // 控制方式手动操作的情况下的延迟时间的临时值。
146
147
  tempDuration: 300 // 控制方式手动操作的情况下的持续时间的临时值。
147
- }
148
+ },
149
+ FuncSort: 'allFunc'
148
150
  }
149
151
  },
150
152
  methods: {
@@ -174,6 +176,9 @@ export default {
174
176
  if (this.controlData.tempDuration) {
175
177
  this.manualInfo.tempDuration = this.controlData.duration
176
178
  }
179
+ if (this.funcSort) {
180
+ this.FuncSort = this.funcSort
181
+ }
177
182
  }
178
183
  }
179
184
  </script>
@@ -161,7 +161,7 @@
161
161
  :Width="'44'"
162
162
  :Height="'44'"
163
163
  />
164
- <xdrdirselector Width="40PX" Height="40PX" :showlist="item" :roadDirection="roadDirection"></xdrdirselector>
164
+ <xdrdirselector Width="40PX" Height="40PX" :showlist="item"></xdrdirselector>
165
165
  <div
166
166
  style="display:flex;flex-direction:row;justify-content:center;align-items:center;"
167
167
  >
@@ -274,9 +274,6 @@ export default {
274
274
  },
275
275
  untreatedFault: {
276
276
  type: Array
277
- },
278
- roadDirection: {
279
- type: String
280
277
  }
281
278
  },
282
279
  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,17 +344,13 @@ export default {
344
344
  MaskColor: {
345
345
  type: String,
346
346
  default: '#0096ba'
347
- },
348
- roadDirection: {
349
- type: String,
350
- default: 'right'
351
347
  }
352
348
  },
353
- // computed: {
354
- // ...mapState({
355
- // roadDirection: state => state.globalParam.roadDirection
356
- // })
357
- // },
349
+ computed: {
350
+ ...mapState({
351
+ roadDirection: state => state.globalParam.roadDirection
352
+ })
353
+ },
358
354
  data () {
359
355
  return {
360
356
  maskmark: false,