Browse Source

修改bug

master_hella_20240701
刘忱 10 months ago
parent
commit
5e9664b219
  1. 10
      src/views/qms/inspection/inspectionRecord/index.vue

10
src/views/qms/inspection/inspectionRecord/index.vue

@ -111,12 +111,12 @@
} }
} }
// const isShowDecisionButton = (row) => {
const isShowPublishedButton = (row, val) => { console.log(row.isPublished)
if(row.useDecision) { if(row.useDecision) {
return row.isPublished return row.isPublished
} else { } else {
return true return false
} }
} }
@ -124,9 +124,9 @@
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
// defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']) }), // // defaultButtons.mainListOrderCOMPLETEBtn({ hide: isShowMainButton(row, ['INCOMPLETE']) }), //
defaultButtons.mainApplyDecisionBtn({ hide: row.isPublished, hasPermi:'qms:inspection-recode-main:edit'}), // 使 defaultButtons.mainApplyDecisionBtn({ hide: isShowDecisionButton(row), hasPermi:'qms:inspection-recode-main:edit'}), // 使
// defaultButtons.mainListDeleteBtn(null), // // defaultButtons.mainListDeleteBtn(null), //
defaultButtons.mainListOrderPubBtn({ hide: isShowPublishedButton(row,'pub'), hasPermi:'qms:inspection-recode-main:pub'}), // defaultButtons.mainListOrderPubBtn({ hide: row.isPublished, hasPermi:'qms:inspection-recode-main:pub'}), //
defaultButtons.mainListPackageBtn(null), // defaultButtons.mainListPackageBtn(null), //
] ]
} }

Loading…
Cancel
Save