Browse Source

修改bug

master_hella_20240701
liuchen864 8 months ago
parent
commit
acfb95a2b3
  1. 9
      src/views/qms/inspection/inspectionRecord/index.vue

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

@ -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), //
] ]
} }

Loading…
Cancel
Save