|
|
@ -541,18 +541,28 @@ |
|
|
|
}, |
|
|
|
delSid(delSid){ |
|
|
|
let newVarImg=[] |
|
|
|
let newImgss=[] |
|
|
|
this.ImgSid.forEach(function check(value) { |
|
|
|
if(value.sid != delSid.sid) { |
|
|
|
if(value.shSid != delSid.shSid ) { |
|
|
|
newVarImg.push(value); |
|
|
|
} |
|
|
|
if(value.sid != delSid.sid){ |
|
|
|
newImgss.push(value); |
|
|
|
} |
|
|
|
}) |
|
|
|
this.ImgSid=newVarImg |
|
|
|
console.log(this.ImgSid); |
|
|
|
let newImg=newVarImg.concat(newImgss); |
|
|
|
this.ImgSid=[...new Set(newImg)]; |
|
|
|
var ARRSid=[] |
|
|
|
var aRRsid=[] |
|
|
|
if(this.ImgSid.length>0){ |
|
|
|
for(var i=0;i<this.ImgSid.length;i++){ |
|
|
|
ARRSid.push(this.ImgSid[i].sid) |
|
|
|
this.formobj.storeHouseProjectDto.shSids=ARRSid |
|
|
|
if(this.ImgSid[i].simpleName){ |
|
|
|
aRRsid.push(this.ImgSid[i].sid) |
|
|
|
}else{ |
|
|
|
ARRSid.push(this.ImgSid[i].shSid) |
|
|
|
} |
|
|
|
let newSid=ARRSid.concat(aRRsid); |
|
|
|
this.formobj.storeHouseProjectDto.shSids=[...new Set(newSid)]; |
|
|
|
} |
|
|
|
}else{ |
|
|
|
this.formobj.storeHouseProjectDto.shSids=[] |
|
|
@ -636,7 +646,7 @@ |
|
|
|
if (res.success) { |
|
|
|
this.ImgSid=res.data |
|
|
|
for(let i=0;i<this.ImgSid.length;i++){ |
|
|
|
this.getImgsid.push(this.ImgSid[i].sid) |
|
|
|
this.getImgsid.push(this.ImgSid[i].shSid) |
|
|
|
} |
|
|
|
} |
|
|
|
}) |
|
|
@ -649,12 +659,11 @@ |
|
|
|
}, |
|
|
|
guanlianSid(){ |
|
|
|
let val=this.ValSid |
|
|
|
console.log(val); |
|
|
|
for(let i=0;i<val.length;i++){ |
|
|
|
this.ARRSid.push(val[i].sid) |
|
|
|
} |
|
|
|
var oldArr = [...new Set(this.ARRSid)]; |
|
|
|
if(this.ImgSid){ |
|
|
|
if(this.ImgSid.length>0){ |
|
|
|
let newArr =this.getImgsid.concat(oldArr); |
|
|
|
let newImg=this.ImgSid.concat(this.ValSid); |
|
|
|
this.ImgSid=[...new Set(newImg)]; |
|
|
@ -663,6 +672,7 @@ |
|
|
|
this.ImgSid=[...new Set(this.ValSid )] |
|
|
|
this.formobj.storeHouseProjectDto.shSids=oldArr |
|
|
|
} |
|
|
|
console.log(this.ImgSid) |
|
|
|
this.drawer=false |
|
|
|
this.$refs.multipleTable.clearSelection(); |
|
|
|
}, |
|
|
|