From 341c765c73cbb6b6617c02611a96e1ffcc7adb76 Mon Sep 17 00:00:00 2001 From: "X1627315083@163.com" <1627315083@qq.com> Date: Wed, 25 Feb 2026 13:36:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DgetMoudel=E5=90=8E=E7=9B=B4?= =?UTF-8?q?=E6=8E=A5=E6=89=93=E5=BC=80detail=E5=8D=B0=E8=8A=B1=E8=A1=A3?= =?UTF-8?q?=E6=9C=8D=E6=B2=A1=E6=9C=89=E7=B1=BB=E5=9E=8B=E6=88=91=E5=91=A2?= =?UTF-8?q?=E6=8F=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Detail/detailLeft/module/currentList.vue | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/src/component/Detail/detailLeft/module/currentList.vue b/src/component/Detail/detailLeft/module/currentList.vue index 7db5d06d..66b2e5a4 100644 --- a/src/component/Detail/detailLeft/module/currentList.vue +++ b/src/component/Detail/detailLeft/module/currentList.vue @@ -40,11 +40,29 @@ export default defineComponent({ setup(props,{emit}) { const {t} = useI18n(); const store = useStore(); + const updateCatecory = (arr)=>{ + arr.forEach((v:any) => { + if(props.catecoryList)props.catecoryList.forEach((item:any) => { + if(v.level2Type == item.value && !v.category){ + v.category=item.name + v.categoryValue=item.value + } + }) + }); + } const detailData = reactive({ allBoardData:computed(()=>store.state.UploadFilesModule.allBoardData), currentList:{ - sketch:computed(()=>store.state.UploadFilesModule.allBoardData.sketchboardFiles), - print:computed(()=>store.state.UploadFilesModule.allBoardData.printboardFiles), + sketch:computed(()=>{ + let sketch = store.state.UploadFilesModule.allBoardData.sketchboardFiles + updateCatecory(sketch) + return sketch + }), + print:computed(()=>{ + let print = store.state.UploadFilesModule.allBoardData.printboardFiles + updateCatecory(print) + return print + }), color:computed(()=>store.state.UploadFilesModule.allBoardData.colorBoards), models:computed(()=>store.state.Workspace.probjects.model), },