|
|
@ -134,7 +134,7 @@ const buttonBaseClick = (val, item) => { |
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton = (row,val) => { |
|
|
|
if (val == row.name) { |
|
|
|
if (val == row.priority) { |
|
|
|
return true |
|
|
|
} else { |
|
|
|
return false |
|
|
@ -145,7 +145,7 @@ const isShowMainButton = (row,val) => { |
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListEditBtn({hasPermi: 'wms:itembasic:update' }), // 编辑 |
|
|
|
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,['默认规则']), hasPermi: 'wms:itembasic:delete' }), // 删除 |
|
|
|
defaultButtons.mainListDeleteBtn({hide:isShowMainButton(row,0), hasPermi: 'wms:itembasic:delete' }), // 删除 |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|