|
@@ -1,6 +1,11 @@
|
|
|
<template>
|
|
<template>
|
|
|
<div class="ma-content-block">
|
|
<div class="ma-content-block">
|
|
|
- <sa-table ref="crudRef" :options="options" :columns="columns" :searchForm="searchForm">
|
|
|
|
|
|
|
+ <sa-table
|
|
|
|
|
+ ref="crudRef"
|
|
|
|
|
+ :options="options"
|
|
|
|
|
+ :columns="columns"
|
|
|
|
|
+ :searchForm="searchForm"
|
|
|
|
|
+ >
|
|
|
<!-- 搜索区 tableSearch -->
|
|
<!-- 搜索区 tableSearch -->
|
|
|
<template #tableSearch>
|
|
<template #tableSearch>
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
@@ -10,28 +15,49 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="5" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="5" :xs="24">
|
|
|
<a-form-item label="注册日期" field="tdate">
|
|
<a-form-item label="注册日期" field="tdate">
|
|
|
- <a-range-picker class="w-full" v-model="searchForm.tdate" :show-time="false" mode="date" />
|
|
|
|
|
|
|
+ <a-range-picker
|
|
|
|
|
+ class="w-full"
|
|
|
|
|
+ v-model="searchForm.tdate"
|
|
|
|
|
+ :show-time="false"
|
|
|
|
|
+ mode="date"
|
|
|
|
|
+ />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
|
|
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
|
<a-form-item label="渠道ID" field="agent_id">
|
|
<a-form-item label="渠道ID" field="agent_id">
|
|
|
- <a-input v-model="searchForm.agent_id" placeholder="渠道ID" allow-clear />
|
|
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.agent_id"
|
|
|
|
|
+ placeholder="渠道ID"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
|
<a-form-item label="渠道名称" field="agent_name">
|
|
<a-form-item label="渠道名称" field="agent_name">
|
|
|
- <a-input v-model="searchForm.agent_name" placeholder="渠道名称" allow-clear />
|
|
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.agent_name"
|
|
|
|
|
+ placeholder="渠道名称"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
|
<a-form-item label="广告位ID" field="site_id">
|
|
<a-form-item label="广告位ID" field="site_id">
|
|
|
- <a-input v-model="searchForm.site_id" placeholder="广告位ID" allow-clear />
|
|
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.site_id"
|
|
|
|
|
+ placeholder="广告位ID"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="3" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="3" :xs="24">
|
|
|
<a-form-item label="广告名称" field="site_name">
|
|
<a-form-item label="广告名称" field="site_name">
|
|
|
- <a-input v-model="searchForm.site_name" placeholder="广告名称" allow-clear />
|
|
|
|
|
|
|
+ <a-input
|
|
|
|
|
+ v-model="searchForm.site_name"
|
|
|
|
|
+ placeholder="广告名称"
|
|
|
|
|
+ allow-clear
|
|
|
|
|
+ />
|
|
|
</a-form-item>
|
|
</a-form-item>
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
@@ -46,7 +72,11 @@
|
|
|
</a-col>
|
|
</a-col>
|
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
<a-col :sm="24" :md="8" :lg="8" :xl="6" :xxl="4" :xs="24">
|
|
|
<a-form-item label="展示类型" field="data_type">
|
|
<a-form-item label="展示类型" field="data_type">
|
|
|
- <a-select v-model="searchForm.data_type" placeholder="展示类型" :allow-clear="false">
|
|
|
|
|
|
|
+ <a-select
|
|
|
|
|
+ v-model="searchForm.data_type"
|
|
|
|
|
+ placeholder="展示类型"
|
|
|
|
|
+ :allow-clear="false"
|
|
|
|
|
+ >
|
|
|
<a-option value="recovery">回本率</a-option>
|
|
<a-option value="recovery">回本率</a-option>
|
|
|
<a-option value="remount">实际回本率</a-option>
|
|
<a-option value="remount">实际回本率</a-option>
|
|
|
<a-option value="ltv">LTV</a-option>
|
|
<a-option value="ltv">LTV</a-option>
|
|
@@ -66,332 +96,333 @@
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
<script setup>
|
|
|
-import { onMounted, ref, reactive } from 'vue'
|
|
|
|
|
-import api from '../../api/gameLog/channelAnalysis'
|
|
|
|
|
-import dayjs from 'dayjs'
|
|
|
|
|
-import GameSelect from '@/components/game-select/index.vue'
|
|
|
|
|
-import MediaSelect from '@/components/media-select/index.vue'
|
|
|
|
|
|
|
+import { onMounted, ref, reactive } from "vue";
|
|
|
|
|
+import api from "../../api/gameLog/channelAnalysis";
|
|
|
|
|
+import dayjs from "dayjs";
|
|
|
|
|
+import GameSelect from "@/components/game-select/index.vue";
|
|
|
|
|
+import MediaSelect from "@/components/media-select/index.vue";
|
|
|
|
|
|
|
|
-import AuthSelect from '@/components/auth-select/index.vue'
|
|
|
|
|
|
|
+import AuthSelect from "@/components/auth-select/index.vue";
|
|
|
|
|
|
|
|
// 引用定义
|
|
// 引用定义
|
|
|
-const crudRef = ref()
|
|
|
|
|
-const gameList = ref([])
|
|
|
|
|
|
|
+const crudRef = ref();
|
|
|
|
|
+const gameList = ref([]);
|
|
|
|
|
|
|
|
// 搜索表单
|
|
// 搜索表单
|
|
|
const searchForm = ref({
|
|
const searchForm = ref({
|
|
|
- game_id: '',
|
|
|
|
|
- media_id: '',
|
|
|
|
|
- auth_id: '',
|
|
|
|
|
- agent_id: '',
|
|
|
|
|
- agent_name: '',
|
|
|
|
|
- site_name: '',
|
|
|
|
|
- site_id: '',
|
|
|
|
|
|
|
+ game_id: "",
|
|
|
|
|
+ media_id: "",
|
|
|
|
|
+ auth_id: "",
|
|
|
|
|
+ agent_id: "",
|
|
|
|
|
+ agent_name: "",
|
|
|
|
|
+ site_name: "",
|
|
|
|
|
+ site_id: "",
|
|
|
tdate: [],
|
|
tdate: [],
|
|
|
- data_type: 'recovery',
|
|
|
|
|
-})
|
|
|
|
|
|
|
+ data_type: "recovery",
|
|
|
|
|
+});
|
|
|
|
|
|
|
|
// SaTable 基础配置
|
|
// SaTable 基础配置
|
|
|
const options = reactive({
|
|
const options = reactive({
|
|
|
api: api.getLtvDataList,
|
|
api: api.getLtvDataList,
|
|
|
- pk: 'tdate',
|
|
|
|
|
|
|
+ pk: "tdate",
|
|
|
|
|
|
|
|
showSummary: true,
|
|
showSummary: true,
|
|
|
summary: [
|
|
summary: [
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'tdate',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "tdate",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- suffixText: '元',
|
|
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'cost',
|
|
|
|
|
|
|
+ suffixText: "元",
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "cost",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'reg_total',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "reg_total",
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'reg_cost',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "reg_cost",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd0',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d0",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd1',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d1",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd2',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d2",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd3',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d3",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd4',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d4",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd5',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d5",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd6',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d6",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd7',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d7",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd8',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d8",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd9',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d9",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd10',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d10",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd11',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d11",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd12',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d12",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd13',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d13",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd14',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d14",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd15',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d15",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd16',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d16",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd17',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d17",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd18',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d18",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd19',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d19",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd20',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d20",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd21',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d21",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd22',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d22",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd23',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d23",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd24',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d24",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd25',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d25",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd26',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d26",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd27',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d27",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd28',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d28",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd29',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d29",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd30',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d30",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd35',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d35",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd40',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d40",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd45',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d45",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd50',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d50",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd55',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d55",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd60',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d60",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd65',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d65",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd70',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d70",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd75',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d75",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd80',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d80",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd85',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d85",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd90',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d90",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd95',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d95",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd100',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d100",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd105',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d105",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd110',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d110",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd115',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d115",
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
- action: 'totalRow',
|
|
|
|
|
- dataIndex: 'd120',
|
|
|
|
|
|
|
+ action: "totalRow",
|
|
|
|
|
+ dataIndex: "d120",
|
|
|
},
|
|
},
|
|
|
],
|
|
],
|
|
|
|
|
|
|
|
operationColumn: false,
|
|
operationColumn: false,
|
|
|
-})
|
|
|
|
|
|
|
+});
|
|
|
|
|
|
|
|
// SaTable 列配置
|
|
// SaTable 列配置
|
|
|
const columns = reactive([
|
|
const columns = reactive([
|
|
|
- { title: '日期', dataIndex: 'tdate', width: 130, fixed: 'left' },
|
|
|
|
|
- { title: '消耗金额', dataIndex: 'cost', width: 100 },
|
|
|
|
|
|
|
+ { title: "日期", dataIndex: "tdate", width: 130, fixed: "left" },
|
|
|
|
|
+ { title: "消耗金额", dataIndex: "cost", width: 100 },
|
|
|
|
|
|
|
|
- { title: '注册数', dataIndex: 'reg_total', width: 80 },
|
|
|
|
|
- { title: '注册成本', dataIndex: 'reg_cost', width: 100 },
|
|
|
|
|
- { title: '累计', dataIndex: 'd0', width: 80 },
|
|
|
|
|
- { title: '1', dataIndex: 'd1', width: 80 },
|
|
|
|
|
- { title: '2', dataIndex: 'd2', width: 80 },
|
|
|
|
|
- { title: '3', dataIndex: 'd3', width: 80 },
|
|
|
|
|
- { title: '4', dataIndex: 'd4', width: 80 },
|
|
|
|
|
- { title: '5', dataIndex: 'd5', width: 80 },
|
|
|
|
|
- { title: '6', dataIndex: 'd6', width: 80 },
|
|
|
|
|
- { title: '7', dataIndex: 'd7', width: 80 },
|
|
|
|
|
- { title: '8', dataIndex: 'd8', width: 80 },
|
|
|
|
|
- { title: '9', dataIndex: 'd9', width: 80 },
|
|
|
|
|
- { title: '10', dataIndex: 'd10', width: 80 },
|
|
|
|
|
- { title: '11', dataIndex: 'd11', width: 80 },
|
|
|
|
|
- { title: '12', dataIndex: 'd12', width: 80 },
|
|
|
|
|
- { title: '13', dataIndex: 'd13', width: 80 },
|
|
|
|
|
- { title: '14', dataIndex: 'd14', width: 80 },
|
|
|
|
|
- { title: '15', dataIndex: 'd15', width: 80 },
|
|
|
|
|
- { title: '16', dataIndex: 'd16', width: 80 },
|
|
|
|
|
- { title: '17', dataIndex: 'd17', width: 80 },
|
|
|
|
|
- { title: '18', dataIndex: 'd18', width: 80 },
|
|
|
|
|
- { title: '19', dataIndex: 'd19', width: 80 },
|
|
|
|
|
- { title: '20', dataIndex: 'd20', width: 80 },
|
|
|
|
|
- { title: '21', dataIndex: 'd21', width: 80 },
|
|
|
|
|
- { title: '22', dataIndex: 'd22', width: 80 },
|
|
|
|
|
- { title: '23', dataIndex: 'd23', width: 80 },
|
|
|
|
|
- { title: '24', dataIndex: 'd24', width: 80 },
|
|
|
|
|
- { title: '25', dataIndex: 'd25', width: 80 },
|
|
|
|
|
- { title: '26', dataIndex: 'd26', width: 80 },
|
|
|
|
|
- { title: '27', dataIndex: 'd27', width: 80 },
|
|
|
|
|
- { title: '28', dataIndex: 'd28', width: 80 },
|
|
|
|
|
- { title: '29', dataIndex: 'd29', width: 80 },
|
|
|
|
|
- { title: '30', dataIndex: 'd30', width: 80 },
|
|
|
|
|
- { title: '35', dataIndex: 'd35', width: 80 },
|
|
|
|
|
- { title: '40', dataIndex: 'd40', width: 80 },
|
|
|
|
|
- { title: '45', dataIndex: 'd45', width: 80 },
|
|
|
|
|
- { title: '50', dataIndex: 'd50', width: 80 },
|
|
|
|
|
- { title: '55', dataIndex: 'd55', width: 80 },
|
|
|
|
|
- { title: '60', dataIndex: 'd60', width: 80 },
|
|
|
|
|
- { title: '65', dataIndex: 'd65', width: 80 },
|
|
|
|
|
- { title: '70', dataIndex: 'd70', width: 80 },
|
|
|
|
|
- { title: '75', dataIndex: 'd75', width: 80 },
|
|
|
|
|
- { title: '80', dataIndex: 'd80', width: 80 },
|
|
|
|
|
- { title: '85', dataIndex: 'd85', width: 80 },
|
|
|
|
|
- { title: '90', dataIndex: 'd90', width: 80 },
|
|
|
|
|
- { title: '95', dataIndex: 'd95', width: 80 },
|
|
|
|
|
- { title: '100', dataIndex: 'd100', width: 80 },
|
|
|
|
|
- { title: '105', dataIndex: 'd105', width: 80 },
|
|
|
|
|
- { title: '110', dataIndex: 'd110', width: 80 },
|
|
|
|
|
- { title: '115', dataIndex: 'd115', width: 80 },
|
|
|
|
|
- { title: '120', dataIndex: 'd120', width: 80 },
|
|
|
|
|
-])
|
|
|
|
|
|
|
+ { title: "注册数", dataIndex: "reg_total", width: 80 },
|
|
|
|
|
+ { title: "注册成本", dataIndex: "reg_cost", width: 100 },
|
|
|
|
|
+ { title: "累计", dataIndex: "d0", width: 80 },
|
|
|
|
|
+ { title: "1", dataIndex: "d1", width: 80 },
|
|
|
|
|
+ { title: "2", dataIndex: "d2", width: 80 },
|
|
|
|
|
+ { title: "3", dataIndex: "d3", width: 80 },
|
|
|
|
|
+ { title: "4", dataIndex: "d4", width: 80 },
|
|
|
|
|
+ { title: "5", dataIndex: "d5", width: 80 },
|
|
|
|
|
+ { title: "6", dataIndex: "d6", width: 80 },
|
|
|
|
|
+ { title: "7", dataIndex: "d7", width: 80 },
|
|
|
|
|
+ { title: "8", dataIndex: "d8", width: 80 },
|
|
|
|
|
+ { title: "9", dataIndex: "d9", width: 80 },
|
|
|
|
|
+ { title: "10", dataIndex: "d10", width: 80 },
|
|
|
|
|
+ { title: "11", dataIndex: "d11", width: 80 },
|
|
|
|
|
+ { title: "12", dataIndex: "d12", width: 80 },
|
|
|
|
|
+ { title: "13", dataIndex: "d13", width: 80 },
|
|
|
|
|
+ { title: "14", dataIndex: "d14", width: 80 },
|
|
|
|
|
+ { title: "15", dataIndex: "d15", width: 80 },
|
|
|
|
|
+ { title: "16", dataIndex: "d16", width: 80 },
|
|
|
|
|
+ { title: "17", dataIndex: "d17", width: 80 },
|
|
|
|
|
+ { title: "18", dataIndex: "d18", width: 80 },
|
|
|
|
|
+ { title: "19", dataIndex: "d19", width: 80 },
|
|
|
|
|
+ { title: "20", dataIndex: "d20", width: 80 },
|
|
|
|
|
+ { title: "21", dataIndex: "d21", width: 80 },
|
|
|
|
|
+ { title: "22", dataIndex: "d22", width: 80 },
|
|
|
|
|
+ { title: "23", dataIndex: "d23", width: 80 },
|
|
|
|
|
+ { title: "24", dataIndex: "d24", width: 80 },
|
|
|
|
|
+ { title: "25", dataIndex: "d25", width: 80 },
|
|
|
|
|
+ { title: "26", dataIndex: "d26", width: 80 },
|
|
|
|
|
+ { title: "27", dataIndex: "d27", width: 80 },
|
|
|
|
|
+ { title: "28", dataIndex: "d28", width: 80 },
|
|
|
|
|
+ { title: "29", dataIndex: "d29", width: 80 },
|
|
|
|
|
+ { title: "30", dataIndex: "d30", width: 80 },
|
|
|
|
|
+ { title: "35", dataIndex: "d35", width: 80 },
|
|
|
|
|
+ { title: "40", dataIndex: "d40", width: 80 },
|
|
|
|
|
+ { title: "45", dataIndex: "d45", width: 80 },
|
|
|
|
|
+ { title: "50", dataIndex: "d50", width: 80 },
|
|
|
|
|
+ { title: "55", dataIndex: "d55", width: 80 },
|
|
|
|
|
+ { title: "60", dataIndex: "d60", width: 80 },
|
|
|
|
|
+ { title: "65", dataIndex: "d65", width: 80 },
|
|
|
|
|
+ { title: "70", dataIndex: "d70", width: 80 },
|
|
|
|
|
+ { title: "75", dataIndex: "d75", width: 80 },
|
|
|
|
|
+ { title: "80", dataIndex: "d80", width: 80 },
|
|
|
|
|
+ { title: "85", dataIndex: "d85", width: 80 },
|
|
|
|
|
+ { title: "90", dataIndex: "d90", width: 80 },
|
|
|
|
|
+ { title: "95", dataIndex: "d95", width: 80 },
|
|
|
|
|
+ { title: "100", dataIndex: "d100", width: 80 },
|
|
|
|
|
+ { title: "105", dataIndex: "d105", width: 80 },
|
|
|
|
|
+ { title: "110", dataIndex: "d110", width: 80 },
|
|
|
|
|
+ { title: "115", dataIndex: "d115", width: 80 },
|
|
|
|
|
+ { title: "120", dataIndex: "d120", width: 80 },
|
|
|
|
|
+]);
|
|
|
|
|
|
|
|
// 页面数据初始化
|
|
// 页面数据初始化
|
|
|
const initPage = () => {
|
|
const initPage = () => {
|
|
|
- searchForm.value.tdate = [dayjs().format('YYYY-MM-DD'), dayjs().format('YYYY-MM-DD')]
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ searchForm.value.tdate[0] = dayjs().subtract(8, "day").format("YYYY-MM-DD");
|
|
|
|
|
+ searchForm.value.tdate[1] = dayjs().subtract(1, "day").format("YYYY-MM-DD");
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// SaTable 数据请求
|
|
// SaTable 数据请求
|
|
|
const refresh = async () => {
|
|
const refresh = async () => {
|
|
|
- crudRef.value?.refresh()
|
|
|
|
|
-}
|
|
|
|
|
|
|
+ crudRef.value?.refresh();
|
|
|
|
|
+};
|
|
|
|
|
|
|
|
// 页面加载完成执行
|
|
// 页面加载完成执行
|
|
|
onMounted(async () => {
|
|
onMounted(async () => {
|
|
|
- initPage()
|
|
|
|
|
- refresh()
|
|
|
|
|
-})
|
|
|
|
|
|
|
+ initPage();
|
|
|
|
|
+ refresh();
|
|
|
|
|
+});
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<script>
|
|
<script>
|
|
|
-export default { name: 'v1/channelAnalysis/ltvd' }
|
|
|
|
|
|
|
+export default { name: "v1/channelAnalysis/ltvd" };
|
|
|
</script>
|
|
</script>
|