From 56ab918120cbc507d6f7fdb885d8f0f7185bc03a Mon Sep 17 00:00:00 2001 From: X1627315083 <1627315083@qq.com> Date: Mon, 6 Oct 2025 12:04:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E6=89=93=E5=BC=80detail?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE=E4=BF=A1=E6=81=AF=E4=B8=8D=E5=AF=B9=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/component/Detail/detailLeft/module/uploadList.vue | 1 + src/component/Detail/model/modelPosition.vue | 3 ++- src/views/HomeMain.vue | 8 ++++---- 3 files changed, 7 insertions(+), 5 deletions(-) diff --git a/src/component/Detail/detailLeft/module/uploadList.vue b/src/component/Detail/detailLeft/module/uploadList.vue index 8a4764e5..da60a543 100644 --- a/src/component/Detail/detailLeft/module/uploadList.vue +++ b/src/component/Detail/detailLeft/module/uploadList.vue @@ -129,6 +129,7 @@ export default defineComponent({ file.designType = res.data.designType file.level2Type = type; + file.resData.level2Type = type; file.minIOPath = file.resData.minIOPath let fileList = detailData.uploadList.filter( (v:any) => v.status === "done" diff --git a/src/component/Detail/model/modelPosition.vue b/src/component/Detail/model/modelPosition.vue index 6d1a5025..27994e42 100644 --- a/src/component/Detail/model/modelPosition.vue +++ b/src/component/Detail/model/modelPosition.vue @@ -326,7 +326,7 @@ export default defineComponent({ } } let ratio = detailData.frontBack.body.layersObject[0].imageSize[0]/parentNode.width - + console.log(ratio,detailData.frontBack.body.layersObject[0].imageSize[0],parentNode.width) // let arr:any = sort(detailData.frontBack.front) let arr:any = sort(JSON.parse(JSON.stringify(detailData.frontBack.front))) let num = 10 @@ -346,6 +346,7 @@ export default defineComponent({ state = true let y = ((arr[index]?.style?.top.replace(/px/g,'')*ratio).toFixed(0) as any - arr[index]?.position[0]) let x = ((arr[index]?.style?.left.replace(/px/g,'')*ratio).toFixed(0) as any - arr[index]?.position[1]) + console.log(value.layersObject,x,y,ratio) let scaleWidth = arr[index]?.imageSize?Number(((arr[index]?.style?.width.replace(/px/g,'')*ratio)/(arr[index]?.imageSize[0]/arr[index].scale[0])).toFixed(2)):1 let scaleHeight = arr[index]?.imageSize?Number(((arr[index]?.style?.height.replace(/px/g,'')*ratio)/(arr[index]?.imageSize[1]/arr[index].scale[1])).toFixed(2)):1 // let widthScale = (arr[index].style.width.replace(/px/g,'')/arr[index].style.height.replace(/px/g,'')).toFixed(2) diff --git a/src/views/HomeMain.vue b/src/views/HomeMain.vue index 3588b64a..7395fc87 100644 --- a/src/views/HomeMain.vue +++ b/src/views/HomeMain.vue @@ -398,10 +398,10 @@ export default defineComponent({ homeMainData.openType = Object.keys(query)[0] homeMainData.openTypeChild = query[Object.keys(query)[0]] } - if((query?.id || query?.history) && !await getIdExistToHistory()){ - router.push('/home') - return - } + // if((query?.id || query?.history) && !await getIdExistToHistory()){ + // router.push('/home') + // return + // } }else{ homeMainData.openType = '' homeMainData.openTypeChild = ''