Browse Source

修改bug

master_hella_20240701
liuchen864 7 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) => {
console.log(row.isPublished)
const isShowMainButton = (row, val) => {
if(row.useDecision) {
return row.isPublished
} else {
return false
return val ? true : false
}
}
@ -124,9 +123,9 @@
const butttondata = (row) => {
return [
// 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.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), //
]
}

Loading…
Cancel
Save