|
|
@ -238,15 +238,6 @@ const isShowMainButton3 = (row) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton2 = (row, val) => { |
|
|
|
if (val.indexOf(row.isStaging) > -1) { |
|
|
|
return false |
|
|
|
} else { |
|
|
|
return true |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
// 根据状态返回该按钮是否显示 |
|
|
|
const isShowMainButton1 = (row, val) => { |
|
|
|
if (val.indexOf(row.status) > -1) { |
|
|
@ -278,10 +269,6 @@ const butttondata = (row) => { |
|
|
|
hide: isShowMainButton(row, ['1', '2']), |
|
|
|
hasPermi: 'qms:inspection-job-main:execute' |
|
|
|
}), // 执行 |
|
|
|
defaultButtons.mainListOrderPubBtn({ |
|
|
|
hide: isShowMainButton2(row, ['TRUE']), |
|
|
|
hasPermi: 'qms:inspection-job-main:execute' |
|
|
|
}), // 发布 |
|
|
|
defaultButtons.mainListPackageBtn(null), // 包装 |
|
|
|
defaultButtons.mainListPlanCheckQualityReportBtn({ |
|
|
|
hide: isShowMainButton3(row) |
|
|
|