openatc-components 0.1.50 → 0.1.52

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -94,78 +94,6 @@
94
94
  "name": "南北路段人行横道",
95
95
  "x": "310px",
96
96
  "y": "198px"
97
- },
98
- {
99
- "id": 17,
100
- "name": "东南人行横道",
101
- "x": "310px",
102
- "y": "198px"
103
- },
104
- {
105
- "id": 18,
106
- "name": "西南人行横道",
107
- "x": "310px",
108
- "y": "198px"
109
- },
110
- {
111
- "id": 19,
112
- "name": "东北人行横道",
113
- "x": "310px",
114
- "y": "198px"
115
- },
116
- {
117
- "id": 20,
118
- "name": "西北人行横道",
119
- "x": "310px",
120
- "y": "198px"
121
- },
122
- {
123
- "id": 21,
124
- "name": "东南人行横道-上",
125
- "x": "310px",
126
- "y": "198px"
127
- },
128
- {
129
- "id": 22,
130
- "name": "东南人行横道-下",
131
- "x": "310px",
132
- "y": "198px"
133
- },
134
- {
135
- "id": 23,
136
- "name": "西南人行横道-上",
137
- "x": "310px",
138
- "y": "198px"
139
- },
140
- {
141
- "id": 24,
142
- "name": "西南人行横道-下",
143
- "x": "310px",
144
- "y": "198px"
145
- },
146
- {
147
- "id": 25,
148
- "name": "东北人行横道-上",
149
- "x": "310px",
150
- "y": "198px"
151
- },
152
- {
153
- "id": 26,
154
- "name": "东北人行横道-下",
155
- "x": "310px",
156
- "y": "198px"
157
- },
158
- {
159
- "id": 27,
160
- "name": "西北人行横道-上",
161
- "x": "310px",
162
- "y": "198px"
163
- },
164
- {
165
- "id": 28,
166
- "name": "西北人行横道-下",
167
- "x": "310px",
168
- "y": "198px"
169
97
  }
170
98
  ]
171
99
  }
@@ -408,7 +408,11 @@ export default {
408
408
  }
409
409
  return
410
410
  }
411
- this.crossStatusData = JSON.parse(JSON.stringify(data.data.data.data))
411
+ if (data.data.data.data) {
412
+ this.crossStatusData = JSON.parse(JSON.stringify(data.data.data.data))
413
+ } else {
414
+ this.crossStatusData = {}
415
+ }
412
416
  let TscData = JSON.parse(JSON.stringify(data.data.data.data))
413
417
  // this.handleStageData(TscData) // 处理阶段(驻留)stage数据
414
418
  this.controlData = this.handleGetData(TscData)
@@ -626,7 +630,9 @@ export default {
626
630
  this.$message.error(getMessageByCode(data.data.code, this.$i18n.locale))
627
631
  return
628
632
  }
629
- this.phaseList = res.data.data.phaseList
633
+ if (res.data.data && res.data.data.phaseList) {
634
+ this.phaseList = res.data.data.phaseList
635
+ }
630
636
  })
631
637
  },
632
638
  getPlatform () {
@@ -1 +0,0 @@
1
- {}