2023-11-8-dist

This commit is contained in:
X1627315083
2023-11-08 13:01:45 +08:00
parent 840a1aa82b
commit b596631b32
28 changed files with 88 additions and 51 deletions

View File

@@ -230,7 +230,7 @@ export default defineComponent({
},
designDetailShow:{
handler: function(newval) {
this.removeRevocation()
// this.removeRevocation()
}
}
},
@@ -319,8 +319,8 @@ export default defineComponent({
item.printObject.prints = [{}]
}
})
this.store.commit('setDesignItemDetail',rv)
this.removeRevocation()
this.setRevocation(rv,'')
if(rv.others[0].layersObject.length != 0){
this.body = false
@@ -441,9 +441,9 @@ export default defineComponent({
setRevocation(designItemDetail:any,data:any){//设置撤销
let itemDetail = JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designItemDetail))
// let data = JSON.parse(JSON.stringify(this.store.state.DesignDetailModule.designPreviewData))
let revocation = JSON.parse((sessionStorage.getItem("revocation") as any))
let revocation:any = JSON.parse((sessionStorage.getItem("revocation") as any))
let oppositeRevocation = JSON.parse((sessionStorage.getItem("oppositeRevocation") as any))
if(revocation?.[0]?.designItemDetail.designItemId != itemDetail.designItemId || sessionStorage.getItem("revocation") == null){
if(revocation?.[0]?.designItemDetail.designItemId != itemDetail.designItemId || revocation?.[0]?.designItemDetail.designItemId == undefined){
// sessionStorage.setItem('revocation', JSON.stringify([]));
// sessionStorage.setItem('oppositeRevocation',JSON.stringify([]));
revocation = []
@@ -453,6 +453,7 @@ export default defineComponent({
data:data?data:''
}
revocation.push(detail)
this.revocationShow = revocation?.length
this.oppositeRevocationShow = 0
sessionStorage.setItem('revocation', JSON.stringify(revocation));