fix: 移除今日访客统计

feat-home-0606-xwk
向文可 3 years ago
parent 210f547f5b
commit aea107cf51

@ -1,14 +1,15 @@
<template>
<div class="date-range">
<el-button
v-for="(item, index) in opts"
:key="index"
:class="{ active: active === item.value }"
type="text"
@click="handleRange(item.value)"
>
{{ item.label }}
</el-button>
<template v-for="(item, index) in opts" :key="index">
<el-button
v-if="item.value !== 'today' || !props.hiddenToday"
:class="{ active: active === item.value }"
type="text"
@click="handleRange(item.value)"
>
{{ item.label }}
</el-button>
</template>
<el-date-picker
v-model="value"
:clearable="false"
@ -21,6 +22,12 @@
<script setup>
import dayjs from 'dayjs';
const props = defineProps({
hiddenToday: {
type: Boolean,
default: false,
},
});
const opts = ref([
{
label: '今天',

@ -89,7 +89,7 @@
</div>
<div class="right">
<div class="header flex">
<date-range v-model="condition1" v-model:today="today1" />
<date-range v-model="condition1" v-model:today="today1" hidden-today />
</div>
<div class="chart"></div>
</div>

Loading…
Cancel
Save