Browse Source

修改按钮权限

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

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

@ -112,15 +112,11 @@
}
//
const isShowMainButton = (row, val) => {
if(val){
if(row.useDecision){
return false
}else{
return true
}
}else{
return !row.isPublished
const isShowPublishedButton = (row, val) => {
if(row.useDecision) {
return row.isPublished
} else {
return true
}
}
@ -128,9 +124,9 @@
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