fix: 移除今日访客统计

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

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

@ -89,7 +89,7 @@
</div> </div>
<div class="right"> <div class="right">
<div class="header flex"> <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>
<div class="chart"></div> <div class="chart"></div>
</div> </div>

Loading…
Cancel
Save