Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
江名洋
/
linkwe-scrm
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit e026e3cf
authored
Feb 07, 2022
by
xinla
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
--no commit message
1 parent
9dae7c3b
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
23 deletions
linkwe-ui/src/components/ChartBar.vue
linkwe-ui/src/components/ChartLine.vue
linkwe-ui/src/components/SelectUser.vue
linkwe-ui/src/views/operateCenter/operateAnalysis/components/TabContent.vue
linkwe-ui/src/components/ChartBar.vue
View file @
e026e3c
...
@@ -55,13 +55,22 @@ export default {
...
@@ -55,13 +55,22 @@ export default {
return
{}
return
{}
},
},
computed
:
{},
computed
:
{},
watch
:
{},
watch
:
{
series
()
{
this
.
$nextTick
(()
=>
{
this
.
drawChart
()
})
}
},
created
()
{},
created
()
{},
mounted
()
{
mounted
()
{
this
.
drawChart
()
this
.
drawChart
()
},
},
methods
:
{
methods
:
{
drawChart
()
{
drawChart
()
{
if
(
!
(
this
.
series
&&
this
.
series
.
length
))
{
return
}
// eslint-disable-next-line
// eslint-disable-next-line
this
.
myChart
=
echarts
.
init
(
this
.
$refs
.
chart
)
this
.
myChart
=
echarts
.
init
(
this
.
$refs
.
chart
)
let
option
let
option
...
@@ -160,16 +169,17 @@ export default {
...
@@ -160,16 +169,17 @@ export default {
this
.
option
&&
merge
(
option
,
this
.
option
)
this
.
option
&&
merge
(
option
,
this
.
option
)
option
&&
this
.
myChart
.
setOption
(
option
)
option
&&
this
.
myChart
.
setOption
(
option
)
new
ResizeObserver
((
entries
)
=>
{
//
new ResizeObserver((entries) => {
this
.
myChart
.
resize
()
//
this.myChart.resize()
}).
observe
(
this
.
$refs
.
chart
)
//
}).observe(this.$refs.chart)
}
}
}
}
}
}
</
script
>
</
script
>
<
template
>
<
template
>
<div
ref=
"chart"
class=
"chart-bar chart"
></div>
<div
v-if=
"series && series.length"
ref=
"chart"
class=
"chart-bar chart"
></div>
<div
v-else
>
暂无数据
</div>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
linkwe-ui/src/components/ChartLine.vue
View file @
e026e3c
...
@@ -58,7 +58,9 @@ export default {
...
@@ -58,7 +58,9 @@ export default {
computed
:
{},
computed
:
{},
watch
:
{
watch
:
{
series
()
{
series
()
{
this
.
drawChart
()
this
.
$nextTick
(()
=>
{
this
.
drawChart
()
})
}
}
},
},
created
()
{},
created
()
{},
...
@@ -67,6 +69,9 @@ export default {
...
@@ -67,6 +69,9 @@ export default {
},
},
methods
:
{
methods
:
{
drawChart
()
{
drawChart
()
{
if
(
!
(
this
.
series
&&
this
.
series
.
length
))
{
return
}
// eslint-disable-next-line
// eslint-disable-next-line
this
.
myChart
=
echarts
.
init
(
this
.
$refs
.
chart
)
this
.
myChart
=
echarts
.
init
(
this
.
$refs
.
chart
)
let
option
let
option
...
@@ -215,7 +220,8 @@ export default {
...
@@ -215,7 +220,8 @@ export default {
</
script
>
</
script
>
<
template
>
<
template
>
<div
ref=
"chart"
class=
"chart-line chart"
></div>
<div
v-if=
"series && series.length"
ref=
"chart"
class=
"chart-line chart"
></div>
<div
v-else
>
暂无数据
</div>
</
template
>
</
template
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
...
...
linkwe-ui/src/components/SelectUser.vue
View file @
e026e3c
This diff is collapsed.
Click to expand it.
linkwe-ui/src/views/operateCenter/operateAnalysis/components/TabContent.vue
View file @
e026e3c
...
@@ -110,6 +110,18 @@ export default {
...
@@ -110,6 +110,18 @@ export default {
getList
(
page
)
{
getList
(
page
)
{
this
.
query
.
beginTime
=
this
.
dateRange
&&
this
.
dateRange
[
0
]
this
.
query
.
beginTime
=
this
.
dateRange
&&
this
.
dateRange
[
0
]
this
.
query
.
endTime
=
this
.
dateRange
&&
this
.
dateRange
[
1
]
this
.
query
.
endTime
=
this
.
dateRange
&&
this
.
dateRange
[
1
]
if
(
Array
.
isArray
(
this
.
userArray
))
{
this
.
query
.
deptIds
=
this
.
userArray
.
filter
((
e
)
=>
e
.
isParty
)
.
map
((
e
)
=>
e
.
id
)
.
join
(
','
)
this
.
query
.
userIds
=
this
.
userArray
.
filter
((
e
)
=>
!
e
.
isParty
)
.
map
((
e
)
=>
e
.
userId
)
.
join
(
','
)
}
else
{
this
.
query
.
deptIds
=
this
.
query
.
userIds
=
''
}
this
.
loading
=
true
this
.
loading
=
true
page
&&
(
this
.
query
.
pageNum
=
page
)
page
&&
(
this
.
query
.
pageNum
=
page
)
...
@@ -183,13 +195,9 @@ export default {
...
@@ -183,13 +195,9 @@ export default {
}
}
},
},
getSelectUser
(
data
)
{
getSelectUser
(
data
)
{
debugger
this
.
userArray
=
data
this
.
userArray
=
data
this
.
query
.
qrUserName
=
this
.
userArray
this
.
query
.
qrUserName
=
data
.
map
((
e
)
=>
e
.
name
).
join
(
','
)
.
map
(
function
(
obj
,
index
)
{
this
.
getList
()
return
obj
.
name
})
.
join
(
','
)
}
}
}
}
}
}
...
@@ -218,25 +226,21 @@ export default {
...
@@ -218,25 +226,21 @@ export default {
value-format=
"yyyy-MM-dd"
value-format=
"yyyy-MM-dd"
type=
"daterange"
type=
"daterange"
:clearable=
"false"
:clearable=
"false"
:picker-options=
"pickerOptions"
range-separator=
"-"
range-separator=
"-"
start-placeholder=
"开始日期"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
end-placeholder=
"结束日期"
@
change=
"getList(1)"
@
change=
"getList(1)"
></el-date-picker>
></el-date-picker>
<el-
selec
t
<el-
inpu
t
v-if=
"type.toLowerCase().includes('group')"
v-if=
"type.toLowerCase().includes('group')"
v-model=
"query.group"
v-model=
"query.group"
readonly
@
focus=
"dialogVisible = true"
placeholder=
"请选择群主"
placeholder=
"请选择群主"
@
change=
"getList(1)"
@
change=
"getList(1)"
>
>
<el-option
</el-input>
v-for=
"item in groupOwners"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
>
</el-option>
</el-select>
<el-select
<el-select
v-if=
"['customerGroupMemberTotalChart', 'customerGroupMemberTotalTable'].includes(type)"
v-if=
"['customerGroupMemberTotalChart', 'customerGroupMemberTotalTable'].includes(type)"
v-model=
"query.group"
v-model=
"query.group"
...
@@ -252,7 +256,14 @@ export default {
...
@@ -252,7 +256,14 @@ export default {
</el-option>
</el-option>
</el-select>
</el-select>
<el-input
<el-input
v-if=
"['customerTotalChart', 'realDataChart', 'customerContactTable'].includes(type)"
v-if=
"
[
'customerTotalChart',
'customerTotalTable',
'realDataChart',
'customerContactTable'
].includes(type)
"
style=
"width: 180px"
style=
"width: 180px"
:value=
"query.qrUserName"
:value=
"query.qrUserName"
readonly
readonly
...
@@ -289,6 +300,7 @@ export default {
...
@@ -289,6 +300,7 @@ export default {
title=
"组织架构"
title=
"组织架构"
:selected=
"userArray"
:selected=
"userArray"
@
success=
"getSelectUser"
@
success=
"getSelectUser"
:isOnlyLeaf=
"false"
></SelectUser>
></SelectUser>
</div>
</div>
</
template
>
</
template
>
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment