| | |
| | | </template> |
| | | |
| | | <script> |
| | | import * as echarts from "echarts"; |
| | | |
| | | import _ from "lodash"; |
| | | import HQChart from "hqchart"; |
| | | import "hqchart/src/jscommon/umychart.resource/css/tools.css"; |
| | |
| | | DefaultData.GetKLinePeriodMenu = function () { |
| | | var data = [ |
| | | // { Name: i18n.t('hj86'), ID: 3 },分时额外处理 |
| | | { Name: i18n.t("hj86"), ID: 4 }, |
| | | // { Name: i18n.t("hj86"), ID: 4 }, |
| | | { Name: i18n.t("hj87"), ID: 0 }, |
| | | { Name: i18n.t("hj88"), ID: 1 }, |
| | | { Name: i18n.t("hj89"), ID: 2 }, |
| | |
| | | MinuteDayMenu: DefaultData.GetMinuteDayMenu(), |
| | | MinuteDayIndex: 0, |
| | | KLinePeriodMenu: DefaultData.GetKLinePeriodMenu(), |
| | | KLinePeriodIndex: 1, |
| | | KLinePeriodIndex: 0, |
| | | KLineRightMenu: DefaultData.GetKLineRightMenu(), |
| | | KLineRightIndex: 0, |
| | | IsShowRightMenu: true, |
| | |
| | | VolChartHeight: 10, |
| | | chartType: "kline", |
| | | isShow: false, |
| | | xData: [], |
| | | }; |
| | | }, |
| | | created() { |
| | |
| | | this.OnSize(); |
| | | this.SetChartStyle(); |
| | | this.$nextTick(() => { |
| | | this.CreateMinuteChart(); |
| | | // this.CreateMinuteChart(); |
| | | this.CreateKLineChart(); |
| | | }); |
| | | let that = this; |
| | |
| | | item, |
| | | type // K线周期 |
| | | ) { |
| | | // if (index !== 0) { //分时额外处理才注释的 |
| | | //分时额外处理才注释的 |
| | | this.chartType = type; |
| | | this.KLinePeriodIndex = index; |
| | | this.KLineChart.ChangePeriod(item.ID); |
| | | // } |
| | | }, |
| | | |
| | | OnClickKLineRightMenu( |