|
|
@ -136,11 +136,12 @@ export default { |
|
|
|
operations: [ |
|
|
|
{ |
|
|
|
lable: '详情', // 按钮显示名称 |
|
|
|
size: 'mini', |
|
|
|
size: 'small', |
|
|
|
style: 'margin: 0 6px;', |
|
|
|
type: 'text', |
|
|
|
slot: '', |
|
|
|
plain: false, |
|
|
|
class: 'div-table-button--detail', |
|
|
|
methodName: 'detail', // 回调方法名称 |
|
|
|
isShow: (row) => { |
|
|
|
return true |
|
|
@ -148,11 +149,12 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
lable: '修改', // 按钮显示名称 |
|
|
|
size: 'mini', |
|
|
|
size: 'small', |
|
|
|
style: 'margin: 0 6px;', |
|
|
|
type: 'text', |
|
|
|
slot: '', |
|
|
|
plain: false, |
|
|
|
class: 'div-table-button--edit', |
|
|
|
methodName: 'edit', // 回调方法名称 |
|
|
|
isShow: (row) => { |
|
|
|
// return true |
|
|
@ -165,11 +167,12 @@ export default { |
|
|
|
}, |
|
|
|
{ |
|
|
|
lable: '删除', // 按钮显示名称 |
|
|
|
size: 'mini', |
|
|
|
size: 'small', |
|
|
|
style: 'margin: 0 6px;', |
|
|
|
type: 'text', |
|
|
|
slot: '', |
|
|
|
plain: false, |
|
|
|
class: 'div-table-button--delete', |
|
|
|
methodName: 'confirmDel', // 回调方法名称 |
|
|
|
isShow: (row) => { |
|
|
|
if (row.createdId === this.userId) { |
|
|
|