Commit 12d12d5c by wusiyi

fix: 类型错误

parent a8577607
......@@ -483,7 +483,7 @@
v-model="chartTimes1"
size="small"
class="chart-controls"
@change="(v) => getchartTimes(v, 'ORDER_TREND')"
@change="getchartTimes($event, 'ORDER_TREND')"
>
<el-radio-button
v-for="time in timeOptions"
......@@ -501,7 +501,7 @@
v-model="chartTimes2"
size="small"
class="chart-controls"
@change="(v) => getchartTimes(v, 'SHIPMENT_TREND')"
@change="getchartTimes($event, 'SHIPMENT_TREND')"
>
<el-radio-button
v-for="time in timeOptions"
......@@ -518,7 +518,7 @@
v-model="chartTimes3"
size="small"
class="chart-controls"
@change="(v) => getchartTimes(v, 'OVERTIME_SHIPMENT_TREND')"
@change="getchartTimes($event, 'OVERTIME_SHIPMENT_TREND')"
>
<el-radio-button
v-for="time in timeOptions"
......@@ -641,7 +641,6 @@ const chartConfig3 = ref({
// 创建图表配置的函数
const createChartOption = (config: typeof chartConfig1) => {
console.log(677, config.value)
const data = config.value
return {
title: {
......@@ -816,7 +815,6 @@ const getchartTimes = async (v: string, type: string) => {
timeUnit: v,
trendType: type,
})
console.log(data)
if (type == 'ORDER_TREND') {
updateOrderTrendChart(data, v)
chartInstances[0]?.setOption(createChartOption(chartConfig1))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment