Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
梁建民
/
h5
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
98522799
authored
Feb 22, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
3477776c
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
src/store/modules/sample/index.js
view/app.js
src/store/modules/sample/index.js
View file @
98522799
...
@@ -27,9 +27,7 @@ const mutations = {
...
@@ -27,9 +27,7 @@ const mutations = {
},
},
aggs
(
state
,
payload
)
{
aggs
(
state
,
payload
)
{
console
.
log
(
payload
)
if
(
!
payload
.
reset
)
{
var
arr
=
[];
var
arr
=
[];
var
obj
=
Object
.
keys
(
payload
.
data
.
aggs
);
var
obj
=
Object
.
keys
(
payload
.
data
.
aggs
);
...
@@ -49,19 +47,21 @@ const mutations = {
...
@@ -49,19 +47,21 @@ const mutations = {
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
=
!
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
;
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
=
!
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
;
payload
.
data
.
aggs
[
k
].
list
[
i
].
flag
=
!
payload
.
data
.
aggs
[
k
].
list
[
i
].
flag
;
payload
.
data
.
aggs
[
k
].
list
[
i
].
flag
=
!
payload
.
data
.
aggs
[
k
].
list
[
i
].
flag
;
}
if
(
payload
.
reset
)
{
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
=
false
;
payload
.
data
.
aggs
[
k
].
list
[
i
].
flag
=
false
;
}
}
}
}
}
}
state
.
aggs
=
payload
.
data
;
}
}
}
else
{
state
.
aggs
=
[];
state
.
aggs
=
payload
.
data
;
state
.
aggs
=
payload
.
data
;
}
},
},
aggSample
(
state
,
payload
)
{
aggSample
(
state
,
payload
)
{
...
...
view/app.js
View file @
98522799
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