Browse Source

检验记录编辑显示还是隐藏

hella_online_20240829
zhang_li 2 months ago
parent
commit
f2e217064c
  1. 10
      src/views/qms/inspectionRecord/index.vue

10
src/views/qms/inspectionRecord/index.vue

@ -160,7 +160,13 @@ const buttonBaseClick = (val, item) => {
return val ? true : false return val ? true : false
} }
} }
const isShowEditBtn = (row, val) => {
if (val.indexOf(row.inspectionType) > -1) {
return true
} else {
return row.useDecision
}
}
// - // -
const butttondata = (row) => { const butttondata = (row) => {
return [ return [
@ -173,7 +179,7 @@ const buttonBaseClick = (val, item) => {
// hide:row.useDecision, // hide:row.useDecision,
// hasPermi: 'qms:inspection-recode-main:execute', // hasPermi: 'qms:inspection-recode-main:execute',
// }), // // }), //
defaultButtons.mainListEditBtn({ hide:row.useDecision }), // defaultButtons.mainListEditBtn({ hide:isShowEditBtn(row,['11'])}), //
] ]
} }

Loading…
Cancel
Save