Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
smart_gov_platform
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
smart_gov_platform
Commits
80dd14b3
Commit
80dd14b3
authored
Sep 06, 2023
by
姬鋆屾
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tui
parent
a9a95a1c
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
969 additions
and
760 deletions
+969
-760
portal-manager-ui/admin/src/views/dataActuary/behaviour/pathanalyse/pathAnalyse.vue
...c/views/dataActuary/behaviour/pathanalyse/pathAnalyse.vue
+17
-10
portal-manager-ui/admin/src/views/dataActuary/behaviour/usinghabit/usinghabit.vue
...src/views/dataActuary/behaviour/usinghabit/usinghabit.vue
+275
-221
portal-manager-ui/admin/src/views/dataActuary/portrayal/portrayalBase/index.vue
...n/src/views/dataActuary/portrayal/portrayalBase/index.vue
+677
-529
No files found.
portal-manager-ui/admin/src/views/dataActuary/behaviour/pathanalyse/pathAnalyse.vue
View file @
80dd14b3
...
...
@@ -80,13 +80,20 @@ export default {
this
.
queryform
.
dateTimeStart
=
this
.
time
?
this
.
time
[
0
]
:
null
;
this
.
queryform
.
dateTimeStart
=
this
.
time
?
this
.
time
[
1
]
:
null
;
getWayAccessAnalyse
(
this
.
queryform
).
then
((
res
)
=>
{
let
data
=
res
.
data
.
data
.
map
((
item
,
i
)
=>
item
.
code
!=
"
/sceneSignIn
"
?
{
name
:
item
.
name
,
}
:
""
);
let
newobj
=
{};
let
data
=
res
.
data
.
data
.
reduce
((
preVal
,
curVal
)
=>
{
newobj
[
curVal
.
name
]
?
""
:
(
newobj
[
curVal
.
name
]
=
preVal
.
push
(
curVal
));
return
preVal
;
},
[]);
// let data = res.data.data.map((item, i) =>
// item.code != "/sceneSignIn"
// ? {
// name: item.name,
// }
// : ""
// );
let
links
=
res
.
data
.
links
.
map
((
item
)
=>
({
source
:
item
.
sourceName
,
target
:
item
.
targetName
,
...
...
portal-manager-ui/admin/src/views/dataActuary/behaviour/usinghabit/usinghabit.vue
View file @
80dd14b3
<
template
>
<!-- 使用习惯分析 -->
<div
class=
"page"
>
<a-form-model
:model=
"queryform"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
layout=
"inline"
>
<a-form-model
:model=
"queryform"
:label-col=
"labelCol"
:wrapper-col=
"wrapperCol"
layout=
"inline"
>
<a-form-model-item>
<a-select
v-model=
"queryform.productId"
style=
"width: 200px"
placeholder=
"选择产品"
>
<a-select-option
:value=
"item.id"
v-for=
"(item,index) in product"
:key=
"index"
>
{{
item
.
title
}}
<a-select
v-model=
"queryform.productId"
style=
"width: 200px"
placeholder=
"选择产品"
>
<a-select-option
:value=
"item.id"
v-for=
"(item, index) in product"
:key=
"index"
>
{{
item
.
title
}}
</a-select-option>
</a-select>
</a-form-model-item>
<a-form-model-item>
<a-range-picker
valueFormat=
"yyyy-MM-DD"
v-model=
"time"
style=
"width: 300px"
:allowClear=
"false"
/>
<a-range-picker
valueFormat=
"yyyy-MM-DD"
v-model=
"time"
style=
"width: 300px"
:allowClear=
"false"
/>
</a-form-model-item>
<a-form-model-item>
<a-button
type=
"primary"
class=
"addclass"
@
click=
"getData"
>
...
...
@@ -27,187 +45,221 @@
</
template
>
<
script
>
import
*
as
echarts
from
'
echarts
'
import
moment
from
'
moment
'
;
import
{
getUsageCensus
}
from
'
@/api/dataActuary.js
'
import
product
from
"
../mixins/product
"
export
default
{
mixins
:
[
product
],
import
*
as
echarts
from
"
echarts
"
;
import
moment
from
"
moment
"
;
import
{
getUsageCensus
}
from
"
@/api/dataActuary.js
"
;
import
product
from
"
../mixins/product
"
;
export
default
{
mixins
:
[
product
],
data
()
{
return
{
queryform
:
{
productId
:
1
,
dateTimeStart
:
moment
().
format
(
'
yyyy-MM-DD
'
),
dateTimeEnd
:
moment
().
format
(
'
yyyy-MM-DD
'
),
pageCode
:
'
/
'
},
time
:
[
moment
().
format
(
'
yyyy-MM-DD
'
),
moment
().
format
(
'
yyyy-MM-DD
'
)],
product
:
[{
title
:
'
排队机
'
,
id
:
1
}],
dateTimeStart
:
moment
().
format
(
"
yyyy-MM-DD
"
),
dateTimeEnd
:
moment
().
format
(
"
yyyy-MM-DD
"
),
pageCode
:
"
/
"
,
},
time
:
[
moment
().
format
(
"
yyyy-MM-DD
"
),
moment
().
format
(
"
yyyy-MM-DD
"
)],
product
:
[
{
title
:
"
排队机
"
,
id
:
1
,
},
],
labelCol
:
{
span
:
1
span
:
1
,
},
wrapperCol
:
{
span
:
14
span
:
14
,
},
}
};
},
mounted
()
{
this
.
getData
()
this
.
getData
();
},
methods
:
{
getData
()
{
this
.
queryform
.
dateTimeStart
=
this
.
time
?
this
.
time
[
0
]
:
null
this
.
queryform
.
dateTimeEnd
=
this
.
time
?
this
.
time
[
1
]
:
null
getUsageCensus
(
this
.
queryform
).
then
(
res
=>
{
let
data
=
res
.
data
.
map
(({
businessName
,
propValue
})
=>
({
name
:
businessName
,
value
:
propValue
*
100
}))
this
.
initType
(
data
)
})
},
initWay
(){
let
chartDom
=
document
.
getElementById
(
'
way
'
)
this
.
queryform
.
dateTimeStart
=
this
.
time
?
this
.
time
[
0
]
:
null
;
this
.
queryform
.
dateTimeEnd
=
this
.
time
?
this
.
time
[
1
]
:
null
;
getUsageCensus
(
this
.
queryform
).
then
((
res
)
=>
{
let
data
=
res
.
data
.
map
(({
businessName
,
propValue
})
=>
({
name
:
businessName
,
value
:
propValue
*
100
,
}));
this
.
initType
(
data
);
});
},
initWay
()
{
let
chartDom
=
document
.
getElementById
(
"
way
"
);
let
myChart
=
echarts
.
init
(
chartDom
);
myChart
.
setOption
({
title
:
{
text
:
'
取号方式分析
'
,
left
:
'
center
'
text
:
"
取号方式分析
"
,
left
:
"
center
"
,
},
tooltip
:
{
trigger
:
'
item
'
,
trigger
:
"
item
"
,
},
legend
:
{
bottom
:
0
,
left
:
'
center
'
,
left
:
"
center
"
,
itemWidth
:
10
,
itemHeight
:
10
itemHeight
:
10
,
},
color
:
[
'
#6395F9
'
,
'
#64DAAB
'
,
'
#647798
'
,
'
#F6C02D
'
,
'
#7567FA
'
,
'
#75CBED
'
],
series
:
[{
name
:
'
Access From
'
,
type
:
'
pie
'
,
radius
:
'
65%
'
,
color
:
[
"
#6395F9
"
,
"
#64DAAB
"
,
"
#647798
"
,
"
#F6C02D
"
,
"
#7567FA
"
,
"
#75CBED
"
,
],
series
:
[
{
name
:
"
Access From
"
,
type
:
"
pie
"
,
radius
:
"
65%
"
,
label
:
{
normal
:
{
formatter
:
'
{d}%
'
//自定义显示格式(b:name, c:value, d:百分比)
}
formatter
:
"
{d}%
"
,
//自定义显示格式(b:name, c:value, d:百分比)
},
},
labelLine
:
{
normal
:
{
length
:
1
}
length
:
1
,
},
},
data
:
[{
data
:
[
{
value
:
1048
,
name
:
'
Search Engine
'
name
:
"
Search Engine
"
,
},
{
value
:
735
,
name
:
'
Direct
'
name
:
"
Direct
"
,
},
{
value
:
580
,
name
:
'
Email
'
name
:
"
Email
"
,
},
{
value
:
484
,
name
:
'
Union Ads
'
name
:
"
Union Ads
"
,
},
{
value
:
300
,
name
:
'
Video Ads
'
}
name
:
"
Video Ads
"
,
},
],
}]
})
},
],
});
},
initType
(
data
)
{
console
.
log
(
data
)
let
chartDom
=
document
.
getElementById
(
'
type
'
)
console
.
log
(
data
);
let
chartDom
=
document
.
getElementById
(
"
type
"
);
let
myChart
=
echarts
.
init
(
chartDom
);
myChart
.
setOption
({
title
:
{
text
:
this
.
queryform
.
productId
==
1
?
'
取号类型分析
'
:
'
功能使用分布
'
,
left
:
'
center
'
text
:
this
.
queryform
.
productId
==
1
?
"
取号类型分析
"
:
"
功能使用分布
"
,
left
:
"
center
"
,
},
tooltip
:
{
trigger
:
'
item
'
,
trigger
:
"
item
"
,
},
legend
:
{
bottom
:
0
,
left
:
'
center
'
,
left
:
"
center
"
,
itemWidth
:
10
,
itemHeight
:
10
itemHeight
:
10
,
},
color
:
[
'
#6395F9
'
,
'
#64DAAB
'
,
'
#647798
'
,
'
#F6C02D
'
,
'
#7567FA
'
,
'
#75CBED
'
],
series
:
[{
type
:
'
pie
'
,
radius
:
'
65%
'
,
color
:
[
"
#6395F9
"
,
"
#64DAAB
"
,
"
#647798
"
,
"
#F6C02D
"
,
"
#7567FA
"
,
"
#75CBED
"
,
],
series
:
[
{
type
:
"
pie
"
,
radius
:
"
65%
"
,
label
:
{
normal
:
{
formatter
:
'
{d}%
'
//自定义显示格式(b:name, c:value, d:百分比)
}
formatter
:
"
{d}%
"
,
//自定义显示格式(b:name, c:value, d:百分比)
},
},
labelLine
:
{
normal
:
{
length
:
1
}
length
:
1
,
},
},
data
:
data
,
},
data
:
data
}]
})
],
});
},
initCanal
()
{
let
chartDom
=
document
.
getElementById
(
'
canal
'
)
let
chartDom
=
document
.
getElementById
(
"
canal
"
);
let
myChart
=
echarts
.
init
(
chartDom
);
myChart
.
setOption
({
title
:
{
text
:
'
取号渠道分析
'
,
left
:
'
center
'
text
:
"
取号渠道分析
"
,
left
:
"
center
"
,
},
tooltip
:
{
trigger
:
'
item
'
,
trigger
:
"
item
"
,
},
legend
:
{
bottom
:
0
,
left
:
'
center
'
,
left
:
"
center
"
,
itemWidth
:
10
,
itemHeight
:
10
itemHeight
:
10
,
},
color
:
[
'
#6395F9
'
,
'
#64DAAB
'
,
'
#647798
'
,
'
#F6C02D
'
,
'
#7567FA
'
,
'
#75CBED
'
],
series
:
[{
name
:
'
Access From
'
,
type
:
'
pie
'
,
radius
:
'
65%
'
,
color
:
[
"
#6395F9
"
,
"
#64DAAB
"
,
"
#647798
"
,
"
#F6C02D
"
,
"
#7567FA
"
,
"
#75CBED
"
,
],
series
:
[
{
name
:
"
Access From
"
,
type
:
"
pie
"
,
radius
:
"
65%
"
,
label
:
{
normal
:
{
formatter
:
'
{d}%
'
//自定义显示格式(b:name, c:value, d:百分比)
}
formatter
:
"
{d}%
"
,
//自定义显示格式(b:name, c:value, d:百分比)
},
},
labelLine
:
{
normal
:
{
length
:
1
}
length
:
1
,
},
data
:
[{
},
data
:
[
{
value
:
1048
,
name
:
'
终端取号
'
name
:
"
终端取号
"
,
},
{
value
:
735
,
name
:
'
在线取号
'
}
]
}]
})
}
}
};
name
:
"
在线取号
"
,
},
],
},
],
});
},
},
};
</
script
>
<
style
lang=
"less"
scoped
>
.page {
.page {
height: calc(100% - 50px);
display: flex;
flex-direction: column;
...
...
@@ -222,10 +274,12 @@
justify-content: center;
padding: 50px 0;
#canal,#type,#way {
#canal,
#type,
#way {
width: 30%;
height: 100%;
}
}
}
}
</
style
>
portal-manager-ui/admin/src/views/dataActuary/portrayal/portrayalBase/index.vue
View file @
80dd14b3
This diff is collapsed.
Click to expand it.
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