| | |
| | | <el-table ref="multipleTable" :data="tableData" style="width: 100%" |
| | | :header-cell-style="{background:'#06122c','font-size':'12px',color:'#4b9bb7','font-weight':'650','line-height':'45px'}" |
| | | :row-class-name="tableRowClassName"> |
| | | <el-table-column type="selection" :min-width="5"> |
| | | </el-table-column> |
| | | <el-table-column v-for="item in option.group" :key="item.prop" :label="item.label" |
| | | :prop="item.prop" :min-width="item['min-width'] ? item['item.min-width']:'10'"> |
| | | <template slot-scope="scope"> |
| | |
| | | methods: { |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | if ((rowIndex + 1) % 2 === 0) { |
| | | return 'warning-row'; |
| | | } else { |
| | | return 'success-row'; |
| | | } |
| | | return ''; |
| | | }, |
| | | // 当前页改变触发事件 |
| | | changeCurrentPage(page) { |