openatc-components 0.3.80 → 0.3.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 (42) hide show
  1. package/package/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +1 -1
  2. package/package/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +5 -7
  3. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
  4. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  5. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +13 -12
  6. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +11 -7
  7. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -6
  8. package/package/kisscomps/components/OverviewComponent/index.js +2 -0
  9. package/package/kisscomps/components/OverviewComponent/index.vue +793 -0
  10. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +28 -4
  11. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
  12. package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +21 -1
  13. package/package/kisscomps/index.js +3 -1
  14. package/package/kissui.min.js +1 -1
  15. package/package.json +1 -1
  16. package/src/i18n/language/en.js +7 -0
  17. package/src/i18n/language/zh.js +7 -0
  18. package/src/kisscomps/components/ChannelizationWithInterface/ChannelizationWithInterface.vue +1 -1
  19. package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +5 -7
  20. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +46 -145
  21. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  22. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +13 -12
  23. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +11 -7
  24. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +5 -6
  25. package/src/kisscomps/components/OverviewComponent/index.js +2 -0
  26. package/src/kisscomps/components/OverviewComponent/index.vue +793 -0
  27. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +28 -4
  28. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +9 -11
  29. package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +21 -1
  30. package/src/kisscomps/index.js +3 -1
  31. package/src/utils/conflct.js +24 -33
  32. package/src/views/intersection.vue +7 -6
  33. package/src/views/intersection2.vue +2 -2
  34. package/src/views/overView.vue +17 -4
  35. package/static/styles/common.scss +3 -3
  36. package/static/styles/dark/theme/element-dark.scss +1 -1
  37. package/static/styles/intersection.scss +5 -15
  38. package/static/styles/light/theme/element-light.scss +1 -1
  39. package/static/styles/schemeconfig.scss +6 -3
  40. package/package/kisscomps/components/OptimizeKanban/index.js +0 -2
  41. package/package/kisscomps/components/OptimizeKanban/index.vue +0 -369
  42. package/src/node_modules/.package_versions.json +0 -1
@@ -212,8 +212,8 @@ export default {
212
212
  Detector: [], // 管理所有检测器
213
213
  DetectorChart: [], // 管理所有检测器统计图
214
214
  motorwayicon: '',
215
- IconLengh: 60,
216
- IconWdith: 134,
215
+ IconLengh: 33,
216
+ IconWdith: 109,
217
217
  textareaW: 200,
218
218
  textareaH: 100,
219
219
  pedW: 206,
@@ -389,8 +389,8 @@ export default {
389
389
  h: this.IconWdith,
390
390
  angle: 0
391
391
  }
392
- this.IconLengh = 60
393
- this.IconWdith = 134
392
+ this.IconLengh = 33
393
+ this.IconWdith = 109
394
394
  let Motorwaysitem = {
395
395
  index: this.index,
396
396
  id: this.motorid,
@@ -306,19 +306,20 @@ export default {
306
306
  this.handleDefaultStatus()
307
307
  }
308
308
  },
309
- roadDirection: {
310
- handler: function (val1, val2) {
311
- if (val1 !== val2) {
312
- this.init()
313
- }
314
- }
315
- },
309
+ // roadDirection: {
310
+ // handler: function (val1, val2) {
311
+ // if (val1 !== val2) {
312
+ // this.init()
313
+ // }
314
+ // }
315
+ // },
316
316
  agentId: {
317
317
  handler: function (val1, val2) {
318
318
  if (val1 !== val2) {
319
319
  this.init()
320
320
  }
321
- }
321
+ },
322
+ immediate: true
322
323
  }
323
324
  },
