diff --git a/src/App.vue b/src/App.vue index b76b11f..cd1fe2f 100644 --- a/src/App.vue +++ b/src/App.vue @@ -27,6 +27,18 @@ export default { diff --git a/src/main.js b/src/main.js index 40cbd1b..85d158a 100644 --- a/src/main.js +++ b/src/main.js @@ -29,7 +29,8 @@ import { Option, Tabs, TabPane, - Pagination + Pagination, + DatePicker } from "element-ui"; import "element-ui/lib/theme-chalk/index.css"; import i18n from "./i18n"; @@ -47,6 +48,7 @@ Vue.use(Option); Vue.use(Tabs); Vue.use(TabPane); Vue.use(Pagination); +Vue.use(DatePicker); /* eslint-disable no-new */ new Vue({ router, diff --git a/src/oldComponents/EchartTable/kLine.vue b/src/oldComponents/EchartTable/kLine.vue index 7141ad1..3ee6e7a 100644 --- a/src/oldComponents/EchartTable/kLine.vue +++ b/src/oldComponents/EchartTable/kLine.vue @@ -12,7 +12,7 @@ import { LegendComponent, DataZoomComponent, MarkLineComponent, - MarkPointComponent, + MarkPointComponent } from "echarts/components"; import { CandlestickChart, LineChart } from "echarts/charts"; @@ -29,7 +29,7 @@ echarts.use([ MarkPointComponent, CandlestickChart, LineChart, - CanvasRenderer, + CanvasRenderer ]); var upColor = "#FCE4E4"; @@ -45,8 +45,8 @@ export default { type: Object, default: () => { return { sale: -1, buy: -1 }; - }, - }, + } + } }, watch: { data(newVal, oldVal) { @@ -63,7 +63,7 @@ export default { if (this.tempKeyPointArray && this.tempKeyPointArray[0]) { if (newVal.buy && newVal.buy != -1) { result = this.tempKeyPointArray.filter( - (item) => + item => item.name == "卖出Point" || (item.name == "买入Point" && (item.value == newVal.buy || item.value > newVal.buy)) @@ -72,7 +72,7 @@ export default { if (newVal.sale && newVal.sale != -1) { let _r = !newVal.buy ? this.tempKeyPointArray : result; result = _r.filter( - (item) => + item => item.name == "买入Point" || (item.name == "卖出Point" && (item.value == newVal.sale || item.value > newVal.sale)) @@ -82,7 +82,7 @@ export default { !newVal.buy && !newVal.sale ? this.tempKeyPointArray : result; this.options && this.chart.setOption(this.options); } - }, + } }, data() { return { @@ -96,16 +96,16 @@ export default { tooltip: { trigger: "axis", axisPointer: { - type: "cross", - }, + type: "cross" + } }, legend: { - data: ["时分K"], + data: ["时分K"] }, grid: { left: "10%", right: "10%", - bottom: "10%", + bottom: "10%" }, xAxis: { type: "category", @@ -116,27 +116,27 @@ export default { splitLine: { show: false }, splitNumber: 20, min: "dataMin", - max: "dataMax", + max: "dataMax" }, yAxis: { scale: true, splitArea: { - show: true, - }, + show: true + } }, dataZoom: [ { type: "inside", start: 50, - end: 100, + end: 100 }, { show: true, type: "slider", top: "90%", start: 50, - end: 100, - }, + end: 100 + } ], series: [ { @@ -148,23 +148,23 @@ export default { color: upColor, color0: downColor, borderColor: upBorderColor, - borderColor0: downBorderColor, + borderColor0: downBorderColor }, markPoint: { label: { normal: { formatter: function(param) { return param != null ? Math.round(param.value) : ""; - }, - }, + } + } }, - data: [], + data: [] // tooltip: { // formatter: function(param) { // return param.name + "
" + (param.data.coord || ""); // }, // }, - }, + } // markLine: { // symbol: ["none", "none"], // data: [ @@ -211,7 +211,7 @@ export default { // }, // ], // }, - }, + } // { // name: "MA5", // type: "line", @@ -248,8 +248,8 @@ export default { // opacity: 0.5, // }, // }, - ], - }, + ] + } }; }, mounted() { @@ -272,8 +272,8 @@ export default { result.push(sum / dayCount); } return result; - }, - }, + } + } }; diff --git a/src/pages/ReCheck/OrderTable.vue b/src/pages/ReCheck/OrderTable.vue index 003e71a..b2d221d 100644 --- a/src/pages/ReCheck/OrderTable.vue +++ b/src/pages/ReCheck/OrderTable.vue @@ -13,13 +13,17 @@