|
|
@ -89,7 +89,7 @@ const { getList, setSearchParams } = tableMethods |
|
|
|
|
|
|
|
// 列表头部按钮 |
|
|
|
const HeadButttondata = [ |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:'qms:type-template:create'}), // 新增 |
|
|
|
defaultButtons.defaultAddBtn({hasPermi:'qms:inspection-scheme:create'}), // 新增 |
|
|
|
defaultButtons.defaultImportBtn({hasPermi:'qms:inspection-scheme:import'}), // 导入 |
|
|
|
// defaultButtons.defaultExportBtn({hasPermi:'wms:agv-locationrelation:export'}), // 导出 |
|
|
|
defaultButtons.defaultFreshBtn(null), // 刷新 |
|
|
@ -131,9 +131,9 @@ const isShowMainButton = (row,val) => { |
|
|
|
|
|
|
|
const butttondata = (row) => { |
|
|
|
return [ |
|
|
|
defaultButtons.mainListEditBtn({hasPermi: 'qms:type-template:update'}), |
|
|
|
defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:type-template:enable'}), |
|
|
|
defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:type-template:disable'}), |
|
|
|
defaultButtons.mainListEditBtn({hasPermi: 'qms:inspection-scheme:update'}), |
|
|
|
defaultButtons.mainListEnableBtn({hide:isShowMainButton(row,['FALSE']),hasPermi:'qms:inspection-scheme:enable'}), |
|
|
|
defaultButtons.mainListDisableBtn({hide:isShowMainButton(row,['TRUE']),hasPermi:'qms:inspection-scheme:disable'}), |
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
|