<el-table-column
prop="id"
label="序号"
width="80"
align="center"
:show-overflow-tooltip="true"
>
<el-table :data="tableData" :cell-style="cellStyle" style="width: 100%" @row-click="rowClick">
cellStyle({ row, column, rowIndex, columnIndex }) { //某列样式 if (columnIndex === 1) { // 指定列号 return 'color:#0030ff' } else { return '' } }, rowClick(row, column, cell, event){ //点击指定列 let code = row.id if(column.label=="项目名称"){ this.$router.push({path: '/dashboard',query: {id: code}}) } }