openatc-components 0.0.102 → 0.0.103

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 (60) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +6 -1
  2. package/package/kisscomps/components/Channelization/Channelization.vue +13 -10
  3. package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +18 -12
  4. package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +54 -69
  5. package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +1 -4
  6. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +11 -34
  7. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +1 -26
  8. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +18 -37
  9. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +6 -0
  10. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +28 -50
  11. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +29 -53
  12. package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +1 -4
  13. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +147 -130
  14. package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +5 -6
  15. package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +43 -144
  16. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +8 -52
  17. package/package/kisscomps/components/KanBan/kanban.vue +7 -7
  18. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +153 -38
  19. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
  20. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
  21. package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
  22. package/package/kisscomps/components/StageStatus/StageStatus.vue +6 -2
  23. package/package/kisscomps/components/patternList/patternList.vue +5 -0
  24. package/package/kisscomps/index.js +2 -0
  25. package/package/kissui.min.js +1 -1
  26. package/package.json +13 -12
  27. package/src/i18n/language/en.js +32 -7
  28. package/src/i18n/language/zh.js +31 -6
  29. package/src/kisscomps/components/BoardCard/BoardCard.vue +6 -1
  30. package/src/kisscomps/components/Channelization/Channelization.vue +13 -10
  31. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +18 -12
  32. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +54 -69
  33. package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +1 -4
  34. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +11 -34
  35. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +1 -26
  36. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +18 -37
  37. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +6 -0
  38. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +28 -50
  39. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +29 -53
  40. package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +1 -4
  41. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +147 -130
  42. package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +5 -6
  43. package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +43 -144
  44. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.check.vue +191 -0
  45. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.syncOper.vue +331 -0
  46. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +8 -52
  47. package/src/kisscomps/components/KanBan/kanban.vue +7 -7
  48. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +153 -38
  49. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
  50. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
  51. package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
  52. package/src/kisscomps/components/StageStatus/StageStatus.vue +6 -2
  53. package/src/kisscomps/components/patternList/patternList.vue +5 -0
  54. package/src/kisscomps/index.js +2 -0
  55. package/src/router/index.js +2 -2
  56. package/src/views/intersection.vue +5 -3
  57. package/static/styles/channelizatioon.scss +2 -40
  58. package/static/styles/schemeconfig.scss +52 -0
  59. package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +0 -113
  60. package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +0 -113
@@ -323,48 +323,41 @@ export default {
323
323
  }
324
324
  },
