fix
This commit is contained in:
@@ -75,7 +75,11 @@
|
|||||||
<div>{{ $t('DesignDetail.CurrentApparel') }}</div>
|
<div>{{ $t('DesignDetail.CurrentApparel') }}</div>
|
||||||
<i class="fi fi-rr-edit" @click.stop="openCurrent(1)"></i>
|
<i class="fi fi-rr-edit" @click.stop="openCurrent(1)"></i>
|
||||||
</div>
|
</div>
|
||||||
<img :src="designItemDetail?.clothes?.[currentIndex]?.path" alt="" class="centent" @click="openCurrent(1)">
|
<div class="centent_div" v-if="designItemDetail?.clothes?.[currentIndex]?.path" @click="openCurrent(1)">
|
||||||
|
<img :src="designItemDetail?.clothes?.[currentIndex]?.path" alt="" class="" @click="openCurrent(1)">
|
||||||
|
</div>
|
||||||
|
<i v-else class="fi fi-rr-picture centent" @click="openCurrent(1)"></i>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="clothes_detail_item clothes_detail_item_print">
|
<div class="clothes_detail_item clothes_detail_item_print">
|
||||||
<div class="clothes_item_header">
|
<div class="clothes_item_header">
|
||||||
@@ -685,6 +689,8 @@ export default defineComponent({
|
|||||||
item.clothesOpen = false
|
item.clothesOpen = false
|
||||||
})
|
})
|
||||||
this.designItemDetail.clothes[index].clothesOpen = true
|
this.designItemDetail.clothes[index].clothesOpen = true
|
||||||
|
console.log(this.designItemDetail);
|
||||||
|
|
||||||
},
|
},
|
||||||
setClothesOpen(){
|
setClothesOpen(){
|
||||||
this.designItemDetail.clothes.forEach((item:any)=>{
|
this.designItemDetail.clothes.forEach((item:any)=>{
|
||||||
@@ -692,33 +698,38 @@ export default defineComponent({
|
|||||||
})
|
})
|
||||||
// console.log(designItemDetail);
|
// console.log(designItemDetail);
|
||||||
|
|
||||||
// this.current = {
|
let aa = {
|
||||||
// "id": '',
|
"id": '',
|
||||||
// "type": "Bottoms",
|
"type": "",
|
||||||
// "level1Type": null,
|
"level1Type": null,
|
||||||
// "path": "",
|
"path": "",
|
||||||
// "minIOPath": "",
|
"minIOPath": "",
|
||||||
// "color": {
|
"color": {
|
||||||
// "id": 1921,
|
"id": 1921,
|
||||||
// "name": "",
|
"name": "",
|
||||||
// "tcx": "#FFFFFF",
|
"tcx": "#FFFFFF",
|
||||||
// "r": 255,
|
"r": 255,
|
||||||
// "g": 255,
|
"g": 255,
|
||||||
// "b": 255,
|
"b": 255,
|
||||||
// "h": '',
|
"h": '',
|
||||||
// "s": '',
|
"s": '',
|
||||||
// "v": ''
|
"v": ''
|
||||||
// },
|
},
|
||||||
// "printObject": {
|
"printObject": {
|
||||||
// "ifSingle": null,
|
"ifSingle": null,
|
||||||
// "prints": [
|
"prints": [
|
||||||
// {}
|
{}
|
||||||
// ]
|
]
|
||||||
// },
|
},
|
||||||
// "layersObject": [
|
"layersObject": [
|
||||||
// ]
|
]
|
||||||
// }
|
}
|
||||||
// this.currentIndex = 3
|
this.current = aa
|
||||||
|
this.designOrder = true
|
||||||
|
let DesignDetailAlter:any = this.$refs.DesignDetailAlter
|
||||||
|
DesignDetailAlter.changePlace()
|
||||||
|
// this.designItemDetail.clothes.push(aa)
|
||||||
|
|
||||||
},
|
},
|
||||||
//元素替换
|
//元素替换
|
||||||
clothesDetail(clothes:any, index:number){
|
clothesDetail(clothes:any, index:number){
|
||||||
|
|||||||
@@ -288,6 +288,7 @@ export default defineComponent({
|
|||||||
}),
|
}),
|
||||||
upload: {
|
upload: {
|
||||||
isPin: 0,
|
isPin: 0,
|
||||||
|
gender:'',
|
||||||
level1Type: prop.msg,
|
level1Type: prop.msg,
|
||||||
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -227,6 +227,7 @@ export default defineComponent({
|
|||||||
}),
|
}),
|
||||||
upload: {
|
upload: {
|
||||||
isPin: 0,
|
isPin: 0,
|
||||||
|
gender:'',
|
||||||
level1Type: "Moodboard",
|
level1Type: "Moodboard",
|
||||||
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -457,7 +457,7 @@ export default defineComponent({
|
|||||||
);
|
);
|
||||||
this.store.commit("setSketchboardFile", fileList);
|
this.store.commit("setSketchboardFile", fileList);
|
||||||
|
|
||||||
} else if (file.status === "error") {
|
} else if (data.errCode === -1) {
|
||||||
let index = -1;
|
let index = -1;
|
||||||
this.fileList.forEach((ele: any, index1: any) => {
|
this.fileList.forEach((ele: any, index1: any) => {
|
||||||
if (file.uid === ele.uid) {
|
if (file.uid === ele.uid) {
|
||||||
@@ -556,7 +556,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
deleteFile(item: any) {
|
deleteFile(item: any) {
|
||||||
if(item.type_.type1 == 'generate' || item.type_.type1 == 'material'){
|
if(item?.type_?.type1 == 'generate' || item?.type_?.type1 == 'material'){
|
||||||
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:20})
|
item.jsContent1 = this.t('uploadFile.jsContent1',{maxImg:20})
|
||||||
this.store.commit("addGenerateMaterialFils", item);
|
this.store.commit("addGenerateMaterialFils", item);
|
||||||
}else{
|
}else{
|
||||||
|
|||||||
@@ -529,6 +529,7 @@ export default defineComponent({
|
|||||||
}),
|
}),
|
||||||
upload: {
|
upload: {
|
||||||
isPin: 0,
|
isPin: 0,
|
||||||
|
gender:'',
|
||||||
level1Type: this_.selectCode,
|
level1Type: this_.selectCode,
|
||||||
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
timeZone: Intl.DateTimeFormat().resolvedOptions().timeZone,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user