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
06b99f5c
authored
Feb 22, 2020
by
梁建民
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
js
parent
1d3fd10c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
17 additions
and
39 deletions
src/App.vue
src/store/modules/sample/index.js
src/views/sample/sample.vue
view/18.js
view/app.js
src/App.vue
View file @
06b99f5c
<
template
>
<div
id=
"app"
>
<keep-alive
exclude=
"newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,risk,risksuccess"
>
<keep-alive
exclude=
"newsDetail,pointchange,wallet,walletRetrieve,walletDetail,walletRecord,walletStatus,walletWithdraw,walletRecharge,xianhuo,lxshop,brand,brandList,sampleapply,risk,risksuccess
,sample
"
>
<router-view
class=
"router-view"
></router-view>
</keep-alive>
</div>
...
...
src/store/modules/sample/index.js
View file @
06b99f5c
...
...
@@ -26,55 +26,32 @@ const mutations = {
state
.
ziYingIndex
=
payload
.
data
;
},
aggs
(
state
,
payload
)
{
if
(
payload
.
reset
)
{
for
(
let
k
in
payload
.
data
.
aggs
)
{
for
(
let
i
=
0
;
i
<
payload
.
data
.
aggs
[
k
].
list
.
length
;
i
++
)
{
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
=
false
;
payload
.
data
.
aggs
[
k
].
list
[
i
].
flag
=
false
;
}
}
var
arr
=
[];
}
else
{
var
arr
=
[];
if
(
payload
.
id
)
{
arr
=
payload
.
id
.
split
(
","
);
}
for
(
let
k
in
payload
.
data
.
aggs
)
{
for
(
let
i
=
0
;
i
<
payload
.
data
.
aggs
[
k
].
list
.
length
;
i
++
)
{
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
=
false
;
if
(
payload
.
id
)
{
arr
=
payload
.
id
.
split
(
","
);
}
for
(
let
k
in
payload
.
data
.
aggs
)
{
for
(
let
j
=
0
;
j
<
arr
.
length
;
j
++
)
{
for
(
let
i
=
0
;
i
<
payload
.
data
.
aggs
[
k
].
list
.
length
;
i
++
)
{
payload
.
data
.
aggs
[
k
].
list
[
i
].
check
=
false
;
if
(
payload
.
data
.
aggs
[
k
].
list
[
i
].
id
==
arr
[
j
]
)
{
for
(
let
j
=
0
;
j
<
arr
.
length
;
j
++
)
{
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
;
}
if
(
payload
.
data
.
aggs
[
k
].
list
[
i
].
id
==
arr
[
j
])
{
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
;
}
}
}
}
state
.
aggs
=
payload
.
data
;
},
aggSample
(
state
,
payload
)
{
state
.
smaple_class_id
=
payload
.
data
[
0
].
smaple_class_id
;
...
...
src/views/sample/sample.vue
View file @
06b99f5c
...
...
@@ -286,6 +286,7 @@
params
,
params
});
this
.
id
=
[];
},
submit
:
function
()
{
...
...
view/18.js
View file @
06b99f5c
This diff is collapsed.
Click to expand it.
view/app.js
View file @
06b99f5c
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