Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
754c5a30
Commit
754c5a30
authored
Jul 07, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
udpate: ai营销列表
parent
1b9f70d8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
31 deletions
+30
-31
task.vue
src/views/ai/task/task.vue
+30
-31
No files found.
src/views/ai/task/task.vue
View file @
754c5a30
...
...
@@ -413,43 +413,42 @@ export default {
params
.
endTime
=
formatDateTimeByType
(
params
.
time
[
1
],
'yyyy-MM-dd'
);
}
delete
params
.
time
;
const
{
result
}
=
await
page
(
params
);
if
(
!
result
)
return
;
this
.
tableData
=
result
.
list
||
[];
const
ids
=
this
.
tableData
.
map
(
item
=>
item
.
activityId
).
join
(
','
);
this
.
total
=
result
.
total
;
this
.
pageStatistics
(
ids
);
},
async
pageStatistics
(
ids
)
{
try
{
const
{
result
}
=
await
page
Statistics
({
ids
}
);
const
{
result
}
=
await
page
(
params
);
if
(
!
result
)
return
;
let
obj
=
{};
result
.
forEach
(
element
=>
{
obj
[
element
.
activityId
]
=
element
;
});
this
.
tableData
.
forEach
(
item
=>
{
if
(
obj
[
item
.
activityId
])
{
const
{
marketingNumber
,
outboundNumber
,
totalConnectionNumber
,
telephoneConnectionRate
,
connectionIntentionRate
}
=
obj
[
item
.
activityId
];
item
.
marketingNumber
=
marketingNumber
;
item
.
outboundNumber
=
outboundNumber
;
item
.
totalConnectionNumber
=
totalConnectionNumber
;
item
.
telephoneConnectionRate
=
telephoneConnectionRate
;
item
.
connectionIntentionRate
=
connectionIntentionRate
;
}
else
{
item
.
marketingNumber
=
'- -'
;
item
.
outboundNumber
=
'- -'
;
item
.
totalConnectionNumber
=
'- -'
;
item
.
telephoneConnectionRate
=
'- -'
;
item
.
connectionIntentionRate
=
'- -'
;
}
});
this
.
tableData
=
this
.
tableData
.
splice
(
0
);
this
.
tableData
=
result
.
list
||
[];
const
ids
=
this
.
tableData
.
map
(
item
=>
item
.
activityId
).
join
(
','
);
this
.
total
=
result
.
total
;
this
.
pageStatistics
(
ids
);
}
finally
{
this
.
loading
=
false
;
}
},
async
pageStatistics
(
ids
)
{
const
{
result
}
=
await
pageStatistics
({
ids
});
if
(
!
result
)
return
;
let
obj
=
{};
result
.
forEach
(
element
=>
{
obj
[
element
.
activityId
]
=
element
;
});
this
.
tableData
.
forEach
(
item
=>
{
if
(
obj
[
item
.
activityId
])
{
const
{
marketingNumber
,
outboundNumber
,
totalConnectionNumber
,
telephoneConnectionRate
,
connectionIntentionRate
}
=
obj
[
item
.
activityId
];
item
.
marketingNumber
=
marketingNumber
;
item
.
outboundNumber
=
outboundNumber
;
item
.
totalConnectionNumber
=
totalConnectionNumber
;
item
.
telephoneConnectionRate
=
telephoneConnectionRate
;
item
.
connectionIntentionRate
=
connectionIntentionRate
;
}
else
{
item
.
marketingNumber
=
'- -'
;
item
.
outboundNumber
=
'- -'
;
item
.
totalConnectionNumber
=
'- -'
;
item
.
telephoneConnectionRate
=
'- -'
;
item
.
connectionIntentionRate
=
'- -'
;
}
});
this
.
tableData
=
this
.
tableData
.
splice
(
0
);
},
stopTask
(
row
)
{
this
.
$confirm
(
'任务终止后未外呼的客户将停止外呼任务,终止后不可重新启用任务,是否继续终止任务?'
,
'提示'
,
{
confirmButtonText
:
'终止'
,
...
...
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