|
|
@@ -4,7 +4,7 @@
|
|
4
|
4
|
v-for="(item, index) in cardLists"
|
|
5
|
5
|
:key="index"
|
|
6
|
6
|
class="ivu-mb mb10"
|
|
7
|
|
- @click="pushToPage(index)"
|
|
|
7
|
+ @click="pushToPage(index, item)"
|
|
8
|
8
|
>
|
|
9
|
9
|
<div class="card_box">
|
|
10
|
10
|
<div class="card_box_cir" :class="{'one':index%5==0,'two':index%5==1,'three':index%5==2,'four':index%5==3,'five':index%5==4}">
|
|
|
@@ -29,19 +29,18 @@ export default {
|
|
29
|
29
|
cardLists: Array
|
|
30
|
30
|
},
|
|
31
|
31
|
methods: {
|
|
32
|
|
- pushToPage(index) {
|
|
33
|
|
-
|
|
34
|
|
-
|
|
35
|
|
-
|
|
36
|
|
-
|
|
37
|
|
-
|
|
38
|
|
- if (index > 2) {
|
|
39
|
|
- index += 1
|
|
|
32
|
+ pushToPage(index, item) {
|
|
|
33
|
+ // if (index > 2) {
|
|
|
34
|
+ // index += 1
|
|
|
35
|
+ // }
|
|
|
36
|
+ // console.log('index = ', index)
|
|
|
37
|
+ var query = {};
|
|
|
38
|
+ if (item.user_group) {
|
|
|
39
|
+ query = { user_group: item.user_group}
|
|
40
|
40
|
}
|
|
41
|
|
- console.log('index = ', index)
|
|
42
|
41
|
this.$router.push({
|
|
43
|
42
|
path: roterPre + '/user/list/',
|
|
44
|
|
- query: { user_group: index + 1 }
|
|
|
43
|
+ query: query
|
|
45
|
44
|
})
|
|
46
|
45
|
}
|
|
47
|
46
|
}
|