| | |
| | | <div class="btnGroup" style="position:relative"> |
| | | <div class="btn" :class="{ active: KLinePeriodIndex == index }" |
| | | v-for="(item, index) in KLinePeriodMenu" :key="item.ID" |
| | | @click="index == 0 ? changeRightContent('minute') : OnClickKLinePeriodMenu(index, item, 'kline')"> |
| | | @click="OnClickKLinePeriodMenu(index, item, 'kline')"> |
| | | {{ item.Name }}</div> |
| | | <!-- <div class="btn" @click="isShow ? isShow = false : isShow = true"> |
| | | 设置 |
| | |
| | | |
| | | OnClickKLinePeriodMenu(index, item, type) //K线周期 |
| | | { |
| | | if (index != 0) { |
| | | this.chartType = type |
| | | this.KLinePeriodIndex = index; |
| | | this.KLineChart.ChangePeriod(item.ID); |
| | | } |
| | | // if (index != 0) { |
| | | // this.chartType = type |
| | | // this.KLinePeriodIndex = index; |
| | | // this.KLineChart.ChangePeriod(item.ID); |
| | | // } |
| | | this.chartType = type |
| | | this.KLinePeriodIndex = index; |
| | | this.KLineChart.ChangePeriod(item.ID); |
| | | }, |
| | | |
| | | OnClickKLineRightMenu(index, item) //K线复权 |