openatc-components 0.2.41 → 0.2.43

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.
@@ -98,7 +98,7 @@ export default {
98
98
  type: Number,
99
99
  default: 1
100
100
  },
101
- StageWidth: {
101
+ StageWidth: { // 图的大小样式
102
102
  type: String,
103
103
  default: '70px'
104
104
  },
@@ -122,19 +122,26 @@ export default {
122
122
  type: String,
123
123
  default: '65PX'
124
124
  },
125
- showStyle: {
125
+ showStyle: { // 图内部方向的位置
126
126
  type: Object,
127
127
  default: () => ({
128
128
  top:'7PX',
129
129
  left:'13px'
130
130
  })
131
131
  },
132
- showStyles: {
132
+ showStyles: { // 图内部人行道的位置
133
133
  type: Object,
134
134
  default: () => ({
135
135
  top:'5PX',
136
136
  left:'12px'
137
137
  })
138
+ },
139
+ noClick: { // 图是否可以点击
140
+ type: Boolean,
141
+ default: false
142
+ },
143
+ showDataType: { // 图展示的数据类型:默认按阶段展示,如果传phase则按相位维度展示
144
+ type: String
138
145
  }
139
146
  },
140
147
  data () {
@@ -158,7 +165,11 @@ export default {
158
165
  let list = []
159
166
  if (this.crossStatusData && this.crossStatusData.stages && this.phaseList && this.phaseList.length > 0) {
160
167
  let ringDataModel = new RingDataModel(this.crossStatusData, this.phaseList)
161
- list = ringDataModel.getStageData()
168
+ if (this.showDataType === 'phase') {
169
+ list = ringDataModel.getStageData('phase')
170
+ } else {
171
+ list = ringDataModel.getStageData()
172
+ }
162
173
  if (this.isShowCurrentStage) {
163
174
  this.currentStage = this.crossStatusData.current_stage
164
175
  }
@@ -254,6 +265,7 @@ export default {
254
265
  return res
255
266
  },
256
267
  selectStages (value) {
268
+ if (this.noClick) return
257
269
  if (this.isShowCurrentStage) {
258
270
  return false
259
271
  }