|
@@ -20,38 +20,40 @@
|
|
<i class="el-icon-info"></i>
|
|
<i class="el-icon-info"></i>
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</div>
|
|
</div>
|
|
- <div class="dataReport-top" v-if="showSelectBox">
|
|
|
|
|
|
+ <div class="dataReport-top" v-if="showSelectBox || activeName == 15">
|
|
<template>
|
|
<template>
|
|
<date-picker
|
|
<date-picker
|
|
v-model="filterObj.date"
|
|
v-model="filterObj.date"
|
|
type="date"
|
|
type="date"
|
|
range
|
|
range
|
|
value-type="format"
|
|
value-type="format"
|
|
- :placeholder="activeName == 2 ? '活动时间' : '阅读时间'"
|
|
|
|
|
|
+ :placeholder="activeName == 2 ? '活动时间' : activeName === 15 ? '路演时间' : '阅读时间'"
|
|
:editable="false"
|
|
:editable="false"
|
|
@change="dateChange"
|
|
@change="dateChange"
|
|
style="width: 200px; margin-right: 20px"
|
|
style="width: 200px; margin-right: 20px"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
- <el-cascader
|
|
|
|
- v-model="sales"
|
|
|
|
- placeholder="所属销售"
|
|
|
|
- style="width: 200px; margin-right: 20px"
|
|
|
|
- :options="salesArr"
|
|
|
|
- :props="defaultSalesProps"
|
|
|
|
- :show-all-levels="false"
|
|
|
|
- collapse-tags
|
|
|
|
- clearable
|
|
|
|
- filterable
|
|
|
|
- @change="handleSearchActivity"
|
|
|
|
- >
|
|
|
|
- </el-cascader>
|
|
|
|
- <el-input placeholder="手机号/邮箱/姓名/公司名" v-model="searchVal" style="width: 220px; margin-right: 20px" @input="handleSearchActivity" clearable>
|
|
|
|
- <i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
|
- </el-input>
|
|
|
|
- <el-input v-if="activeName == 2" placeholder="活动名称" v-model="activityName" style="width: 200px" @input="handleSearchActivity" clearable>
|
|
|
|
- <i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
|
- </el-input>
|
|
|
|
|
|
+ <template v-if="showSelectBox">
|
|
|
|
+ <el-cascader
|
|
|
|
+ v-model="sales"
|
|
|
|
+ placeholder="所属销售"
|
|
|
|
+ style="width: 200px; margin-right: 20px"
|
|
|
|
+ :options="salesArr"
|
|
|
|
+ :props="defaultSalesProps"
|
|
|
|
+ :show-all-levels="false"
|
|
|
|
+ collapse-tags
|
|
|
|
+ clearable
|
|
|
|
+ filterable
|
|
|
|
+ @change="handleSearchActivity"
|
|
|
|
+ >
|
|
|
|
+ </el-cascader>
|
|
|
|
+ <el-input placeholder="手机号/邮箱/姓名/公司名" v-model="searchVal" style="width: 220px; margin-right: 20px" @input="handleSearchActivity" clearable>
|
|
|
|
+ <i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
|
+ </el-input>
|
|
|
|
+ <el-input v-if="activeName == 2" placeholder="活动名称" v-model="activityName" style="width: 200px" @input="handleSearchActivity" clearable>
|
|
|
|
+ <i slot="prefix" class="el-input__icon el-icon-search"></i>
|
|
|
|
+ </el-input>
|
|
|
|
+ </template>
|
|
<a :href="exportExcel" download>
|
|
<a :href="exportExcel" download>
|
|
<button class="button-sty act">下载EXCEL</button>
|
|
<button class="button-sty act">下载EXCEL</button>
|
|
</a>
|
|
</a>
|
|
@@ -121,7 +123,7 @@ export default {
|
|
mixins: [mutualMixin],
|
|
mixins: [mutualMixin],
|
|
computed: {
|
|
computed: {
|
|
exportExcel() {
|
|
exportExcel() {
|
|
- let baseUrl = process.env.API_ROOT + "/cygx/user/companyList/export/interaction";
|
|
|
|
|
|
+ let baseUrl = process.env.API_ROOT + "/cygx/user/company/list";
|
|
let token = localStorage.getItem("auth") || "";
|
|
let token = localStorage.getItem("auth") || "";
|
|
let salesArr = [];
|
|
let salesArr = [];
|
|
if (this.sales.length) {
|
|
if (this.sales.length) {
|
|
@@ -140,6 +142,7 @@ export default {
|
|
ActivityName: this.activityName,
|
|
ActivityName: this.activityName,
|
|
AdminId: salesArr.join(","),
|
|
AdminId: salesArr.join(","),
|
|
ClassType: this.activeTypeName,
|
|
ClassType: this.activeTypeName,
|
|
|
|
+ IsExport:true
|
|
};
|
|
};
|
|
for (let key in params) {
|
|
for (let key in params) {
|
|
paramStr = `${paramStr}&${key}=${params[key]}`;
|
|
paramStr = `${paramStr}&${key}=${params[key]}`;
|