Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
member
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
member
member
Commits
42c343ae
Commit
42c343ae
authored
Mar 22, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 客户详情-营销记录的AI营销
parent
6d742b48
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
15 deletions
+16
-15
url.js
src/components/axios/url.js
+2
-1
ai-record.vue
src/components/marketingRecord/components/ai-record.vue
+7
-7
index.vue
src/components/marketingRecord/index.vue
+7
-7
No files found.
src/components/axios/url.js
View file @
42c343ae
...
...
@@ -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
);
...
...
src/components/marketingRecord/components/ai-record.vue
View file @
42c343ae
<
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
:
''
,
begin
Time
:
''
,
e
ndTime
:
''
planName
:
''
,
aiStart
Time
:
''
,
aiE
ndTime
:
''
}
}
},
methods
:
{
change
()
{
const
{
currentPage
,
pageSize
}
=
this
.
tableData
;
this
.
search
.
begin
Time
=
this
.
time
?
(
typeof
this
.
time
[
0
]
==
'string '
?
this
.
time
[
0
]
:
this
.
dateformat
(
new
Date
(
this
.
time
[
0
]),
'yyyy-MM-dd'
))
:
null
;
this
.
search
.
e
ndTime
=
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
.
aiStart
Time
=
this
.
time
?
(
typeof
this
.
time
[
0
]
==
'string '
?
this
.
time
[
0
]
:
this
.
dateformat
(
new
Date
(
this
.
time
[
0
]),
'yyyy-MM-dd'
))
:
null
;
this
.
search
.
aiE
ndTime
=
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
));
}
}
};
...
...
src/components/marketingRecord/index.vue
View file @
42c343ae
...
...
@@ -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
.
createDat
e
),
'yyyy-MM-dd hh-mm-ss'
)
:
'--'
}
`
;
return
`
${
row
.
aiTime
?
dateformat
(
new
Date
(
row
.
aiTim
e
),
'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
}
];
},
// 设置表格数据
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment