🎈 perf(剪样枚举): 完善后端剪样枚举

This commit is contained in:
xuan
2023-02-20 16:21:36 +08:00
parent 73af0edad2
commit 5eff74a9a1
3 changed files with 8 additions and 14 deletions
@@ -60,17 +60,11 @@ const SelectSampleCuttingStatus = (props: SelectSaleTypeProps, ref) => {
<View className={styles.tab_bar}>
{!!enumList.length
&& enumList.map((item: EnumList, key) => {
// 5 申请中 6 已完成
if ([5, 6, 0].includes(item.id)) {
return (
<FilterButton round customClassName={styles.button} key={key} size="small" isActive={item.id === currentValue} onClick={() => handleClick(item.id)}>
{item.name}
</FilterButton>
)
}
else {
return null
}
return (
<FilterButton round customClassName={styles.button} key={key} size="small" isActive={item.id === currentValue} onClick={() => handleClick(item.id)}>
{item.name}
</FilterButton>
)
})}
</View>
)