Commit 12d12d5c by wusiyi

fix: 类型错误

parent a8577607
...@@ -483,7 +483,7 @@ ...@@ -483,7 +483,7 @@
v-model="chartTimes1" v-model="chartTimes1"
size="small" size="small"
class="chart-controls" class="chart-controls"
@change="(v) => getchartTimes(v, 'ORDER_TREND')" @change="getchartTimes($event, 'ORDER_TREND')"
> >
<el-radio-button <el-radio-button
v-for="time in timeOptions" v-for="time in timeOptions"
...@@ -501,7 +501,7 @@ ...@@ -501,7 +501,7 @@
v-model="chartTimes2" v-model="chartTimes2"
size="small" size="small"
class="chart-controls" class="chart-controls"
@change="(v) => getchartTimes(v, 'SHIPMENT_TREND')" @change="getchartTimes($event, 'SHIPMENT_TREND')"
> >
<el-radio-button <el-radio-button
v-for="time in timeOptions" v-for="time in timeOptions"
...@@ -518,7 +518,7 @@ ...@@ -518,7 +518,7 @@
v-model="chartTimes3" v-model="chartTimes3"
size="small" size="small"
class="chart-controls" class="chart-controls"
@change="(v) => getchartTimes(v, 'OVERTIME_SHIPMENT_TREND')" @change="getchartTimes($event, 'OVERTIME_SHIPMENT_TREND')"
> >
<el-radio-button <el-radio-button
v-for="time in timeOptions" v-for="time in timeOptions"
...@@ -641,7 +641,6 @@ const chartConfig3 = ref({ ...@@ -641,7 +641,6 @@ const chartConfig3 = ref({
// 创建图表配置的函数 // 创建图表配置的函数
const createChartOption = (config: typeof chartConfig1) => { const createChartOption = (config: typeof chartConfig1) => {
console.log(677, config.value)
const data = config.value const data = config.value
return { return {
title: { title: {
...@@ -816,7 +815,6 @@ const getchartTimes = async (v: string, type: string) => { ...@@ -816,7 +815,6 @@ const getchartTimes = async (v: string, type: string) => {
timeUnit: v, timeUnit: v,
trendType: type, trendType: type,
}) })
console.log(data)
if (type == 'ORDER_TREND') { if (type == 'ORDER_TREND') {
updateOrderTrendChart(data, v) updateOrderTrendChart(data, v)
chartInstances[0]?.setOption(createChartOption(chartConfig1)) 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