Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-scene
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 04d47556
authored
Nov 03, 2023
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
增加loading
1 parent
fcc3edae
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
5 deletions
src/views/journey/index/dataView.vue
src/views/journey/index/dataView.vue
View file @
04d4755
...
@@ -25,6 +25,7 @@
...
@@ -25,6 +25,7 @@
<div
<div
:key=
"cindex"
:key=
"cindex"
class=
"group"
class=
"group"
v-loading=
"c.loading"
>
>
<div
class=
"title"
>
<div
class=
"title"
>
<div
class=
"text flex"
>
<div
class=
"text flex"
>
...
@@ -199,18 +200,25 @@ export default {
...
@@ -199,18 +200,25 @@ export default {
const
stageList
=
this
.
stageList
,
const
stageList
=
this
.
stageList
,
arr
=
[],
arr
=
[],
{
sopJourneyStage
}
=
params
{
sopJourneyStage
}
=
params
this
.
dataViewLoading
=
false
for
(
let
k
in
stageList
)
{
for
(
let
k
in
stageList
)
{
if
(
stageList
[
k
].
value
)
{
if
(
stageList
[
k
].
value
)
{
arr
.
push
({
arr
.
push
({
title
:
stageList
[
k
].
label
,
title
:
stageList
[
k
].
label
,
list
:
null
list
:
[],
loading
:
true
})
})
this
.
viewList
=
splitArrayIntoChunks
(
arr
,
4
)
this
.
dataViewLoading
=
true
}
}
for
(
let
k
in
stageList
)
{
if
(
stageList
[
k
].
value
)
{
params
.
sopJourneyStage
=
stageList
[
k
].
value
params
.
sopJourneyStage
=
stageList
[
k
].
value
let
list
=
[]
let
list
=
[]
this
.
viewList
=
splitArrayIntoChunks
(
arr
,
4
)
if
(
!
sopJourneyStage
||
sopJourneyStage
==
stageList
[
k
].
value
)
{
if
(
!
sopJourneyStage
||
sopJourneyStage
==
stageList
[
k
].
value
)
{
k
!=
0
&&
this
.
$set
(
this
.
pageNumber
,
k
-
1
,
1
)
k
!=
0
&&
this
.
$set
(
this
.
pageNumber
,
k
-
1
,
1
)
this
.
dataViewLoading
=
false
const
{
list
:
apiList
,
total
}
=
await
this
.
$apis
.
journey
.
getCustomersList
(
params
)
const
{
list
:
apiList
,
total
}
=
await
this
.
$apis
.
journey
.
getCustomersList
(
params
)
list
=
apiList
list
=
apiList
k
!=
0
&&
this
.
$set
(
this
.
pageCount
,
k
-
1
,
total
)
k
!=
0
&&
this
.
$set
(
this
.
pageCount
,
k
-
1
,
total
)
...
@@ -221,12 +229,14 @@ export default {
...
@@ -221,12 +229,14 @@ export default {
})
})
this
.
viewList
.
forEach
(
item
=>
{
this
.
viewList
.
forEach
(
item
=>
{
item
.
forEach
(
e
=>
{
item
.
forEach
(
e
=>
{
if
(
!
e
.
list
&&
e
.
title
===
stageList
[
k
].
label
)
e
.
list
=
list
||
[]
if
(
!
e
.
list
.
length
&&
e
.
title
===
stageList
[
k
].
label
)
{
e
.
list
=
list
||
[]
e
.
loading
=
false
}
})
})
})
})
}
}
}
}
this
.
dataViewLoading
=
true
},
},
}
}
}
}
...
...
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