修复bug
This commit is contained in:
@@ -96,7 +96,7 @@
|
||||
<img crossOrigin="anonymous" :src="item?.path" :style="{transform:`rotateZ(${printStyleList[stateOverallSingle][index]?.transform?.rotateZ}deg)`}" class="designOpenrtion_imgItme" draggable="false">
|
||||
</div>
|
||||
</div>
|
||||
<img v-lazy="operationCurrent.undividedLayer || operationCurrent.path" alt="" class="designOpenrtion_sketch">
|
||||
<img v-lazy="operationCurrent?.undividedLayer?operationCurrent.undividedLayer:operationCurrent.path" alt="" class="designOpenrtion_sketch">
|
||||
<div class="designOpenrtion_btn">
|
||||
<ul v-if="overallSingle" v-for="item,index in printStyleList[stateOverallSingle]" :key="item" :class="{active:item?.designOpenrtionBtn?item?.designOpenrtionBtn:false}" class="designOpenrtion_Mousingle" :style="item.style" @mousedown.stop="itemMoveMousedown(index,$event)">
|
||||
<li class="designOpenrtion_btn_top" @mousedown.stop="itemSizeMousedown('top',$event)"></li>
|
||||
@@ -383,6 +383,7 @@ export default defineComponent({
|
||||
this.printStyleList[this.stateOverallSingle].forEach((v)=>{
|
||||
v.designOpenrtionBtn = false
|
||||
})
|
||||
this.currentPrintStyleList.id = item.id
|
||||
if(!this.overallSingle){
|
||||
if(item.checked){
|
||||
this.imgDomIndex = 0
|
||||
@@ -402,6 +403,7 @@ export default defineComponent({
|
||||
this.refetchTemplate(0,true)
|
||||
this.exhibitionOpenrtionList[this.stateOverallSingle][0] = {
|
||||
angle:0,
|
||||
id:item.id,
|
||||
designType:item.designType,
|
||||
level2Type:item.level2Type,
|
||||
minIOPath:item.minIOPath,
|
||||
@@ -417,6 +419,7 @@ export default defineComponent({
|
||||
let currentIndex = this.printStyleList[this.stateOverallSingle].length-1
|
||||
this.exhibitionOpenrtionList[this.stateOverallSingle].push({
|
||||
angle:0,
|
||||
id:item.id,
|
||||
designType:item.designType,
|
||||
level2Type:item.level2Type,
|
||||
minIOPath:item.minIOPath,
|
||||
@@ -604,6 +607,7 @@ export default defineComponent({
|
||||
top = sketch.offsetHeight/2-5
|
||||
}
|
||||
this.printStyleList[this.stateOverallSingle][index]={
|
||||
id:this.printStyleList[this.stateOverallSingle][index].id,
|
||||
centers:{
|
||||
left:0,
|
||||
top:0,
|
||||
@@ -644,6 +648,7 @@ export default defineComponent({
|
||||
}
|
||||
this.systemDesignerPercentage = item.scale?item.scale*100:30
|
||||
this.printStyleList[str][index]={
|
||||
id:item.id,
|
||||
centers:{
|
||||
left:0,
|
||||
top:0,
|
||||
@@ -694,29 +699,36 @@ export default defineComponent({
|
||||
}
|
||||
let scale
|
||||
let location
|
||||
console.log(this.exhibitionOpenrtionList[this.stateOverallSingle],arr);
|
||||
for (let index = 0; index < arr.length; index++) {
|
||||
if(!this.overallSingle){
|
||||
scale = this.systemDesignerPercentage/100
|
||||
// location = [arr[index].style.left.replace(/px/g,'')*sketchNum+this.print.width.replace(/px/g,'')/2-7,arr[index].style.top.replace(/px/g,'')*sketchNum+this.print.height.replace(/px/g,'')/2-7]
|
||||
location = [arr[index].style.left.replace(/px/g,'')*sketchNum,arr[index].style.top.replace(/px/g,'')*sketchNum]
|
||||
}else{
|
||||
await this.setPrintWH(this.exhibitionOpenrtionList[this.stateOverallSingle][index].path)
|
||||
scale = (arr[index].style.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
|
||||
location = [arr[index].style.left.replace(/px/g,'')*sketchNum,arr[index].style.top.replace(/px/g,'')*sketchNum]
|
||||
for (let i = 0; i < this.exhibitionOpenrtionList[this.stateOverallSingle].length; i++) {
|
||||
if(this.exhibitionOpenrtionList[this.stateOverallSingle][i].id == arr[index].id){
|
||||
if(!this.overallSingle){
|
||||
scale = this.systemDesignerPercentage/100
|
||||
// location = [arr[index].style.left.replace(/px/g,'')*sketchNum+this.print.width.replace(/px/g,'')/2-7,arr[index].style.top.replace(/px/g,'')*sketchNum+this.print.height.replace(/px/g,'')/2-7]
|
||||
location = [arr[index].style.left.replace(/px/g,'')*sketchNum,arr[index].style.top.replace(/px/g,'')*sketchNum]
|
||||
}else{
|
||||
await this.setPrintWH(this.exhibitionOpenrtionList[this.stateOverallSingle][index].path)
|
||||
scale = (arr[index].style.width.replace(/px/g,'')*sketchNum/this.print.width.replace(/px/g,''))
|
||||
location = [arr[index].style.left.replace(/px/g,'')*sketchNum,arr[index].style.top.replace(/px/g,'')*sketchNum]
|
||||
}
|
||||
let obj = {
|
||||
angle : arr[index].transform.rotateZ,
|
||||
// angle : !this.overallSingle ? 0:arr[index].transform.rotateZ,
|
||||
location : location,
|
||||
priority:arr[index].style.zIndex,
|
||||
scale: scale,
|
||||
designType:this.exhibitionOpenrtionList[this.stateOverallSingle][index].designType,
|
||||
level2Type:this.exhibitionOpenrtionList[this.stateOverallSingle][index].level2Type,
|
||||
path:this.exhibitionOpenrtionList[this.stateOverallSingle][index].path,
|
||||
minIOPath:this.exhibitionOpenrtionList[this.stateOverallSingle][index].minIOPath,
|
||||
ifSingle:!!this.exhibitionOpenrtionList[this.stateOverallSingle][index].ifSingle,
|
||||
}
|
||||
prints.push(obj)
|
||||
}
|
||||
}
|
||||
let obj = {
|
||||
angle : arr[index].transform.rotateZ,
|
||||
// angle : !this.overallSingle ? 0:arr[index].transform.rotateZ,
|
||||
location : location,
|
||||
priority:arr[index].style.zIndex,
|
||||
scale: scale,
|
||||
designType:this.exhibitionOpenrtionList[this.stateOverallSingle][index].designType,
|
||||
level2Type:this.exhibitionOpenrtionList[this.stateOverallSingle][index].level2Type,
|
||||
path:this.exhibitionOpenrtionList[this.stateOverallSingle][index].path,
|
||||
minIOPath:this.exhibitionOpenrtionList[this.stateOverallSingle][index].minIOPath,
|
||||
ifSingle:!!this.exhibitionOpenrtionList[this.stateOverallSingle][index].ifSingle,
|
||||
}
|
||||
prints.push(obj)
|
||||
|
||||
|
||||
}
|
||||
this.computeZindex(resolve,prints)
|
||||
})
|
||||
@@ -779,6 +791,7 @@ export default defineComponent({
|
||||
designItemDetail.currentFullBodyView = this.designItemDetailTS.rv.currentFullBodyView
|
||||
designItemDetail.clothes[index].printObject.ifSingle = this.overallSingle
|
||||
designItemDetail.clothes[index].layersObject = this.designItemDetailTS.rv.clothes[index].layersObject
|
||||
designItemDetail.clothes[index].undividedLayer = this.designItemDetailTS.rv.clothes[index].undividedLayer
|
||||
designItemDetail.clothes[index].trims = this.designItemDetailTS.rv.clothes[index].trims
|
||||
designItemDetail.clothes[index].printObject.prints = this.setOkData
|
||||
designItemDetail.ifSubmit = true
|
||||
|
||||
Reference in New Issue
Block a user