跳转至详情 url 存储参数 与 获取url参数

  作者:chrispy

<template slot-scope="scope"><el-button type="text" size="small" @click="toPage(scope.row)">施工人员管理</el-button></template>// 跳转至详情toPage (scope) {this.$router.push({path: '/

<template slot-scope="scope">

<el-button type="text" size="small" @click="toPage(scope.row)">施工人员管理</el-button>

</template>

// 跳转至详情

toPage (scope) {

this.$router.push({

path: '/supplierManagement/ConstructionUnitManagementItem',

query: {

builderId: scope.builder_id //  url 存储的参数与

}

})

}

this.$route.query.xxxxxxxx  //  获取url参数


有用  |  无用

猜你喜欢