赞
踩
<template slot-scope="scope">
<el-button @click="handleClickLook(scope.row)" type="text" size="small">查看</el-button>
</template>
方法实现,传参形式 this.$router.push({path: ’ 路由的name ', query: {key: value}})
handleClickLook(row){
this.$router.push({
path: '/qualitycontrol/qualitychart',
query:{content:JSON.stringify(row)}
})
},
this.content=JSON.parse(this.$route.query.content)
this.$router.push({name:'page2',params:{id:1}});
this.$route.params.id
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。