Merge branch 'dev' into feature/dev-yj

This commit is contained in:
yjnoh 2025-04-24 10:27:42 +09:00
commit 49d85d437b
7 changed files with 12 additions and 8 deletions

View File

@ -58,6 +58,7 @@ export default async function RootLayout({ children }) {
pwdInitYn: session.pwdInitYn, pwdInitYn: session.pwdInitYn,
custCd: session.custCd, custCd: session.custCd,
isLoggedIn: session.isLoggedIn, isLoggedIn: session.isLoggedIn,
builderNo: session.builderNo
} }
} }
if (!headerPathname.includes('/login') && !session.isLoggedIn) { if (!headerPathname.includes('/login') && !session.isLoggedIn) {

View File

@ -40,15 +40,15 @@ export default function AuxiliaryEdit(props) {
if (currentObject) { if (currentObject) {
copy( copy(
currentObject, currentObject,
arrow2 ? (arrow2 === '←' ? Number(horizonSize) * -1 : Number(horizonSize)) : 0, arrow2 ? (arrow2 === '←' ? Number(+horizonSize / 10) * -1 : Number(+horizonSize / 10)) : 0,
arrow1 ? (arrow1 === '↑' ? Number(verticalSize) * -1 : Number(verticalSize)) : 0, arrow1 ? (arrow1 === '↑' ? Number(+verticalSize / 10) * -1 : Number(+verticalSize / 10)) : 0,
) )
} }
} else { } else {
move( move(
currentObject, currentObject,
arrow2 ? (arrow2 === '←' ? Number(horizonSize) * -1 : Number(horizonSize)) : 0, arrow2 ? (arrow2 === '←' ? Number(+horizonSize / 10) * -1 : Number(+horizonSize / 10)) : 0,
arrow1 ? (arrow1 === '↑' ? Number(verticalSize) * -1 : Number(verticalSize)) : 0, arrow1 ? (arrow1 === '↑' ? Number(+verticalSize / 10) * -1 : Number(+verticalSize / 10)) : 0,
) )
} }

View File

@ -238,6 +238,8 @@ export default function Stuff() {
schSortType: stuffSearchParams.schSortType, schSortType: stuffSearchParams.schSortType,
pageNo: stuffSearchParams?.pageNo ? stuffSearchParams.pageNo : 1, pageNo: stuffSearchParams?.pageNo ? stuffSearchParams.pageNo : 1,
pageSize: stuffSearchParams?.pageSize ? stuffSearchParams.pageSize : 100, pageSize: stuffSearchParams?.pageSize ? stuffSearchParams.pageSize : 100,
builderNo: session.builderNo,
userId: session.userId
} }
if (!params.saleStoreId) { if (!params.saleStoreId) {

View File

@ -27,7 +27,7 @@ export const useMainContentsController = () => {
*/ */
const fetchObjectList = async () => { const fetchObjectList = async () => {
try { try {
const apiUrl = `/api/main-page/object/${session?.storeId}/list` const apiUrl = `/api/main-page/object/${session?.storeId}/${session?.userId}/${session?.builderNo}/list`
await promiseGet({ await promiseGet({
url: apiUrl, url: apiUrl,
}).then((res) => { }).then((res) => {

View File

@ -53,8 +53,8 @@ export const useLine = () => {
}) })
canvas canvas
?.getObjects() ?.getObjects()
.find((obj) => obj.parentId === line.id) ?.find((obj) => obj.parentId === line.id)
.set({ ?.set({
visible: true, visible: true,
}) })
canvas?.renderAll() canvas?.renderAll()

View File

@ -48,6 +48,7 @@ export async function setSession(data) {
session.pwdInitYn = data.pwdInitYn session.pwdInitYn = data.pwdInitYn
session.custCd = data.custCd session.custCd = data.custCd
session.isLoggedIn = true session.isLoggedIn = true
session.builderNo = data.builderNo
await session.save() await session.save()
} }

View File

@ -3527,7 +3527,7 @@ export const calcLinePlaneSize = (points) => {
* @param degree * @param degree
* @returns number * @returns number
*/ */
export const calcLineActualSize = (points, degree) => { export const calcLineActualSize = (points, degree = 0) => {
const { x1, y1, x2, y2 } = points const { x1, y1, x2, y2 } = points
const planeSize = calcLinePlaneSize(points) const planeSize = calcLinePlaneSize(points)
let height = Big(Math.tan(Big(degree).times(Math.PI / 180))).times(planeSize) let height = Big(Math.tan(Big(degree).times(Math.PI / 180))).times(planeSize)