| | |
| | | @current-change="currentChange" |
| | | @selection-change="handleSelectionChange" |
| | | > |
| | | <el-table-column type="selection" width="55" v-if="isSelection" /> |
| | | <el-table-column align="center" type="selection" width="55" v-if="isSelection" /> |
| | | <el-table-column |
| | | align="center" |
| | | label="序号" |
| | |
| | | show-overflow-tooltip |
| | | :sortable="item.sortable ? true : false" |
| | | :type="item.type" |
| | | :width="item.width" |
| | | :width="item.dataType === 'action'? getWidth(item.operation) : item.width" |
| | | align="center" |
| | | > |
| | | <!-- <div class="123" v-if="item.type == ''"> --> |
| | |
| | | }, |
| | | |
| | | methods: { |
| | | getWidth(row) { |
| | | let count = 0 |
| | | console.log('row---', row) |
| | | row.forEach(a => { |
| | | count += a.name.length |
| | | }) |
| | | return count * 15 + 40 + 'px' |
| | | }, |
| | | iconFn(row) { |
| | | if (row.name === "编辑" || row.name === "修改") { |
| | | return "el-icon-edit"; |