Skip to content

Commit

Permalink
verifyInvestigates 添加通过点击对应问卷单元格向verifyInvDetails传值路由
Browse files Browse the repository at this point in the history
  • Loading branch information
suvvm committed Nov 27, 2019
1 parent b5616df commit 7216a57
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions pages/investigates/verifyInvestigates.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<template>
<view>
<van-cell v-for="(item, key) in invList" v-bind:key="key" :title="item.name" :value="item.id" size="large" :label="item.description" clickable/>
<van-cell v-for="(item, key) in invList" v-bind:key="key" :title="item.name" :value="item.id" size="large" :label="item.description" clickable @click="verifyInvDetails(key)" />
</view>
</template>

Expand Down Expand Up @@ -37,7 +37,14 @@
});
},
methods: {
verifyInvDetails(key) {
this.$router.push({
path: '/pages/investigates/verifyInvDetails',
query: {
invDetails: this.invList[key].id
}
});
}
}
}
</script>
Expand Down

0 comments on commit 7216a57

Please sign in to comment.