324
325
  data () {
@@ -702,7 +703,7 @@ export default {
702
703
  },
703
704
  getIntersectionInfo () {
704
705
  // 获取路口信息
705
- const agentid = this.agentId || '0'
706
+ const agentid = this.agentId
706
707
  getIntersectionInfo(agentid).then(res => {
707
708
  if (!res.data.success) {
708
709
  this.isLoaded = false
@@ -1053,8 +1054,8 @@ export default {
1053
1054
  },
1054
1055
  handleRepeatRealdir (channelList) {
1055
1056
  // 按realdir去掉重复方向的数据
1056
- let dirChannelList = channelList.filter(ele => ele.realdir !== undefined && (ele.type === 0 || ele.type === 1 || ele.type === 3))
1057
- let pedDirChannelList = channelList.filter(ele => ele.realdir !== undefined && ele.type === 2)
1057
+ let dirChannelList = channelList.filter(ele => ele.type === 0 || ele.type === 1 || ele.type === 3)
1058
+ let pedDirChannelList = channelList.filter(ele => ele.type === 2)
1058
1059
  let map = new Map()
1059
1060
  let map2 = new Map()
1060
1061
  dirChannelList.forEach(ele => {
@@ -1313,7 +1314,7 @@ export default {
1313
1314
  }
1314
1315
  },
1315
1316
  mounted () {
1316
- this.init()
1317
+ // this.init()
1317
1318
  }
1318
1319
  }
1319
1320
  </script>
@@ -74,8 +74,7 @@ export default {
74
74
  // default: 0
75
75
  // },
76
76
  agentId: {
77
- type: String,
78
- default: '0'
77
+ type: String
79
78
  },
80
79
  graphicMode: {
81
80
  type: Boolean,
@@ -135,7 +134,7 @@ export default {
135
134
  watch: {
136
135
  $route: {
137
136
  handler: function (val, oldVal) {
138
- if (val.query !== undefined) {
137
+ if (val.query !== undefined && val.query.agentid !== undefined) {
139
138
  this.resetCrossDiagram()
140
139
  }
141
140
  },
@@ -155,18 +154,23 @@ export default {
155
154
  this.reset = true
156
155
  }
157
156
  }
157
+ },
158
+ agentId: {
159
+ handler: function (val1, val2) {
160
+ if (val1 !== val2 && val2 !== undefined) {
161
+ this.resetCrossDiagram()
162
+ }
163
+ }
158
164
  }
159
165
  },
160
166
  created () {
161
- if (this.$route.query !== undefined && Object.keys(this.$route.query).length) {
167
+ if (this.$route.query !== undefined && Object.keys(this.$route.query).length && this.$route.query.agentid !== undefined) {
162
168
  this.resetCrossDiagram()
163
169
  }
164
170
  },
165
171
  mounted () {
166
172
  this.getParentSize()
167
- if (this.isVipRoute || this.channelType) {
168
- this.reset = true
169
- }
173
+ this.reset = true
170
174
  },
171
175
  updated () {
172
176
  },
@@ -59,8 +59,7 @@ export default {
59
59
  default: ''
60
60
  },
61
61
  AgentId: {
62
- type: String,
63
- default: '0'
62
+ type: String
64
63
  },
65
64
  Token: {
66
65
  type: String,
@@ -93,11 +92,12 @@ export default {
93
92
  },
94
93
  watch: {
95
94
  AgentId: {
96
- handler: function (val, oldVal) {
95
+ handler: function (val) {
97
96
  this.agentId = val
98
97
  },
99
98
  // 深度观察监听
100
- deep: true
99
+ deep: true,
100
+ immediate: true
101
101
  },
102
102
  Token: {
103
103
  handler: function (val) {
@@ -259,7 +259,7 @@ export default {
259
259
  })
260
260
  },
261
261
  firstInit () {
262
- if (this.$route.query !== undefined && Object.keys(this.$route.query).length) {
262
+ if (this.$route.query !== undefined && Object.keys(this.$route.query).length && this.$route.query.agentid !== undefined) {
263
263
  this.agentId = this.$route.query.agentid
264
264
  setIframdevid(this.agentId)
265
265
  this.registerMessage() // 注册消息
@@ -485,7 +485,6 @@ export default {
485
485
  }
486
486
  },
487
487
  created () {
488
- this.agentId = this.AgentId
489
488
  this.setDialogWidth()
490
489
  this.setHost(this.reqUrl)
491
490
  this.controlFormat = new ControlFormat()
@@ -0,0 +1,2 @@
1
+ import OverviewComponent from './index.vue'
2
+ export default OverviewComponent