|
|
@ -64,6 +64,7 @@ |
|
|
|
align="center" |
|
|
|
:fixed="item.columnName == 'NAME' ? 'left' : false" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
:width="item.width || computedWidth(item.label, item.itemType)" |
|
|
|
> |
|
|
|
<!-- :width="item.itemType === 'radio' ? computedWidth(item.label) : 180" --> |
|
|
|
<template slot-scope="scope"> |
|
|
@ -96,7 +97,7 @@ |
|
|
|
<el-button @click="handleEdit(scope.row)" |
|
|
|
type="text" |
|
|
|
size="small" |
|
|
|
class="div-table-button--edit">编辑</el-button> |
|
|
|
class="div-table-button--edit">修改</el-button> |
|
|
|
<el-popconfirm title="删除之后无法回复,确认删除?" |
|
|
|
@onConfirm="handleDel(scope.row)"> |
|
|
|
<!-- <el-button slot="reference" |
|
|
@ -390,8 +391,12 @@ export default { |
|
|
|
this.tranferShow = false |
|
|
|
this.getTableData() |
|
|
|
}, |
|
|
|
computedWidth (label) { |
|
|
|
const wd = 20 * label.length |
|
|
|
computedWidth (label, type) { |
|
|
|
|
|
|
|
let wd = '' |
|
|
|
if (type == 'input' || type == 'select') wd = 40 * label.length |
|
|
|
else if(type == 'radio') wd = 20 * label.length |
|
|
|
console.log('type-----wd', wd) |
|
|
|
return wd > 80 ? wd : 80 |
|
|
|
}, |
|
|
|
filterEdit (id) { |
|
|
|