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

 

相关文章

el-menu 有个属性 :default-active="curActive"...
基础用法1<el-inputv-model="input1"palcehode...
 1.安装element-uinpminstallelement-ui-S 2.在main.js中i...
layout布局通过基础的24分栏,可进行快速布局基础布局使用单...
 今天做一个选择年份的功能,直接调用了ElementUI里面的Dat...
  that.end 即为结束日期