Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 d700d3be
authored
Oct 10, 2023
by
杨明
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed
1 parent
754caaf3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
src/components/lineChart/index.vue
src/views/home/components/Journey.vue
src/components/lineChart/index.vue
View file @
d700d3b
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-09-14 14:07:44
* @Date: 2023-09-14 14:07:44
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-10-
09 18:48:25
* @LastEditTime: 2023-10-
10 09:54:42
* @FilePath: \scrm-micro-home\src\components\lineChart\index.vue
* @FilePath: \scrm-micro-home\src\components\lineChart\index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -49,7 +49,6 @@ export default {
...
@@ -49,7 +49,6 @@ export default {
mounted
()
{
mounted
()
{
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
.
lineDom
=
document
.
getElementById
(
this
.
domId
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
this
[
this
.
domId
]
=
echarts
.
init
(
this
.
lineDom
)
this
[
this
.
domId
].
resize
()
window
.
addEventListener
(
'resize'
,
this
[
this
.
domId
].
resize
)
window
.
addEventListener
(
'resize'
,
this
[
this
.
domId
].
resize
)
},
},
beforeCreate
()
{
beforeCreate
()
{
...
@@ -58,6 +57,9 @@ export default {
...
@@ -58,6 +57,9 @@ export default {
methods
:
{
methods
:
{
chartBindEvent
()
{
chartBindEvent
()
{
this
[
this
.
domId
].
setOption
(
this
.
lineOptions
)
this
[
this
.
domId
].
setOption
(
this
.
lineOptions
)
this
.
$nextTick
(()
=>
{
this
[
this
.
domId
].
resize
()
})
}
}
}
}
}
}
...
...
src/views/home/components/Journey.vue
View file @
d700d3b
...
@@ -120,7 +120,7 @@ export default {
...
@@ -120,7 +120,7 @@ export default {
})
})
const
journeyList1
=
journeyList
.
filter
(
item
=>
item
.
instStatus
==
1
)
//已启用
const
journeyList1
=
journeyList
.
filter
(
item
=>
item
.
instStatus
==
1
)
//已启用
const
journeyList2
=
journeyList
.
filter
(
item
=>
item
.
instStatus
==
-
1
)
//未启用
const
journeyList2
=
journeyList
.
filter
(
item
=>
item
.
instStatus
==
0
)
//未启用
let
[
enable
,
unenable
]
=
[...
journeyList1
,
...
journeyList2
]
let
[
enable
,
unenable
]
=
[...
journeyList1
,
...
journeyList2
]
const
customerList
=
await
Promise
.
all
([
this
.
$apis
.
journey
.
getCustomersList
({
sopJourneyId
:
enable
.
instId
,
pageSize
:
10000
,
pageNumber
:
1
}),
unenable
?
this
.
$apis
.
journey
.
getCustomersList
({
sopJourneyId
:
unenable
.
instId
})
:
{}])
const
customerList
=
await
Promise
.
all
([
this
.
$apis
.
journey
.
getCustomersList
({
sopJourneyId
:
enable
.
instId
,
pageSize
:
10000
,
pageNumber
:
1
}),
unenable
?
this
.
$apis
.
journey
.
getCustomersList
({
sopJourneyId
:
unenable
.
instId
})
:
{}])
const
nodes
=
await
Promise
.
all
([
this
.
$apis
.
journey
.
getInstIdDetail
({
instId
:
enable
.
instId
}),
unenable
?
this
.
$apis
.
journey
.
getInstIdDetail
({
instId
:
unenable
.
instId
})
:
{}])
const
nodes
=
await
Promise
.
all
([
this
.
$apis
.
journey
.
getInstIdDetail
({
instId
:
enable
.
instId
}),
unenable
?
this
.
$apis
.
journey
.
getInstIdDetail
({
instId
:
unenable
.
instId
})
:
{}])
...
...
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