feature/ysCha #23
@ -248,16 +248,22 @@ export function useRoofAllocationSetting(id) {
|
|||||||
swalFire({ type: 'alert', icon: 'error', text: getMessage('roof.exceed.count') })
|
swalFire({ type: 'alert', icon: 'error', text: getMessage('roof.exceed.count') })
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
setCurrentRoofList([
|
|
||||||
...currentRoofList,
|
const originCurrentRoofList = currentRoofList.map((roof) => {
|
||||||
{
|
return {
|
||||||
...currentRoofMaterial,
|
...roof,
|
||||||
selected: false,
|
selected: false,
|
||||||
id: currentRoofMaterial.roofMatlCd,
|
}
|
||||||
name: currentRoofMaterial.roofMatlNm,
|
})
|
||||||
index: currentRoofList.length,
|
originCurrentRoofList.push({
|
||||||
},
|
...currentRoofMaterial,
|
||||||
])
|
selected: true,
|
||||||
|
id: currentRoofMaterial.roofMatlCd,
|
||||||
|
name: currentRoofMaterial.roofMatlNm,
|
||||||
|
index: currentRoofList.length,
|
||||||
|
})
|
||||||
|
|
||||||
|
setCurrentRoofList(originCurrentRoofList)
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user