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
1d87de25
Commit
1d87de25
authored
Apr 18, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: ai营销bug
parent
64e9731f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
ai-data-report.vue
src/views/ai/ai-data-report.vue
+1
-1
ai-data.vue
src/views/ai/ai-data-report/ai-data.vue
+4
-2
No files found.
src/views/ai/ai-data-report.vue
View file @
1d87de25
...
...
@@ -52,7 +52,7 @@ export default {
this
.
filterJson
=
filterJson
;
},
toDetailPage
()
{
this
.
$router
.
push
(
`/ai/ai-data-detail/
${
this
.
$route
.
params
.
id
}
?flag=
${
this
.
flags
.
smsFlag
}
analyseFlag=
${
this
.
flags
.
analyseFlag
}
`
);
this
.
$router
.
push
(
`/ai/ai-data-detail/
${
this
.
$route
.
params
.
id
}
?flag=
${
this
.
flags
.
smsFlag
}
&
analyseFlag=
${
this
.
flags
.
analyseFlag
}
`
);
}
}
};
...
...
src/views/ai/ai-data-report/ai-data.vue
View file @
1d87de25
...
...
@@ -234,6 +234,7 @@ export default {
percent
:
originData
[
el
+
'_proportion'
]
};
});
if
(
data
.
filter
(
el
=>
el
.
count
>
0
).
length
==
0
)
return
;
document
.
getElementById
(
'chart-tag'
).
innerHTML
=
''
;
const
chart
=
new
G2
.
Chart
({
container
:
'chart-tag'
,
...
...
@@ -241,7 +242,7 @@ export default {
height
:
220
,
padding
:
10
});
chart
.
source
(
data
);
chart
.
source
(
data
.
filter
(
el
=>
el
.
count
>
0
)
);
chart
.
coord
(
'theta'
);
chart
.
legend
(
false
);
chart
...
...
@@ -285,6 +286,7 @@ export default {
{
label
:
'线路问题'
,
count
:
originData
[
'count_4'
],
percent
:
originData
[
'4_proportion'
]
},
{
label
:
'被叫问题'
,
count
:
originData
[
'count_5'
],
percent
:
originData
[
'5_proportion'
]
}
];
if
(
data
.
filter
(
el
=>
el
.
count
>
0
).
length
==
0
)
return
;
document
.
getElementById
(
'chart-record'
).
innerHTML
=
''
;
const
chart
=
new
G2
.
Chart
({
container
:
'chart-record'
,
...
...
@@ -292,7 +294,7 @@ export default {
height
:
220
,
padding
:
10
});
chart
.
source
(
data
);
chart
.
source
(
data
.
filter
(
el
=>
el
.
count
>
0
)
);
chart
.
coord
(
'theta'
);
chart
.
legend
(
false
);
chart
...
...
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