修复删除线稿展示图片没有更新问题
This commit is contained in:
@@ -259,6 +259,10 @@ export default defineComponent({
|
||||
if(newVal.clothes.length == 0){
|
||||
this.current = ''
|
||||
}else{
|
||||
if(newVal.clothes.length-1 < this.currentIndex){
|
||||
this.currentIndex = newVal.clothes.length-1
|
||||
|
||||
}
|
||||
this.current = JSON?.parse(JSON?.stringify(designItemDetail?.clothes?.[this?.currentIndex]))
|
||||
}
|
||||
if(designItemDetail.others[0].layersObject.length != 0){
|
||||
@@ -541,6 +545,15 @@ export default defineComponent({
|
||||
sessionStorage.setItem('revocation', JSON.stringify(revocation));
|
||||
sessionStorage.setItem('oppositeRevocation',JSON.stringify([]));
|
||||
},
|
||||
clearSelect(){//清除选中
|
||||
this.designOrder = false
|
||||
this.designItemDetail.clothes.forEach((item:any)=>{
|
||||
item.clothesOpen = false
|
||||
})
|
||||
let DesignDetailAlter:any = this.$refs.DesignDetailAlter
|
||||
DesignDetailAlter.changePlace()
|
||||
DesignDetailAlter.terminate()
|
||||
},
|
||||
revocation(){//撤回
|
||||
let oppositeRevocation = JSON.parse((sessionStorage.getItem("oppositeRevocation") as any))
|
||||
let revocation = JSON.parse((sessionStorage.getItem("revocation") as any))
|
||||
@@ -554,6 +567,7 @@ export default defineComponent({
|
||||
this.store.commit("setDesignItemDetail", revocation[revocation.length-1].designItemDetail);
|
||||
sessionStorage.setItem('oppositeRevocation', JSON.stringify(oppositeRevocation));
|
||||
sessionStorage.setItem('revocation', JSON.stringify(revocation));
|
||||
this.clearSelect()
|
||||
},
|
||||
oppositeRevocation(){//反撤回
|
||||
let oppositeRevocation = JSON.parse((sessionStorage.getItem("oppositeRevocation") as any))
|
||||
@@ -566,6 +580,7 @@ export default defineComponent({
|
||||
this.oppositeRevocationShow = oppositeRevocation.length
|
||||
sessionStorage.setItem('oppositeRevocation', JSON.stringify(oppositeRevocation));
|
||||
sessionStorage.setItem('revocation', JSON.stringify(revocation));
|
||||
this.clearSelect()
|
||||
},
|
||||
setSubmitItem(str:any,sub:any){
|
||||
//sub判断是不是点击新增图层又直接点击删除
|
||||
|
||||
Reference in New Issue
Block a user