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