Merge pull request 'dev' (#416) from dev into prd-deploy
Reviewed-on: #416
This commit is contained in:
commit
82e4b2d305
@ -270,9 +270,9 @@ export default function Simulator() {
|
|||||||
setPwrGnrSimType(e.target.value)
|
setPwrGnrSimType(e.target.value)
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
<option value={`A`}>積雪考慮なし(ピークカットなし発電量)</option>
|
{/*<option value={`A`}>積雪考慮なし(ピークカットなし発電量)</option>*/}
|
||||||
<option value={`B`}>積雪考慮なし(ピークカットあり発電量)</option>
|
<option value={`B`}>積雪考慮なし(ピークカットあり発電量)</option>
|
||||||
<option value={`C`}>積雪考慮あり(ピークカットなし発電量)</option>
|
{/*<option value={`C`}>積雪考慮あり(ピークカットなし発電量)</option>*/}
|
||||||
<option value={`D`}>積雪考慮あり(ピークカットあり発電量)</option>
|
<option value={`D`}>積雪考慮あり(ピークカットあり発電量)</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -743,7 +743,19 @@ export const useTrestle = () => {
|
|||||||
if (!data || data.length === 0) {
|
if (!data || data.length === 0) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
itemList = data
|
//itemList = data
|
||||||
|
// itemList에 northModuleYn 추가
|
||||||
|
itemList = data.map(item => {
|
||||||
|
if (item.itemTpCd === "MODULE") {
|
||||||
|
const matchedModule = modules.find(module => module.moduleItemId === item.itemId);
|
||||||
|
return {
|
||||||
|
...item,
|
||||||
|
northModuleYn: matchedModule?.northModuleYn || 'N'
|
||||||
|
};
|
||||||
|
}
|
||||||
|
return item;
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
//northArrangement 북면 설치 여부
|
//northArrangement 북면 설치 여부
|
||||||
const northArrangement = getNorthArrangement()
|
const northArrangement = getNorthArrangement()
|
||||||
@ -2586,6 +2598,7 @@ export const useTrestle = () => {
|
|||||||
return {
|
return {
|
||||||
moduleTpCd: module.moduleInfo.itemTp,
|
moduleTpCd: module.moduleInfo.itemTp,
|
||||||
moduleItemId: module.moduleInfo.itemId,
|
moduleItemId: module.moduleInfo.itemId,
|
||||||
|
northModuleYn: module?.moduleInfo?.northModuleYn || 'N' // 기본값 'N'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
@ -2597,6 +2610,7 @@ export const useTrestle = () => {
|
|||||||
moduleTpCd: cur.moduleTpCd,
|
moduleTpCd: cur.moduleTpCd,
|
||||||
moduleItemId: cur.moduleItemId,
|
moduleItemId: cur.moduleItemId,
|
||||||
cnt: 0,
|
cnt: 0,
|
||||||
|
northModuleYn: cur.northModuleYn
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
acc[key].cnt++
|
acc[key].cnt++
|
||||||
@ -2609,6 +2623,11 @@ export const useTrestle = () => {
|
|||||||
moduleTpCd: groupedParam.moduleTpCd,
|
moduleTpCd: groupedParam.moduleTpCd,
|
||||||
moduleItemId: groupedParam.moduleItemId,
|
moduleItemId: groupedParam.moduleItemId,
|
||||||
moduleCnt: groupedParam.cnt,
|
moduleCnt: groupedParam.cnt,
|
||||||
|
northModuleYn: groupedParam.northModuleYn
|
||||||
|
// northModuleYn: params.find(p =>
|
||||||
|
// p.moduleTpCd === groupedParam.moduleTpCd &&
|
||||||
|
// p.moduleItemId === groupedParam.moduleItemId
|
||||||
|
// )?.northModuleYn || 'N'
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1809,6 +1809,7 @@ export function useMode() {
|
|||||||
const currentWall = line.currentWall
|
const currentWall = line.currentWall
|
||||||
const nextWall = line.nextWall
|
const nextWall = line.nextWall
|
||||||
const index = line.index + addPoint
|
const index = line.index + addPoint
|
||||||
|
const direction = currentWall.direction
|
||||||
const xDiff = Big(currentWall.x1).minus(Big(nextWall.x1))
|
const xDiff = Big(currentWall.x1).minus(Big(nextWall.x1))
|
||||||
const yDiff = Big(currentWall.y1).minus(Big(nextWall.y1))
|
const yDiff = Big(currentWall.y1).minus(Big(nextWall.y1))
|
||||||
const offsetCurrentPoint = offsetPolygon[index]
|
const offsetCurrentPoint = offsetPolygon[index]
|
||||||
@ -1820,12 +1821,10 @@ export function useMode() {
|
|||||||
x: xDiff.eq(0) ? offsetCurrentPoint.x : nextWall.x1,
|
x: xDiff.eq(0) ? offsetCurrentPoint.x : nextWall.x1,
|
||||||
y: yDiff.eq(0) ? offsetCurrentPoint.y : nextWall.y1,
|
y: yDiff.eq(0) ? offsetCurrentPoint.y : nextWall.y1,
|
||||||
}
|
}
|
||||||
let diffOffset
|
|
||||||
if (nextWall.index > currentWall.index) {
|
let diffOffset = ['top', 'right'].includes(direction)
|
||||||
diffOffset = Big(nextWall.attributes.offset).minus(Big(currentWall.attributes.offset)).abs()
|
? Big(nextWall.attributes.offset).minus(Big(currentWall.attributes.offset))
|
||||||
} else {
|
: Big(currentWall.attributes.offset).minus(Big(nextWall.attributes.offset))
|
||||||
diffOffset = Big(currentWall.attributes.offset).minus(Big(nextWall.attributes.offset))
|
|
||||||
}
|
|
||||||
|
|
||||||
const offsetPoint2 = {
|
const offsetPoint2 = {
|
||||||
x: yDiff.eq(0) ? offsetPoint1.x : Big(offsetPoint1.x).plus(diffOffset).toNumber(),
|
x: yDiff.eq(0) ? offsetPoint1.x : Big(offsetPoint1.x).plus(diffOffset).toNumber(),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user