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
90e96178
Commit
90e96178
authored
Apr 25, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 完成
parent
35edec52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
27 deletions
+18
-27
ai-data-aiCall.vue
src/views/ai/ai-data-aiCall.vue
+1
-1
ai-data.vue
src/views/ai/ai-data-report/ai-data.vue
+17
-26
No files found.
src/views/ai/ai-data-aiCall.vue
View file @
90e96178
...
...
@@ -125,7 +125,7 @@ let tableHead = [
minWidth
:
'120'
,
sortable
:
'custom'
,
formatter
:
function
(
row
)
{
return
`<span>
${
!
isNaN
(
row
.
connectionIntentionRate
)
?
row
.
connectionIntentionRate
.
toLocaleString
()
:
'- -'
}
</span>`
;
return
`<span>
${
!
isNaN
(
row
.
connectionIntentionRate
)
?
row
.
connectionIntentionRate
+
'%'
:
'- -'
}
</span>`
;
}
}
];
...
...
src/views/ai/ai-data-report/ai-data.vue
View file @
90e96178
...
...
@@ -261,26 +261,21 @@ export default {
const
chart
=
new
G2
.
Chart
({
container
:
'chart-tag'
,
forceFit
:
true
,
height
:
2
2
0
,
padding
:
1
0
height
:
2
6
0
,
padding
:
0
});
chart
.
source
(
data
.
filter
(
el
=>
el
.
count
>
0
));
chart
.
coord
(
'theta'
);
chart
.
legend
(
false
);
chart
.
coord
(
'theta'
,
{
radius
:
0.75
,
innerRadius
:
0.6
});
chart
.
legend
(
null
);
chart
.
intervalStack
()
.
position
(
'count'
)
.
color
(
'
percent
'
,
[
'#2d4dd1'
,
'#239EFF'
,
'#14C9C9'
,
'#05B770'
,
'#F69F3E'
,
'#7D59E0'
])
.
color
(
'
label
'
,
[
'#2d4dd1'
,
'#239EFF'
,
'#14C9C9'
,
'#05B770'
,
'#F69F3E'
,
'#7D59E0'
])
.
label
(
'percent'
,
val
=>
{
return
{
offset
:
-
40
,
textStyle
:
{
fontSize
:
10
,
textAlign
:
'center'
,
shadowBlur
:
2
,
shadowColor
:
'rgba(0, 0, 0, .45)'
,
fill
:
'#fff'
},
formatter
:
(
text
,
item
)
=>
{
return
item
.
point
.
label
+
'
\
n'
+
item
.
point
.
percent
;
}
...
...
@@ -313,26 +308,22 @@ export default {
const
chart
=
new
G2
.
Chart
({
container
:
'chart-record'
,
forceFit
:
true
,
height
:
2
2
0
,
padding
:
1
0
height
:
2
6
0
,
padding
:
0
});
chart
.
source
(
data
.
filter
(
el
=>
el
.
count
>
0
));
chart
.
coord
(
'theta'
);
chart
.
legend
(
false
);
console
.
log
(
data
);
chart
.
coord
(
'theta'
,
{
radius
:
0.75
,
innerRadius
:
0.6
});
chart
.
legend
(
null
);
chart
.
intervalStack
()
.
position
(
'count'
)
.
color
(
'
percent
'
,
[
'#2d4dd1'
,
'#239EFF'
,
'#14C9C9'
])
.
color
(
'
label
'
,
[
'#2d4dd1'
,
'#239EFF'
,
'#14C9C9'
])
.
label
(
'percent'
,
()
=>
{
return
{
offset
:
-
40
,
textStyle
:
{
fontSize
:
10
,
textAlign
:
'center'
,
shadowBlur
:
2
,
shadowColor
:
'rgba(0, 0, 0, .45)'
,
fill
:
'#fff'
},
formatter
:
(
text
,
item
)
=>
{
return
item
.
point
.
label
+
'
\
n'
+
item
.
point
.
percent
;
}
...
...
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