openatc-components 0.1.26 → 0.1.27

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.
@@ -9,7 +9,7 @@
9
9
  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
- import Edgebase from '@openatc/edgebase-front'
12
+ // import Edgebase from '@openatc/edgebase-front'
13
13
  let images = [{
14
14
  id: 1,
15
15
  // name: 'East-Straight',
@@ -123,26 +123,26 @@ let images = [{
123
123
  class: 'iconfont icon-icon-test1'
124
124
  }]
125
125
 
126
- const getImages = () => {
127
- if (Edgebase.Store.getters.roadDirection === 'left') {
128
- // 左行下,掉头图标替换
129
- images.forEach((img) => {
130
- if (img.id === 4) {
131
- img.class = 'iconfont icon-dongtiaotou-yinni'
132
- }
133
- if (img.id === 8) {
134
- img.class = 'iconfont icon-xitiaotou-yinni'
135
- }
136
- if (img.id === 12) {
137
- img.class = 'iconfont icon-beitiaotou-yinni'
138
- }
139
- if (img.id === 16) {
140
- img.class = 'iconfont icon-nantiaotou-yinni'
141
- }
142
- })
143
- }
144
- return images
145
- }
126
+ // const getImages = () => {
127
+ // if (Edgebase.Store.getters.roadDirection === 'left') {
128
+ // // 左行下,掉头图标替换
129
+ // images.forEach((img) => {
130
+ // if (img.id === 4) {
131
+ // img.class = 'iconfont icon-dongtiaotou-yinni'
132
+ // }
133
+ // if (img.id === 8) {
134
+ // img.class = 'iconfont icon-xitiaotou-yinni'
135
+ // }
136
+ // if (img.id === 12) {
137
+ // img.class = 'iconfont icon-beitiaotou-yinni'
138
+ // }
139
+ // if (img.id === 16) {
140
+ // img.class = 'iconfont icon-nantiaotou-yinni'
141
+ // }
142
+ // })
143
+ // }
144
+ // return images
145
+ // }
146
146
 
147
147
  const getDirName = (arr) => {
148
148
  let res = ''
@@ -160,4 +160,4 @@ const getDirName = (arr) => {
160
160
  return res
161
161
  }
162
162
 
163
- export {getImages, getDirName}
163
+ export {getDirName}
@@ -383,7 +383,11 @@ export default {
383
383
  // rings = JSON.parse(JSON.stringify(rings))
384
384
  let mapAdd = rings.map(item => {
385
385
  return item.map(val => {
386
- return val.value + (val.sum ? val.sum : 0)
386
+ if (val.mode !== 7) {
387
+ return val.value + (val.sum ? val.sum : 0)
388
+ } else {
389
+ return 0
390
+ }
387
391
  })
388
392
  })
389
393
  let maxCycle = mapAdd.length > 0 ? mapAdd.map(item => {