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
@@ -19,6 +19,7 @@
19
19
  :leave-active-class="toPage === 1 ? 'animated fadeOutRight' : 'animated fadeOutLeft' ">
20
20
  <div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
21
21
  <ManualControlModalNew
22
+ v-if="resetcomponent"
22
23
  ref="ManualControlModalNew"
23
24
  :residentControlList="residentControlList"
24
25
  :specialControlList="specialControlList"
@@ -81,6 +82,7 @@
81
82
  <div v-else style="height: 100%;">
82
83
  <div class="new" style="position: absolute;width: 100%;height:100%;" v-show="(isOperation && !isClosePhase)">
83
84
  <ManualControlModalNew
85
+ v-if="resetcomponent"
84
86
  ref="ManualControlModalNew"
85
87
  :residentControlList="residentControlList"
86
88
  :specialControlList="specialControlList"
@@ -460,13 +462,17 @@ export default {
460
462
  patternAll: [],
461
463
  patternSelect: [], // 所有方案id
462
464
  specialPage: '', // 哪一个特殊控制页面
463
- nextcycleefficcontrol: [5, 6, 9, 10, 12, 19] // 下周期生效的控制方式
465
+ nextcycleefficcontrol: [5, 6, 9, 10, 12, 19], // 下周期生效的控制方式
466
+ resetcomponent: false
464
467
  }
465
468
  },
466
469
  watch: {
467
470
  agentId: {
468
- handler: function (val) {
469
- this.getIntersectionInfo(val)
471
+ handler: function (val1, val2) {
472
+ if (val1 !== val2) {
473
+ this.resetComponent()
474
+ }
475
+ this.getIntersectionInfo(val1)
470
476
  },
471
477
  // 深度观察监听
472
478
  deep: true
@@ -503,9 +509,10 @@ export default {
503
509
  this.setHost(this.reqUrl)
504
510
  this.PhaseDataModel = new PhaseDataModel(this.roadDirection)
505
511
  this.CrossDiagramMgr = new CrossDiagramMgr()
506
- this.getIntersectionInfo(this.agentId)
507
512
  },
508
513
  async mounted () {
514
+ this.resetcomponent = true
515
+ this.init()
509
516
  if (this.realtimeStatusModalvisible === false) {
510
517
  this.changeStatus()
511
518
  }
@@ -516,6 +523,23 @@ export default {
516
523
  this.initData()
517
524
  },
518
525
  methods: {
526
+ resetComponent () {
527
+ this.resetcomponent = false
528
+ this.$nextTick(() => {
529
+ this.resetcomponent = true
530
+ this.init()
531
+ })
532
+ },
533
+ init () {
534
+ this.getIntersectionInfo(this.agentId)
535
+ if (this.realtimeStatusModalvisible === false) {
536
+ this.changeStatus()
537
+ }
538
+ this.setPropsToken(this.Token)
539
+ // await this.getPhase()
540
+ this.getFault()
541
+ this.initData()
542
+ },
519
543
  setHost (host) {
520
544
  // 获取组件外传入的token,便于独立组件调用接口
521
545
  if (host && host !== '') {
@@ -20,10 +20,10 @@
20
20
  :model="manualInfo"
21
21
  label-width="90px">
22
22
  <el-form-item
23
- :label="$t('openatccomponents.overview.greenclear')"
24
- prop="intersection">
25
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="small"></el-input-number>
26
- </el-form-item>
23
+ :label="$t('openatccomponents.overview.duration')"
24
+ prop="count">
25
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="small"></el-input-number>
26
+ </el-form-item>
27
27
 
28
28
  <el-form-item
29
29
  :label="$t('openatccomponents.overview.yellowflash')"
@@ -44,13 +44,11 @@
44
44
  label-position="left"
45
45
  :model="manualInfo"
46
46
  label-width="90px">
47
-
48
- <el-form-item
49
- :label="$t('openatccomponents.overview.duration')"
50
- prop="count">
51
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="small"></el-input-number>
52
- </el-form-item>
53
-
47
+ <el-form-item
48
+ :label="$t('openatccomponents.overview.greenclear')"
49
+ prop="intersection">
50
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="small"></el-input-number>
51
+ </el-form-item>
54
52
  <el-form-item
55
53
  :label="$t('openatccomponents.overview.allred')"
56
54
  prop="intersection">
@@ -160,7 +160,8 @@
160
160
  <div class="cross-content">
161
161
  <div class="cross-name">{{$t('openatccomponents.overview.currentstage')}}:</div>
162
162
  <div>
163
- <Stages :crossStatusData="crossStatusData"
163
+ <Stages v-if="resetcomponent"
164
+ :crossStatusData="crossStatusData"
164
165
  :phaseList="phaseList"
165
166
  @onSelectStages="onSelectStages"></Stages>
166
167
  </div>
@@ -260,8 +261,27 @@ export default {
260
261
  }
261
262
 
262
263
  },
264
+ watch: {
265
+ agentId: {
266
+ handler: function (val1, val2) {
267
+ this.$nextTick(() => {
268
+ setTimeout(() => {
269
+ if (val1 !== val2) {
270
+ this.resetcomponent = false
271
+ this.$nextTick(() => {
272
+ this.resetcomponent = true
273
+ })
274
+ }
275
+ }, 100)
276
+ })
277
+ },
278
+ // 深度观察监听
279
+ deep: true
280
+ }
281
+ },
263
282
  data () {
264
283
  return {
284
+ resetcomponent: true
265
285
  }
266
286
  },
267
287
  methods: {
@@ -32,6 +32,7 @@ import XiaoKanBan from './components/XiaoKanBan/index.vue'
32
32
  import DirectionListConfiguration from './components/DirectionListConfiguration/index.js'
33
33
  import IntersectionDirectionSelection from './components/IntersectionDirectionSelection/index.js'
34
34
  import PhaseLegend from './components/PhaseLegend/index.js'
35
+ import OverviewComponent from './components/OverviewComponent/index.js'
35
36
  import { setToken, setHost, setIsCheckPermission, setUserRoles, setPermissions } from '../utils/auth.js'
36
37
  import componentsGlobalParam from '../store/modules/globalParam'
37
38
 
@@ -73,7 +74,8 @@ const components = {
73
74
  PhaseDirectionSelect,
74
75
  DirectionListConfiguration,
75
76
  IntersectionDirectionSelection,
76
- PhaseLegend
77
+ PhaseLegend,
78
+ OverviewComponent
77
79
  }
78
80
 
79
81
  const language = {