🎈 perf(剪样枚举): 完善后端剪样枚举
This commit is contained in:
@@ -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>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user