vue elementui table 内按钮跳转页面
vue :
<el-table-column label="操作" v-if="isColumOperate"> <template slot-scope="scope"> <el-button type="text" size="small" @click="edit(scope.row, scope.$index)">编辑</el-button> <el-button type="text" size="small" @click="rfid(scope.row, scope.$index)">配置</el-button> </template> </el-table-column>
ts:
rfid(row: IRoleEntity, index: number){ // @ts-ignore // @ts-ignore this.$router.push({path: 'menuFun',//rooter配置的name值 query:{ 'menu':JSON.stringify({ row: row}) } }); }