openatc-components 0.4.2 → 0.4.4

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.
@@ -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
  }
@@ -632,7 +632,7 @@ export default {
632
632
  },
633
633
  queryThirdParty () {
634
634
  this.funcSort = 'allFunc'
635
- GetRoleByName(`thirdparty--${this.platform}`).then(res => {
635
+ GetRoleByName(`td--${this.platform}`).then(res => {
636
636
  if (!res.data.success) {
637
637
  let msg = getMessageByCode(res.data.code, this.$i18n.locale)
638
638
  this.$message.error(msg)