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