This commit is contained in:
陈红丽 2024-08-15 08:39:33 +08:00
parent 3c88d09205
commit 60475d2d11
2 changed files with 14 additions and 9 deletions

View File

@ -19,7 +19,12 @@
const { setOptions } = useECharts(chartRef as Ref<HTMLDivElement>);
const option = {
tooltip: {},
tooltip: {
trigger: 'axis',
axisPointer:{
type:'shadow'
}
},
grid: {
top: '10%',
left: '1%',
@ -105,18 +110,18 @@
itemStyle: {
color: '#FC619D',
},
tooltip: {
show: false,
},
// tooltip: {
// show: false,
// },
data: [105, 180, 208, 284, 343, 388, 435, 465, 487, 531, 589, 669],
},
{
name: '月销量',
type: 'bar',
barWidth: 10,
tooltip: {
show: false,
},
// tooltip: {
// show: false,
// },
label: {
show: true,
position: 'top',

View File

@ -2,8 +2,8 @@
<el-row :gutter="12">
<el-col :span="24">
<el-tabs v-model="activeKey">
<el-tab-pane label="流量趋势" name="1"> <FluxTrend /></el-tab-pane>
<el-tab-pane label="访问量" name="2"> <VisitAmount /></el-tab-pane>
<el-tab-pane label="流量趋势" name="1"> <FluxTrend v-if="activeKey ==1"/></el-tab-pane>
<el-tab-pane label="访问量" name="2" > <VisitAmount v-if="activeKey ==2"/></el-tab-pane>
</el-tabs>
</el-col>
</el-row>