This commit is contained in:
X1627315083
2026-01-21 09:43:26 +08:00
parent a78056c898
commit b10fd72008
3 changed files with 10 additions and 10 deletions

View File

@@ -18,7 +18,7 @@
:clothing-image-opts="{ :clothing-image-opts="{
imageMode:'contains', imageMode:'contains',
}" }"
:hideCanvas="hideCanvas" :hideCanvas="hideCanvas && !isEditPattern"
ref="editCanvas"> ref="editCanvas">
</editCanvas> </editCanvas>
<!-- <canvasContent ref="canvasContent"></canvasContent> --> <!-- <canvasContent ref="canvasContent"></canvasContent> -->
@@ -34,7 +34,7 @@
:clothing-image-opts="{ :clothing-image-opts="{
imageMode:'contains', imageMode:'contains',
}" }"
:hideCanvas="hideCanvas" :hideCanvas="hideCanvas && !isEditPattern"
ref="editCanvasBackFront"> ref="editCanvasBackFront">
</editCanvas> </editCanvas>
</div> </div>
@@ -117,7 +117,7 @@ export default defineComponent({
getCanvasIfEdit:inject('getCanvasIfEdit')as any, getCanvasIfEdit:inject('getCanvasIfEdit')as any,
canvasInstance:null as any, canvasInstance:null as any,
canvasJSON:'', canvasJSON:'',
hideCanvas: computed(()=>(store.state.Workspace.projectPath !== route.fullPath && props.isEditPattern)), hideCanvas: computed(()=>(store.state.Workspace.projectPath !== route.fullPath)),
otherData:computed(()=>({ otherData:computed(()=>({
canvasId: store.state.DesignDetail.selectDetail.canvasId, canvasId: store.state.DesignDetail.selectDetail.canvasId,
color: store.state.DesignDetail.selectDetail.color, color: store.state.DesignDetail.selectDetail.color,
@@ -340,7 +340,6 @@ export default defineComponent({
const canvasLoadJsonSuccess = async ()=>{ const canvasLoadJsonSuccess = async ()=>{
let otherData = await props.updateOtherLayers() let otherData = await props.updateOtherLayers()
await updateOtherLayers(otherData) await updateOtherLayers(otherData)
if(detailData.changeSketchUpdateFrontBack){ if(detailData.changeSketchUpdateFrontBack){
await detailData.changeSketchUpdateFrontBack() await detailData.changeSketchUpdateFrontBack()
detailData.changeSketchUpdateFrontBack = null detailData.changeSketchUpdateFrontBack = null

View File

@@ -102,6 +102,7 @@ export default defineComponent({
} }
}).then((rv)=>{ }).then((rv)=>{
if(rv)store.commit('DesignDetail/setDesignColthes',item.id) if(rv)store.commit('DesignDetail/setDesignColthes',item.id)
console.log(JSON.parse(JSON.stringify(item)),'==========')
}) })
} }
const deleteDetailItem = (id:number)=>{ const deleteDetailItem = (id:number)=>{

View File

@@ -175,12 +175,12 @@ const DesignDetail : Module<DesignDetail,RootState> = {
state.designDetail.clothes.forEach((item:any) => { state.designDetail.clothes.forEach((item:any) => {
if(item.id == data){ if(item.id == data){
state.selectDetail = item state.selectDetail = item
state.frontBack.front.forEach((v:any,index:any)=>{ // state.frontBack.front.forEach((v:any,index:any)=>{
v.designOpenrtionBtn = false // v.designOpenrtionBtn = false
if(v.id == data){ // if(v.id == data){
v.designOpenrtionBtn = true // v.designOpenrtionBtn = true
} // }
}) // })
} }
}); });
}, },