Commit 42c343ae by caoyanzhi

update: 客户详情-营销记录的AI营销

parent 6d742b48
......@@ -94,7 +94,8 @@ const urlConfig = {
cardLogPage: '/api-marketing/member/card-log-page',
messageLogPage: '/api-marketing/member/sms-log-page',
wechatLogPage: '/api-marketing/member/wechat-log-page',
getMarketingRecordNum: '/api-marketing/member/marketing-count'
getMarketingRecordNum: '/api-marketing/member/marketing-count',
aiLogPage: '/api-marketing/member/page-ai-member-log'
}
const defaultUrl = Object.assign({}, urlConfig);
......
<template>
<div class="marketing-message">
<div class="search">
<el-input placeholder="请输入活动名称" type="text" prefix-icon="el-icon-search" class="w256" clearable v-model="search.key" @change="change"></el-input>
<el-input placeholder="请输入活动名称" type="text" prefix-icon="el-icon-search" class="w256" clearable v-model="search.planName" @change="change"></el-input>
<el-date-picker :clearable="false" value-format="yyyy-MM-dd" class="w256 ml10" :pickerOptions="pickerOptions" v-model="time" type="daterange" range-separator="至" start-placeholder="开始日期" end-placeholder="结束日期" @change="change"></el-date-picker>
<span class="search-tip ml10">同一客户同时外呼成功并发送短信营销次数算作两次</span>
</div>
......@@ -45,18 +45,18 @@ export default {
data() {
return {
search: {
key: '',
beginTime: '',
endTime: ''
planName: '',
aiStartTime: '',
aiEndTime: ''
}
}
},
methods: {
change() {
const { currentPage, pageSize } = this.tableData;
this.search.beginTime = this.time ? ( typeof this.time[0] == 'string ' ? this.time[0] : this.dateformat(new Date(this.time[0]), 'yyyy-MM-dd')) : null;
this.search.endTime = this.time ? ( typeof this.time[0] == 'string ' ? this.time[1] : this.dateformat(new Date(this.time[1]), 'yyyy-MM-dd')) : null;
this.$emit("changeSearch", Object.assign({ currentPage, pageSize }, this.search));
this.search.aiStartTime = this.time ? ( typeof this.time[0] == 'string ' ? this.time[0] : this.dateformat(new Date(this.time[0]), 'yyyy-MM-dd')) : null;
this.search.aiEndTime = this.time ? ( typeof this.time[0] == 'string ' ? this.time[1] : this.dateformat(new Date(this.time[1]), 'yyyy-MM-dd')) : null;
this.$emit("changeSearch", Object.assign({ pageNum: currentPage, pageSize }, this.search));
}
}
};
......
......@@ -31,7 +31,7 @@ import AiRecord from './components/ai-record.vue';
import { doFetch, doFetchqs } from "@/components/axios/api";
import { dateformat } from '@/utils/formatTime';
import url from "@/components/axios/url";
const { ecmLogPage, cardLogPage, messageLogPage, wechatLogPage, cardChannelType } = url;
const { ecmLogPage, cardLogPage, messageLogPage, wechatLogPage, cardChannelType, aiLogPage } = url;
export default {
name: "marketing-record",
components: {
......@@ -129,7 +129,7 @@ export default {
break;
case '5':
name = 'aiTableData';
res = { data: { result: {} } }
res = await doFetchqs(aiLogPage, params);
this[name].loading = true;
break;
}
......@@ -242,15 +242,15 @@ export default {
this.aiTableData.tableHeader = [
{
label: "触达时间",
prop: "",
prop: "aiTime",
minWidth: 80,
formatter(row) {
return `${row.createDate ? dateformat(new Date(row.createDate), 'yyyy-MM-dd hh-mm-ss') : '--'}`;
return `${row.aiTime ? dateformat(new Date(row.aiTime), 'yyyy-MM-dd hh-mm-ss') : '--'}`;
}
},
{ label: "活动名称", prop: "", minWidth: 120 },
{ label: "活动场景", prop: "", minWidth: 120 },
{ label: "话术名称", prop: "", minWidth: 120 }
{ label: "活动名称", prop: "planName", minWidth: 120 },
{ label: "活动场景", prop: "activityScene", minWidth: 120 },
{ label: "话术名称", prop: "aiTemplateName", minWidth: 120 }
];
},
// 设置表格数据
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment