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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM