|
@ -143,7 +143,8 @@ const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
defaultButtons.mainListEditBtn({hasPermi: 'qms:sampling-scheme:update'}), |
|
|
defaultButtons.mainListEditBtn({hasPermi: 'qms:sampling-scheme:update'}), |
|
|
defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:sampling-scheme:enable'}), |
|
|
defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:sampling-scheme:enable'}), |
|
|
defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:sampling-scheme:disable'}), |
|
|
defaultButtons.mainListDisableBtn({ hide: isShowMainButton(row, ['TRUE']), hasPermi: 'qms:sampling-scheme:disable' }), |
|
|
|
|
|
defaultButtons.mainListDeleteBtn({hasPermi:'qms:sampling-scheme:delete'}), // 删除 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -155,6 +156,8 @@ const buttonTableClick = async (val, row) => { |
|
|
handleEnable(row.id) |
|
|
handleEnable(row.id) |
|
|
}else if (val == 'disable') { |
|
|
}else if (val == 'disable') { |
|
|
handleDisable(row.id) |
|
|
handleDisable(row.id) |
|
|
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
|
|
handleDelete(row.id) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|