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})
      }
    });
  }

 

posted @ 2021-06-22 10:30  凉面好好吃  阅读(2306)  评论(0编辑  收藏  举报