openatc-components 0.4.5 → 0.4.6

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/config/index.js CHANGED
@@ -16,7 +16,7 @@ module.exports = {
16
16
  // target: 'http://192.168.14.2:8012/openatc',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
17
17
  // target: 'https://dolphin-test.kedacom.com/openatc',
18
18
  // target: 'http://192.168.13.105:11003/openatc',
19
- target: 'http://192.168.13.103:10003/openatc',
19
+ target: 'http://192.168.13.112:30003/openatc',
20
20
  // target: 'http://10.165.32.135:30555/openatc',
21
21
  // target: 'http://192.168.15.11:8012/openatc',
22
22
  // target: 'http://192.168.13.103:10003/openatc',
@@ -200,7 +200,6 @@ import { getMessageByCode } from '../../../../utils/responseMessage.js'
200
200
 
201
201
  import CrossDirectionConflictList from '../../../../utils/conflictList.js'
202
202
  import RingDataModel from '../../../../utils/RingDataModel.js'
203
- import { getTheme } from '../../../../utils/auth.js'
204
203
 
205
204
  export default {
206
205
  name: 'crossDiagram',
@@ -737,16 +736,14 @@ export default {
737
736
  },
738
737
  dirListSetTheme (list) {
739
738
  let dirArr = []
740
- let color = getTheme() === 'light' ? '#606266' : '#fff'
741
- let pedColor = getTheme() === 'light' ? '#606266' : 'rgba(255, 255, 255, 0.6)'
742
739
  for (let rec of list) {
743
740
  let recd = {
744
741
  ...rec,
745
- color: color
742
+ color: '#fff'
746
743
  }
747
744
  dirArr.push(recd)
748
745
  for (let i = 0; i < rec.peddirection.length; i++) {
749
- rec.peddirection[i].color = pedColor
746
+ rec.peddirection[i].color = 'rgba(255, 255, 255, 0.6)'
750
747
  }
751
748
  }
752
749
  return dirArr
@@ -524,7 +524,7 @@ export default {
524
524
  ...item,
525
525
  // peddirection: this.getPed(item.phases ? item.phases : item.stages),
526
526
  direction: this.handleStageData(item.phases ? item.phases : item.stages),
527
- greenWidth: (item.green / stageMaxCyle * 100).toFixed(3) + '%',
527
+ greenWidth: ((item.stageSplit - item.yellow - item.red) / stageMaxCyle * 100).toFixed(3) + '%',
528
528
  yellowWidth: (item.yellow / stageMaxCyle * 100).toFixed(3) + '%',
529
529
  redWidth: (item.red / stageMaxCyle * 100).toFixed(3) + '%'
530
530
  }