market_api_1009
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
class="ele-fluid"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="直播图片:" prop="channelImg">
|
||||
<el-form-item label="直播图片:" prop="channelImg" v-show="false">
|
||||
<ele-image-upload
|
||||
v-model="form.channelImg"
|
||||
:limit="1"
|
||||
@@ -76,7 +76,7 @@
|
||||
/>
|
||||
<div class="ele-text-secondary">建议尺寸690X330</div>
|
||||
</el-form-item>
|
||||
<el-form-item label="活动简介:" prop="introduction">
|
||||
<el-form-item label="活动简介:" prop="introduction" v-show="false">
|
||||
<el-input
|
||||
v-model="form.introduction"
|
||||
placeholder="请输入活动简介"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<!-- 用户编辑弹窗 -->
|
||||
<template>
|
||||
<ele-modal
|
||||
width="680px"
|
||||
width="700px"
|
||||
:visible="visible"
|
||||
:append-to-body="true"
|
||||
:close-on-click-modal="true"
|
||||
custom-class="ele-dialog-form"
|
||||
title="分享二维码"
|
||||
title="链接"
|
||||
@update:visible="updateVisible"
|
||||
>
|
||||
<table
|
||||
@@ -25,7 +25,7 @@
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td>链接</td>
|
||||
<td>活动链接</td>
|
||||
<td style="text-align: center">
|
||||
<div
|
||||
style="display: inline-block; margin-right: 10px"
|
||||
@@ -41,6 +41,23 @@
|
||||
</el-button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>商品链接</td>
|
||||
<td style="text-align: center">
|
||||
<div
|
||||
style="display: inline-block; margin-right: 10px"
|
||||
class="ele-text-secondary"
|
||||
v-html="form.urlItem"
|
||||
></div>
|
||||
<el-button
|
||||
v-clipboard:copy="form.urlItem"
|
||||
v-clipboard:success="onCopy"
|
||||
size="small"
|
||||
>
|
||||
复制
|
||||
</el-button>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>二维码图片</td>
|
||||
<td style="text-align: center">
|
||||
@@ -70,7 +87,8 @@
|
||||
},
|
||||
data() {
|
||||
const defaultForm = {
|
||||
url: ''
|
||||
url: '',
|
||||
urlItem: ''
|
||||
};
|
||||
return {
|
||||
level: 'L',
|
||||
|
||||
@@ -65,7 +65,7 @@
|
||||
icon="el-icon-_share"
|
||||
@click="openCode(row)"
|
||||
>
|
||||
二维码
|
||||
链接
|
||||
</el-link>
|
||||
<el-link
|
||||
type="primary"
|
||||
|
||||
@@ -63,14 +63,14 @@
|
||||
label: '订单价格',
|
||||
sortable: 'custom',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80
|
||||
minWidth: 70
|
||||
},
|
||||
{
|
||||
prop: 'pay_time',
|
||||
label: '付款时间',
|
||||
sortable: 'custom',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 120,
|
||||
minWidth: 110,
|
||||
formatter: (_row, _column, cellValue) => {
|
||||
return this.$util.toDateString(cellValue);
|
||||
}
|
||||
@@ -80,7 +80,7 @@
|
||||
label: '创建时间',
|
||||
sortable: 'custom',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 120,
|
||||
minWidth: 110,
|
||||
formatter: (_row, _column, cellValue) => {
|
||||
return this.$util.toDateString(cellValue);
|
||||
}
|
||||
@@ -89,14 +89,14 @@
|
||||
prop: 'consultant',
|
||||
label: '顾问',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 140
|
||||
minWidth: 180
|
||||
},
|
||||
{
|
||||
prop: 'statusName',
|
||||
label: '状态',
|
||||
sortable: 'custom',
|
||||
showOverflowTooltip: true,
|
||||
minWidth: 80
|
||||
minWidth: 60
|
||||
}
|
||||
]
|
||||
};
|
||||
|
||||
@@ -427,7 +427,7 @@
|
||||
body-style="padding: 11px;"
|
||||
class="workplace-table-card"
|
||||
>
|
||||
<el-table :data="statistics.consultantAry">
|
||||
<el-table :data="statistics.consultantData">
|
||||
<el-table-column
|
||||
label="顾问名称"
|
||||
prop="consultantName"
|
||||
@@ -504,7 +504,7 @@
|
||||
activityData2: [],
|
||||
areaData: [],
|
||||
bizData: [],
|
||||
consultantAry: []
|
||||
consultantData: []
|
||||
},
|
||||
loading: true,
|
||||
browseAreaRank: [],
|
||||
@@ -595,9 +595,12 @@
|
||||
setPageTabTitle(data.title + '的数据统计');
|
||||
}
|
||||
var temp, max, list;
|
||||
var areaData = data.areaData;
|
||||
var bizData = data.bizData;
|
||||
var consultantData = data.consultantData;
|
||||
//浏览人数排名-区域
|
||||
if (data.areaData.length > 0) {
|
||||
temp = data.areaData.sort((a, b) => b.browse - a.browse);
|
||||
if (areaData.length > 0) {
|
||||
temp = areaData.sort((a, b) => b.browse - a.browse);
|
||||
max = temp[0].browse || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.browseAreaRank = list.map((d) => {
|
||||
@@ -609,8 +612,8 @@
|
||||
});
|
||||
}
|
||||
//浏览人数排名-门店
|
||||
if (data.bizData.length > 0) {
|
||||
temp = data.bizData.sort((a, b) => b.browse - a.browse);
|
||||
if (bizData.length > 0) {
|
||||
temp = bizData.sort((a, b) => b.browse - a.browse);
|
||||
max = temp[0].browse || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.browseBizRank = list.map((d) => {
|
||||
@@ -622,8 +625,8 @@
|
||||
});
|
||||
}
|
||||
//浏览人数排名-顾问
|
||||
if (data.consultantAry.length > 0) {
|
||||
temp = data.consultantAry.sort((a, b) => b.browse - a.browse);
|
||||
if (consultantData.length > 0) {
|
||||
temp = consultantData.sort((a, b) => b.browse - a.browse);
|
||||
max = temp[0].browse || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.browseConsultantRank = list.map((d) => {
|
||||
@@ -635,8 +638,8 @@
|
||||
});
|
||||
}
|
||||
//预约人数排名-区域
|
||||
if (data.areaData.length > 0) {
|
||||
temp = data.areaData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
if (areaData.length > 0) {
|
||||
temp = areaData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
max = temp[0].subscribe || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.subscribeAreaRank = list.map((d) => {
|
||||
@@ -648,8 +651,8 @@
|
||||
});
|
||||
}
|
||||
//预约人数排名-门店
|
||||
if (data.bizData.length > 0) {
|
||||
temp = data.bizData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
if (bizData.length > 0) {
|
||||
temp = bizData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
max = temp[0].subscribe || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.subscribeBizRank = list.map((d) => {
|
||||
@@ -661,8 +664,8 @@
|
||||
});
|
||||
}
|
||||
//预约人数排名-顾问
|
||||
if (data.consultantAry.length > 0) {
|
||||
temp = data.consultantAry.sort((a, b) => b.watch - a.watch);
|
||||
if (consultantData.length > 0) {
|
||||
temp = consultantData.sort((a, b) => b.subscribe - a.subscribe);
|
||||
max = temp[0].subscribe || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.subscribeConsultantRank = list.map((d) => {
|
||||
@@ -674,8 +677,8 @@
|
||||
});
|
||||
}
|
||||
//观看人数排名-区域
|
||||
if (data.areaData.length > 0) {
|
||||
temp = data.areaData.sort((a, b) => b.watch - a.watch);
|
||||
if (areaData.length > 0) {
|
||||
temp = areaData.sort((a, b) => b.watch - a.watch);
|
||||
max = temp[0].watch || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.watchAreaRank = list.map((d) => {
|
||||
@@ -687,8 +690,8 @@
|
||||
});
|
||||
}
|
||||
//观看人数排名-门店
|
||||
if (data.bizData.length > 0) {
|
||||
temp = data.bizData.sort((a, b) => b.watch - a.watch);
|
||||
if (bizData.length > 0) {
|
||||
temp = bizData.sort((a, b) => b.watch - a.watch);
|
||||
max = temp[0].watch || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.watchBizRank = list.map((d) => {
|
||||
@@ -700,8 +703,8 @@
|
||||
});
|
||||
}
|
||||
//观看人数排名-顾问
|
||||
if (data.consultantAry.length > 0) {
|
||||
temp = data.consultantAry.sort((a, b) => b.watch - a.watch);
|
||||
if (consultantData.length > 0) {
|
||||
temp = consultantData.sort((a, b) => b.watch - a.watch);
|
||||
max = temp[0].watch || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.watchConsultantRank = list.map((d) => {
|
||||
@@ -713,8 +716,8 @@
|
||||
});
|
||||
}
|
||||
//订单数排名-区域
|
||||
if (data.areaData.length > 0) {
|
||||
temp = data.areaData.sort((a, b) => b.order - a.order);
|
||||
if (areaData.length > 0) {
|
||||
temp = areaData.sort((a, b) => b.order - a.order);
|
||||
max = temp[0].order || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.orderAreaRank = list.map((d) => {
|
||||
@@ -726,8 +729,8 @@
|
||||
});
|
||||
}
|
||||
//观看人数排名-门店
|
||||
if (data.bizData.length > 0) {
|
||||
temp = data.bizData.sort((a, b) => b.order - a.order);
|
||||
if (bizData.length > 0) {
|
||||
temp = bizData.sort((a, b) => b.order - a.order);
|
||||
max = temp[0].order || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.orderBizRank = list.map((d) => {
|
||||
@@ -739,8 +742,8 @@
|
||||
});
|
||||
}
|
||||
//观看人数排名-顾问
|
||||
if (data.consultantAry.length > 0) {
|
||||
temp = data.consultantAry.sort((a, b) => b.order - a.order);
|
||||
if (consultantData.length > 0) {
|
||||
temp = consultantData.sort((a, b) => b.order - a.order);
|
||||
max = temp[0].order || 1;
|
||||
list = temp.length > 10 ? temp.slice(0, 10) : temp;
|
||||
this.orderConsultantRank = list.map((d) => {
|
||||
|
||||
Reference in New Issue
Block a user