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) => {
if(val){
if(row.useDecision){
return false
}else{
const isShowPublishedButton = (row, val) => {
if(row.useDecision) {
return row.isPublished
} else {
return true
}
}else{
return !row.isPublished
}
}
// -
const butttondata = (row) => {
return [
// 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.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), //
]
}

Loading…
Cancel
Save