|
@@ -0,0 +1,76 @@
|
|
|
+<script setup>
|
|
|
+import SelectETACustomer from '../../components/SelectETACustomer.vue'
|
|
|
+import FavChartStatistic from './FavChartStatistic.vue'
|
|
|
+import { Calendar1Icon } from 'tdesign-icons-vue-next'
|
|
|
+
|
|
|
+const timeType = [
|
|
|
+ {
|
|
|
+ label: '今天',
|
|
|
+ value: '今天'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '过去3天',
|
|
|
+ value: '过去3天'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '过去一周',
|
|
|
+ value: '过去一周'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: '过去一月',
|
|
|
+ value: '过去一月'
|
|
|
+ }
|
|
|
+]
|
|
|
+const timeTypeValue = ref('')
|
|
|
+const selectDate = ref([])
|
|
|
+
|
|
|
+const tableData = ref([])
|
|
|
+const columns = [
|
|
|
+ { align: 'center', colKey: '', title: '用户名' },
|
|
|
+ { align: 'center', colKey: '', title: '客户名' },
|
|
|
+ { align: 'center', colKey: '', title: '累计收藏图表' },
|
|
|
+ { align: 'center', colKey: '', title: '最近一次收藏时间', sorter: true, },
|
|
|
+]
|
|
|
+const tablePagination = {
|
|
|
+ defaultCurrent: 1,
|
|
|
+ defaultPageSize: 20,
|
|
|
+ total: 0,
|
|
|
+ showPageSize: false
|
|
|
+}
|
|
|
+
|
|
|
+const showFavChart=ref(false)
|
|
|
+
|
|
|
+</script>
|
|
|
+
|
|
|
+<template>
|
|
|
+ <div class="flex top-filter">
|
|
|
+ <SelectETACustomer style="width: 240px; margin-right: 50px" />
|
|
|
+ <t-button
|
|
|
+ :variant="timeTypeValue === item.value ? 'base' : 'outline'"
|
|
|
+ v-for="item in timeType"
|
|
|
+ :key="item.value"
|
|
|
+ style="width: 100px"
|
|
|
+ >{{ item.label }}</t-button
|
|
|
+ >
|
|
|
+ <t-date-range-picker v-model="selectDate" clearable style="width: 300px" />
|
|
|
+ </div>
|
|
|
+ <t-table
|
|
|
+ rowKey="id"
|
|
|
+ :data="tableData"
|
|
|
+ :columns="columns"
|
|
|
+ bordered
|
|
|
+ :pagination="tablePagination"
|
|
|
+ show-header
|
|
|
+ resizable
|
|
|
+ />
|
|
|
+
|
|
|
+ <!-- 用户收藏图表 -->
|
|
|
+ <FavChartStatistic v-model:show="showFavChart"/>
|
|
|
+</template>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.top-filter {
|
|
|
+ gap: 20px;
|
|
|
+ margin-bottom: 30px;
|
|
|
+}
|
|
|
+</style>
|