325
325
  watch: {
326
- // item: {
327
- // handler: function (newval, oldval) {
328
- // if (JSON.stringify(oldval) !== '{}') {
329
- // // 更改原数据的位置大小数据
330
- // let data = {
331
- // ...this.Data,
332
- // ...newval
333
- // }
334
- // let fields = Object.keys(newval)
335
- // this.$emit('changeMotorwayItem', data, fields)
336
- // }
337
- // }
338
- // },
326
+ item: {
327
+ handler: function (newval, oldval) {
328
+ if (JSON.stringify(oldval) !== '{}') {
329
+ // 更改原数据的位置大小数据
330
+ let data = {
331
+ ...this.Data,
332
+ ...newval
333
+ }
334
+ let fields = Object.keys(newval)
335
+ this.$emit('changeMotorwayItem', data, fields)
336
+ }
337
+ }
338
+ },
339
339
  Data: {
340
340
  handler: function (val) {
341
341
  this.iconnameArr = val.icondirename
342
- if (this.UsageMode === 'draw') {
343
- this.item.x = val.x
344
- this.item.y = val.y
345
- this.item.angle = val.angle
346
- }
347
- if (this.UsageMode === 'show') {
348
- if (val.type === 4 && this.lastType === '') {
342
+ if (val.type === 4 && this.lastType === '') {
349
343
  // 绿闪:绿-》灰-》绿 循环效果
350
- this.GreenFlashColor = '#77fb65'
351
- this.GreenIntervalId = setInterval(() => {
352
- this.GreenFlashColor =
344
+ this.GreenFlashColor = '#77fb65'
345
+ this.GreenIntervalId = setInterval(() => {
346
+ this.GreenFlashColor =
353
347
  !this.GreenFlashColor || this.GreenFlashColor === '#828282'
354
348
  ? '#77fb65'
355
349
  : '#828282'
356
- }, 500)
357
- this.lastType = val.type
358
- }
359
- if (
360
- this.GreenIntervalId &&
350
+ }, 500)
351
+ this.lastType = val.type
352
+ }
353
+ if (
354
+ this.GreenIntervalId &&
361
355
  val.type !== 4 &&
362
356
  val.type !== this.lastType
363
- ) {
364
- clearInterval(this.GreenIntervalId)
365
- this.GreenFlashColor = undefined
366
- this.lastType = ''
367
- }
357
+ ) {
358
+ clearInterval(this.GreenIntervalId)
359
+ this.GreenFlashColor = undefined
360
+ this.lastType = ''
368
361
  }
369
362
  },
370
363
  deep: true
@@ -395,22 +388,16 @@ export default {
395
388
  methods: {
396
389
  boxDragStop (origin, final) {
397
390
  this.item = JSON.parse(JSON.stringify(final))
398
- this.handleChangeData()
391
+ this.$emit('handleSelectIcon', this.Data)
399
392
  },
400
393
  boxResizeStop (origin, final) {
401
394
  this.IconW = final.w + 'px'
402
395
  this.IconH = final.h + 'px'
403
396
  this.resetSvg()
404
397
  this.item = JSON.parse(JSON.stringify(final))
405
- this.handleChangeData()
406
398
  },
407
399
  boxRotateStop (origin, final) {
408
400
  this.item = JSON.parse(JSON.stringify(final))
409
- // 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
410
- if (this.item.angle < 0) {
411
- this.item.angle = this.item.angle + 360
412
- }
413
- this.handleChangeData()
414
401
  },
415
402
  resetSvg () {
416
403
  this.reset = false
@@ -418,17 +405,8 @@ export default {
418
405
  this.reset = true
419
406
  })
420
407
  },
421
- handleSelectIcon () {
408
+ handleSelectIcon (iconparams) {
422
409
  this.$emit('handleSelectIcon', this.Data)
423
- },
424
- handleChangeData () {
425
- let data = {
426
- ...this.Data,
427
- ...this.item
428
- }
429
- let fields = Object.keys(this.item)
430
- this.$emit('changeMotorwayItem', data, fields)
431
- this.handleSelectIcon()
432
410
  }
433
411
  },
434
412
  created () {
@@ -65,49 +65,42 @@ export default {
65
65
  }
66
66
  },
67
67
  watch: {
68
- // item: {
69
- // handler: function (newval, oldval) {
70
- // if ((JSON.stringify(oldval) !== '{}')) {
71
- // // 更改原数据的位置大小数据
72
- // let data = {
73
- // ...this.PedData,
74
- // ...newval,
75
- // viewbox: this.Viewbox
76
- // }
77
- // let fields = Object.keys(newval).concat('viewbox')
78
- // this.$emit('changePedItem', data, fields)
79
- // }
80
- // }
81
- // },
68
+ item: {
69
+ handler: function (newval, oldval) {
70
+ if ((JSON.stringify(oldval) !== '{}')) {
71
+ // 更改原数据的位置大小数据
72
+ let data = {
73
+ ...this.PedData,
74
+ ...newval,
75
+ viewbox: this.Viewbox
76
+ }
77
+ let fields = Object.keys(newval).concat('viewbox')
78
+ this.$emit('changePedItem', data, fields)
79
+ }
80
+ }
81
+ },
82
82
  PedData: {
83
83
  handler: function (val) {
84
- if (this.UsageMode === 'draw') {
85
- this.item.x = val.x
86
- this.item.y = val.y
87
- this.item.angle = val.angle
88
- }
89
- if (this.UsageMode === 'show') {
90
- if (!val.pedtype) return
91
- if (val.pedtype === 4 && this.lastType === '') {
84
+ if (!val.pedtype) return
85
+ if (val.pedtype === 4 && this.lastType === '') {
92
86
  // 绿闪:绿-》灰-》绿 循环效果
93
- this.GreenFlashColor = '#7bd66b'
94
- this.GreenIntervalId = setInterval(() => {
95
- this.GreenFlashColor =
87
+ this.GreenFlashColor = '#7bd66b'
88
+ this.GreenIntervalId = setInterval(() => {
89
+ this.GreenFlashColor =
96
90
  !this.GreenFlashColor || this.GreenFlashColor === '#828282'
97
91
  ? '#7bd66b'
98
92
  : '#828282'
99
- }, 500)
100
- this.lastType = val.pedtype
101
- }
102
- if (
103
- this.GreenIntervalId &&
93
+ }, 500)
94
+ this.lastType = val.pedtype
95
+ }
96
+ if (
97
+ this.GreenIntervalId &&
104
98
  val.pedtype !== 4 &&
105
99
  val.pedtype !== this.lastType
106
- ) {
107
- clearInterval(this.GreenIntervalId)
108
- this.GreenFlashColor = undefined
109
- this.lastType = ''
110
- }
100
+ ) {
101
+ clearInterval(this.GreenIntervalId)
102
+ this.GreenFlashColor = undefined
103
+ this.lastType = ''
111
104
  }
112
105
  },
113
106
  deep: true
@@ -137,7 +130,6 @@ export default {
137
130
  methods: {
138
131
  boxDragStop (origin, final) {
139
132
  this.item = JSON.parse(JSON.stringify(final))
140
- this.handleChangeData()
141
133
  },
142
134
  boxResizeStop (origin, final) {
143
135
  this.IconW = final.w + 'px'
@@ -147,15 +139,9 @@ export default {
147
139
  this.Viewbox[2] = final.w.toFixed(1)
148
140
  this.Viewbox[3] = final.h.toFixed(1)
149
141
  this.item = JSON.parse(JSON.stringify(final))
150
- this.handleChangeData()
151
142
  },
152
143
  boxRotateStop (origin, final) {
153
144
  this.item = JSON.parse(JSON.stringify(final))
154
- // 第四象限的角度是负值(开源组件接口返回),转化为正值便于理解
155
- if (this.item.angle < 0) {
156
- this.item.angle = this.item.angle + 360
157
- }
158
- this.handleChangeData()
159
145
  },
160
146
  resetSvg () {
161
147
  this.reset = false
@@ -169,18 +155,8 @@ export default {
169
155
  this.rectArr.push(i)
170
156
  }
171
157
  },
172
- handleSelectIcon () {
158
+ handleSelectIcon (iconparams) {
173
159
  this.$emit('handleSelectIcon', this.PedData)
174
- },
175
- handleChangeData () {
176
- let data = {
177
- ...this.PedData,
178
- ...this.item,
179
- viewbox: this.Viewbox
180
- }
181
- let fields = Object.keys(this.item).concat('viewbox')
182
- this.$emit('changePedItem', data, fields)
183
- this.handleSelectIcon()
184
160
  }
185
161
  },
186
162
  created () {
@@ -48,7 +48,7 @@ export default {
48
48
  // 底图加载
49
49
  readAsText () {
50
50
  this.svgmethods = new Svgmethods()
51
- this.svgmethods.clickOpen(this.loadSvgString, this.getMapWidthHeighgt)
51
+ this.svgmethods.clickOpen(this.loadSvgString)
52
52
  this.dialogVisible = false
53
53
  },
54
54
  loadSvgString (type, content) {
@@ -62,9 +62,6 @@ export default {
62
62
  } else {
63
63
  this.$emit('loadSvgString', type, content)
64
64
  }
65
- },
66
- getMapWidthHeighgt (type, size) {
67
- this.$emit('loadMapSize', type, size)
68
65
  }
69
66
  },
70
67
  mounted () {}