This commit is contained in:
X1627315083
2023-12-22 17:33:53 +08:00
parent 15d0b78a0f
commit 66a104c74f
4 changed files with 30 additions and 17 deletions

View File

@@ -661,6 +661,10 @@ export default defineComponent({
item.categoryShow = false;
}
this.setSketchLibrary(file)
let DesignDetailEnd = this.$refs.DesignDetailEnd
if(DesignDetailEnd.sketchImg.id == file.id){
this.selectImgItem(file)
}
},
hiddenFileCategory() {
for (let item of this.clothesList) {

View File

@@ -57,7 +57,7 @@
</div>
</div>
<div class="result_apparel_print_img">
<img v-show="type_==1" class="result_appare_img" :src="sketchImg?.id_?sketchImg?.path:current?.path" :title="current?.type">
<img v-show="type_==1" class="result_appare_img" :src="sketchImg?.path?sketchImg?.path:current?.path" :title="current?.type">
<!-- <img v-show="type_==2" class="result_print_img" :src="current?.path" :title="current?.type" @click="setPrint"> -->
<div v-show="type_==2" class="result_print_img" @click="setPrint" :title="current?.type">
<img v-for="item in current.layersObject" :src="item.imageUrl" alt="">
@@ -173,6 +173,7 @@ export default defineComponent({
//模型
setSketchImg(v){
this.sketchImg.id_ = v.id
this.sketchImg.id = v.id
this.sketchImg.path = v.url
this.sketchImg.minIOPath = v.minIOPath
this.sketchImg.type = v.level2Type
@@ -250,7 +251,7 @@ export default defineComponent({
},
soleId(arr,index){
let randomNum = Math.floor(100 + Math.random() * 900);
arr[index].id = this.sketchImg.id_? Number(this.sketchImg.id_+(randomNum+"")):this.current.id_
arr[index].id = this.sketchImg.id_? Number(this.sketchImg.id_+(randomNum+"")):this.current.id
if(this.hasDuplicateId(arr)){
this.soleId(arr,index)
}else{
@@ -285,6 +286,7 @@ export default defineComponent({
data.designSingleItemDTOList[index].scale = 1
}
data.designSingleItemDTOList = this.soleId(data.designSingleItemDTOList,index)
console.log(this.sketchImg);
this.sketchImg.id_ = data.designSingleItemDTOList[index].id
data.designSingleItemDTOList[index].path =this.sketchImg.minIOPath? this.sketchImg.minIOPath: this.current.minIOPath
data.designSingleItemDTOList[index].type =this.sketchImg.type? this.sketchImg.type: this.current.type
@@ -299,7 +301,7 @@ export default defineComponent({
let color = `${this.$parent.selectColor.rgba.r} ${this.$parent.selectColor.rgba.g} ${this.$parent.selectColor.rgba.b}`
data.designSingleItemDTOList[index].color = color
}
console.log(data);
data.timeZone = Intl.DateTimeFormat().resolvedOptions().timeZone
this.loadingShow = true
Https.axiosPost(Https.httpUrls.designSingle, data).then(