Browse Source

修改按钮权限

master_hella_20240701
liuchen864 8 months ago
parent
commit
0a8f51e5df
  1. 16
      src/views/qms/inspection/inspectionRecord/index.vue

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

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

Loading…
Cancel
Save