|
@@ -107,8 +107,8 @@
|
|
|
</a-row>
|
|
</a-row>
|
|
|
|
|
|
|
|
<a-table row-key="id" :loading="loading" :pagination="pagination" :summary="true" summary-text="汇总"
|
|
<a-table row-key="id" :loading="loading" :pagination="pagination" :summary="true" summary-text="汇总"
|
|
|
- :columns="(cloneColumns as TableColumnData[])" :data="renderData" :bordered="false" :size="size"
|
|
|
|
|
- @page-change="onPageChange">
|
|
|
|
|
|
|
+ :columns="(cloneColumns as TableColumnData[])" :data="renderData" :bordered="{ headerCell: true }"
|
|
|
|
|
+ :size="size" @page-change="onPageChange">
|
|
|
<template #index="{ record }">
|
|
<template #index="{ record }">
|
|
|
{{ record.id }}
|
|
{{ record.id }}
|
|
|
</template>
|
|
</template>
|
|
@@ -192,6 +192,27 @@
|
|
|
<div style="margin:10px auto" v-if="column.slotName == 'daily_calls_limit'">
|
|
<div style="margin:10px auto" v-if="column.slotName == 'daily_calls_limit'">
|
|
|
{{ numberFormat(record.current_daily_calls) }}
|
|
{{ numberFormat(record.current_daily_calls) }}
|
|
|
</div>
|
|
</div>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <template v-if="column.dataIndex == 'today_clickNum' ||
|
|
|
|
|
+ column.dataIndex == 'today_orderNum' ||
|
|
|
|
|
+ column.dataIndex == 'today_finishOrderNum' ||
|
|
|
|
|
+ column.dataIndex == 'today_finishCosPrice'">
|
|
|
|
|
+
|
|
|
|
|
+ <div>{{ numberFormat(record[column.dataIndex]) }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ <template v-if="column.dataIndex == 'today_cosPrice' ||
|
|
|
|
|
+ column.dataIndex == 'today_finishCosFee' ||
|
|
|
|
|
+ column.dataIndex == 'today_cosFee'">
|
|
|
|
|
+
|
|
|
|
|
+ <div>{{ amountFormat(record[column.dataIndex]) }}</div>
|
|
|
|
|
+ </template>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
<template #time_range="{ record }">
|
|
<template #time_range="{ record }">
|
|
|
<WorkHourModel :record="record" @change="search" />
|
|
<WorkHourModel :record="record" @change="search" />
|
|
@@ -239,7 +260,7 @@ const formModel = ref(generateFormModel());
|
|
|
const cloneColumns = ref<Column[]>([]);
|
|
const cloneColumns = ref<Column[]>([]);
|
|
|
const showColumns = ref<Column[]>([]);
|
|
const showColumns = ref<Column[]>([]);
|
|
|
|
|
|
|
|
-const size = ref<SizeProps>('mini');
|
|
|
|
|
|
|
+const size = ref<SizeProps>('small');
|
|
|
|
|
|
|
|
const basePagination: Pagination = {
|
|
const basePagination: Pagination = {
|
|
|
current: 1,
|
|
current: 1,
|
|
@@ -287,16 +308,75 @@ const columns = computed<TableColumnData[]>(() => [
|
|
|
align: 'right',
|
|
align: 'right',
|
|
|
width: 200,
|
|
width: 200,
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '当日推广效果',
|
|
|
|
|
+ children: [
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '点击量',
|
|
|
|
|
+ dataIndex: 'today_clickNum',
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+ align: 'right',
|
|
|
|
|
+ render: (e: any) => numberFormat(e.record.today_clickNum)
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '有效订单',
|
|
|
|
|
+ dataIndex: 'today_orderNum',
|
|
|
|
|
+ width: 100,
|
|
|
|
|
+ align: 'right',
|
|
|
|
|
+ render: (e: any) => numberFormat(e.record.today_orderNum)
|
|
|
|
|
+ },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '订单金额',
|
|
|
|
|
+ dataIndex: 'today_cosPrice',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ align: 'right',
|
|
|
|
|
+ render: (e: any) => amountFormat(e.record.today_cosPrice)
|
|
|
|
|
+ },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // title: '完成收益',
|
|
|
|
|
+ // dataIndex: 'today_finishCosFee',
|
|
|
|
|
+ // width: 100,
|
|
|
|
|
+ // align: 'right',
|
|
|
|
|
+ // render: (e: any) => amountFormat(e.record.today_finishCosFee)
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // title: '完成订单量',
|
|
|
|
|
+ // dataIndex: 'today_finishOrderNum',
|
|
|
|
|
+ // width: 100,
|
|
|
|
|
+ // align: 'right',
|
|
|
|
|
+ // render: (e: any) => numberFormat(e.record.today_finishOrderNum)
|
|
|
|
|
+ // },
|
|
|
|
|
+ // {
|
|
|
|
|
+ // title: '完成订单量',
|
|
|
|
|
+ // dataIndex: 'today_finishCosPrice',
|
|
|
|
|
+ // width: 100,
|
|
|
|
|
+ // align: 'right',
|
|
|
|
|
+ // render: (e: any) => numberFormat(e.record.today_finishCosPrice)
|
|
|
|
|
+ // },
|
|
|
|
|
+ {
|
|
|
|
|
+ title: '预估收入',
|
|
|
|
|
+ dataIndex: 'today_cosFee',
|
|
|
|
|
+ width: 150,
|
|
|
|
|
+ align: 'right',
|
|
|
|
|
+ render: (e: any) => amountFormat(e.record.today_cosFee)
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ //
|
|
|
|
|
+
|
|
|
|
|
+ ]
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
title: '小时调用',
|
|
title: '小时调用',
|
|
|
slotName: 'hourly_calls_limit',
|
|
slotName: 'hourly_calls_limit',
|
|
|
dataIndex: 'current_hourly_calls',
|
|
dataIndex: 'current_hourly_calls',
|
|
|
|
|
+ align: 'right',
|
|
|
width: 120,
|
|
width: 120,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
title: '当日调用',
|
|
title: '当日调用',
|
|
|
slotName: 'daily_calls_limit',
|
|
slotName: 'daily_calls_limit',
|
|
|
dataIndex: 'current_daily_calls',
|
|
dataIndex: 'current_daily_calls',
|
|
|
|
|
+ align: 'right',
|
|
|
width: 150,
|
|
width: 150,
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|