1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <template>
- <div class="layout-padding">
- <div class="engagement-time">
- <el-row :gutter="12" style="padding: 0 12px 12px; row-gap: 12px;">
- <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
- <SelectForm :type="type" :form="form" :title="'使用频率'" />
- </el-col>
- </el-row>
- <el-row :gutter="12" style="padding: 0 12px 12px; row-gap: 12px;">
- <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
- <OneDay :type="type" :form="form" />
- </el-col>
- </el-row>
- <el-row :gutter="12" style="padding: 0 12px 12px; row-gap: 12px;">
- <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
- <Week :type="type" :form="form" />
- </el-col>
- </el-row>
- <el-row :gutter="12" style="padding: 0 12px 12px; row-gap: 12px;">
- <el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24">
- <Month :type="type" :form="form" />
- </el-col>
- </el-row>
- </div>
- </div>
- </template>
- <script lang="ts" name="engagementTime" setup>
- import { reactive } from 'vue'
- import OneDay from './OneDay.vue';
- import Week from './Week.vue';
- import Month from './Month.vue';
- import SelectForm from '../components/SelectForm.vue';
- const type = ref('date');
- const form = reactive({
- dateArray: [new Date().getTime() - 1000 * 60 * 60 * 24 * 7, new Date().getTime()],
- date: new Date().getTime(),
- selectedDates: [] as string[], // 存储多个选中的日期
- timeCompare: 'time1',
- channel: 'all',
- version: 'all'
- })
- </script>
- <style scoped lang="scss">
- @import '/@/views/count/styles/common.scss';
- svg {
- vertical-align: middle;
- margin: 0 0 0 12px;
- }
- .engagement-time {
- }
- </style>
|