openatc-components 0.0.103 → 0.0.104

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 (50) hide show
  1. package/package/kisscomps/components/Channelization/Channelization.vue +10 -13
  2. package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +349 -0
  3. package/package/kisscomps/components/ChannelizationFlowStatistic/index.js +2 -0
  4. package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +113 -0
  5. package/package/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +24 -18
  6. package/package/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +72 -54
  7. package/package/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +4 -1
  8. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +56 -14
  9. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +26 -1
  10. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +37 -18
  11. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +0 -6
  12. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +50 -28
  13. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +53 -29
  14. package/package/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +4 -1
  15. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +213 -164
  16. package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +6 -5
  17. package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +144 -43
  18. package/package/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +52 -8
  19. package/package/kisscomps/index.js +2 -0
  20. package/package/kissui.min.js +1 -1
  21. package/package.json +1 -1
  22. package/src/i18n/language/en.js +6 -3
  23. package/src/i18n/language/zh.js +5 -2
  24. package/src/kisscomps/components/Channelization/Channelization.vue +10 -13
  25. package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +349 -0
  26. package/src/kisscomps/components/ChannelizationFlowStatistic/index.js +2 -0
  27. package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +113 -0
  28. package/src/kisscomps/components/DrawChannelization/drawsvg/channelizationElements.vue +24 -18
  29. package/src/kisscomps/components/DrawChannelization/drawsvg/drawElement/crossMap.vue +72 -54
  30. package/src/kisscomps/components/DrawChannelization/drawsvg/firstImportCrossmap.vue +4 -1
  31. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/countdownSvg.vue +56 -14
  32. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorChart.vue +26 -1
  33. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/detectorIconSvg.vue +37 -18
  34. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/laneIcon.vue +0 -6
  35. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +50 -28
  36. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/pedroadIconSvg.vue +53 -29
  37. package/src/kisscomps/components/DrawChannelization/drawsvg/importDialog.vue +4 -1
  38. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +213 -164
  39. package/src/kisscomps/components/DrawChannelization/drawsvg/index.vue +6 -5
  40. package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +144 -43
  41. package/src/kisscomps/components/DrawChannelization/drawsvg/utils/loadutils.js +52 -8
  42. package/src/kisscomps/index.js +2 -0
  43. package/src/router/index.js +9 -10
  44. package/src/views/customchannelization.vue +1 -1
  45. package/src/views/intersection.vue +67 -45
  46. package/src/views/schemeconfig.vue +2 -2
  47. package/static/styles/channelizatioon.scss +49 -2
  48. package/static/styles/commonkanban.scss +27 -27
  49. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.check.vue +0 -191
  50. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.syncOper.vue +0 -331
@@ -65,42 +65,49 @@ 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 (!val.pedtype) return
85
- if (val.pedtype === 4 && this.lastType === '') {
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 === '') {
86
92
  // 绿闪:绿-》灰-》绿 循环效果
87
- this.GreenFlashColor = '#7bd66b'
88
- this.GreenIntervalId = setInterval(() => {
89
- this.GreenFlashColor =
93
+ this.GreenFlashColor = '#7bd66b'
94
+ this.GreenIntervalId = setInterval(() => {
95
+ this.GreenFlashColor =
90
96
  !this.GreenFlashColor || this.GreenFlashColor === '#828282'
91
97
  ? '#7bd66b'
92
98
  : '#828282'
93
- }, 500)
94
- this.lastType = val.pedtype
95
- }
96
- if (
97
- this.GreenIntervalId &&
99
+ }, 500)
100
+ this.lastType = val.pedtype
101
+ }
102
+ if (
103
+ this.GreenIntervalId &&
98
104
  val.pedtype !== 4 &&
99
105
  val.pedtype !== this.lastType
100
- ) {
101
- clearInterval(this.GreenIntervalId)
102
- this.GreenFlashColor = undefined
103
- this.lastType = ''
106
+ ) {
107
+ clearInterval(this.GreenIntervalId)
108
+ this.GreenFlashColor = undefined
109
+ this.lastType = ''
110
+ }
104
111
  }
105
112
  },
106
113
  deep: true
@@ -130,6 +137,7 @@ export default {
130
137
  methods: {
131
138
  boxDragStop (origin, final) {
132
139
  this.item = JSON.parse(JSON.stringify(final))
140
+ this.handleChangeData()
133
141
  },
134
142
  boxResizeStop (origin, final) {
135
143
  this.IconW = final.w + 'px'
@@ -139,9 +147,15 @@ export default {
139
147
  this.Viewbox[2] = final.w.toFixed(1)
140
148
  this.Viewbox[3] = final.h.toFixed(1)
141
149
  this.item = JSON.parse(JSON.stringify(final))
150
+ this.handleChangeData()
142
151
  },
143
152
  boxRotateStop (origin, final) {
144
153
  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()
145
159
  },
146
160
  resetSvg () {
147
161
  this.reset = false
@@ -155,8 +169,18 @@ export default {
155
169
  this.rectArr.push(i)
156
170
  }
157
171
  },
158
- handleSelectIcon (iconparams) {
172
+ handleSelectIcon () {
159
173
  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()
160
184
  }
161
185
  },
162
186
  created () {
@@ -48,7 +48,7 @@ export default {
48
48
  // 底图加载
49
49
  readAsText () {
50
50
  this.svgmethods = new Svgmethods()
51
- this.svgmethods.clickOpen(this.loadSvgString)
51
+ this.svgmethods.clickOpen(this.loadSvgString, this.getMapWidthHeighgt)
52
52
  this.dialogVisible = false
53
53
  },
54
54
  loadSvgString (type, content) {
@@ -62,6 +62,9 @@ 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)
65
68
  }
66
69
  },
67
70
  mounted () {}