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
f63c3088
Commit
f63c3088
authored
Apr 27, 2022
by
crushh
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/ai营销二期' into dev
parents
253c89c7
3be0bd93
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
19 deletions
+28
-19
ai-data-active-data.vue
src/views/ai/ai-data-active-data.vue
+13
-9
ai-data-aiCall.vue
src/views/ai/ai-data-aiCall.vue
+15
-10
No files found.
src/views/ai/ai-data-active-data.vue
View file @
f63c3088
...
...
@@ -285,7 +285,6 @@ export default {
TargetGroup
},
mounted
()
{
this
.
aiTransformStoreGroupSplit
();
this
.
getActivityDetail
();
this
.
aiStoreTransfer
();
this
.
aiStoreTransferStatistics
();
...
...
@@ -342,6 +341,7 @@ export default {
// 门店维度列表
const
head
=
{
label
:
'门店名称'
,
width
:
'250'
,
prop
:
'storeName'
,
tooltip
:
true
,
fixed
:
'left'
,
...
...
@@ -393,7 +393,7 @@ export default {
const
head
=
{
label
:
'分组名称'
,
prop
:
'name'
,
width
:
'
2
50'
,
width
:
'
1
50'
,
tooltip
:
true
,
fixed
:
'left'
,
formatter
:
function
(
row
)
{
...
...
@@ -436,16 +436,20 @@ export default {
this
.
cardLoading
=
false
;
}
},
async
aiTransformStoreGroupSplit
()
{
let
res
=
await
aiTransformStoreGroupSplit
();
async
aiTransformStoreGroupSplit
(
activityId
,
planId
)
{
let
res
=
await
aiTransformStoreGroupSplit
(
{
activityId
,
planId
}
);
this
.
options
.
treeOptions
.
data
=
res
.
result
||
[];
},
async
getActivityDetail
()
{
const
{
result
}
=
await
getActivityDetail
({
activityId
:
this
.
$route
.
params
.
id
});
if
(
!
result
)
return
;
const
{
startDate
,
endDate
,
activityName
,
activityId
}
=
result
;
const
smsFlag
=
result
.
activityPlanList
[
0
].
activityEventList
[
0
].
smsFlag
;
this
.
activityData
=
{
startTime
:
startDate
,
endTime
:
endDate
,
smsFlag
,
activityName
,
activityId
};
try
{
const
{
result
}
=
await
getActivityDetail
({
activityId
:
this
.
$route
.
params
.
id
});
if
(
!
result
)
return
;
const
{
startDate
,
endDate
,
activityName
,
activityId
}
=
result
;
const
smsFlag
=
result
.
activityPlanList
[
0
].
activityEventList
[
0
].
smsFlag
;
const
planId
=
result
.
activityPlanList
[
0
].
planId
;
this
.
activityData
=
{
startTime
:
startDate
,
endTime
:
endDate
,
smsFlag
,
activityName
,
activityId
};
this
.
aiTransformStoreGroupSplit
(
activityId
,
planId
);
}
catch
(
err
)
{}
},
radioChange
(
data
)
{
this
.
form
=
{
...
...
src/views/ai/ai-data-aiCall.vue
View file @
f63c3088
...
...
@@ -290,7 +290,7 @@ export default {
},
mounted
()
{
this
.
aiStoreOutboundStatistics
();
this
.
aiOutboundStoreGroupSplit
();
this
.
getActivityDetail
();
},
computed
:
{
...
...
@@ -348,6 +348,7 @@ export default {
const
head
=
{
label
:
'门店名称'
,
prop
:
'storeName'
,
width
:
'250'
,
tooltip
:
true
,
fixed
:
'left'
,
formatter
:
function
(
row
)
{
...
...
@@ -402,7 +403,7 @@ export default {
const
head
=
{
label
:
'分组名称'
,
prop
:
'name'
,
width
:
'
2
50'
,
width
:
'
1
50'
,
tooltip
:
true
,
fixed
:
'left'
,
formatter
:
function
(
row
)
{
...
...
@@ -449,17 +450,21 @@ export default {
this
.
cardLoading
=
false
;
}
},
async
aiOutboundStoreGroupSplit
()
{
let
res
=
await
aiOutboundStoreGroupSplit
();
async
aiOutboundStoreGroupSplit
(
activityId
,
planId
)
{
let
res
=
await
aiOutboundStoreGroupSplit
(
{
activityId
,
planId
}
);
this
.
options
.
treeOptions
.
data
=
res
.
result
||
[];
},
async
getActivityDetail
()
{
const
{
result
}
=
await
getActivityDetail
({
activityId
:
this
.
$route
.
params
.
id
});
if
(
!
result
)
return
;
const
{
startDate
,
endDate
,
activityName
,
activityId
}
=
result
;
const
smsFlag
=
result
.
activityPlanList
[
0
].
activityEventList
[
0
].
smsFlag
;
this
.
activityData
=
{
startTime
:
startDate
,
endTime
:
endDate
,
smsFlag
,
activityName
,
activityId
};
this
.
aiStoreOutboundRank
();
try
{
const
{
result
}
=
await
getActivityDetail
({
activityId
:
this
.
$route
.
params
.
id
});
if
(
!
result
)
return
;
const
{
startDate
,
endDate
,
activityName
,
activityId
}
=
result
;
const
smsFlag
=
result
.
activityPlanList
[
0
].
activityEventList
[
0
].
smsFlag
;
const
planId
=
result
.
activityPlanList
[
0
].
planId
;
this
.
activityData
=
{
startTime
:
startDate
,
endTime
:
endDate
,
smsFlag
,
activityName
,
activityId
};
this
.
aiStoreOutboundRank
();
this
.
aiOutboundStoreGroupSplit
(
activityId
,
planId
);
}
catch
(
err
)
{}
},
radioChange
(
data
)
{
this
.
form
=
{
...
...
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