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