|
@ -111,12 +111,11 @@ |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
const isShowDecisionButton = (row) => { |
|
|
const isShowMainButton = (row, val) => { |
|
|
console.log(row.isPublished) |
|
|
|
|
|
if(row.useDecision) { |
|
|
if(row.useDecision) { |
|
|
return row.isPublished |
|
|
return row.isPublished |
|
|
} else { |
|
|
} else { |
|
|
return false |
|
|
return val ? true : false |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
@ -124,9 +123,9 @@ |
|
|
const butttondata = (row) => { |
|
|
const butttondata = (row) => { |
|
|
return [ |
|
|
return [ |
|
|
// defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']) }), // 完成 |
|
|
// defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']) }), // 完成 |
|
|
defaultButtons.mainApplyDecisionBtn({ hide: isShowDecisionButton(row), hasPermi:'qms:inspection-recode-main:edit'}), // 使用决策 |
|
|
defaultButtons.mainApplyDecisionBtn({ hide: isShowMainButton(row, null), hasPermi:'qms:inspection-recode-main:edit'}), // 使用决策 |
|
|
// defaultButtons.mainListDeleteBtn(null), // 删除 |
|
|
// defaultButtons.mainListDeleteBtn(null), // 删除 |
|
|
defaultButtons.mainListOrderPubBtn({ hide: row.isPublished, hasPermi:'qms:inspection-recode-main:pub'}), // 发布 |
|
|
defaultButtons.mainListOrderPubBtn({ hide: isShowMainButton(row, 'publish'), hasPermi:'qms:inspection-recode-main:pub'}), // 发布 |
|
|
defaultButtons.mainListPackageBtn(null), // 包装 |
|
|
defaultButtons.mainListPackageBtn(null), // 包装 |
|
|
] |
|
|
] |
|
|
} |
|
|
} |
|
|