This commit is contained in:
X1627315083
2024-01-02 14:30:23 +08:00
parent 05a358321c
commit ebdb10bf13
2 changed files with 14 additions and 6 deletions

View File

@@ -547,12 +547,14 @@ export default defineComponent({
value:'', value:'',
name:'', name:'',
} }
this.sketchCatecoryList.forEach((item:any) => { if(this.sketchCatecoryList && this.type_.type2 == 'Sketchboard'){
if(item.name == res.data.level2Type){ this.sketchCatecoryList.forEach((item:any) => {
category.value = item?.value if(item.name == res.data.level2Type){
category.name = item?.name category.value = item?.value
} category.name = item?.name
}); }
});
}
file.id = res.data.id; file.id = res.data.id;
file.imgUrl = res.data.url; file.imgUrl = res.data.url;
file.resData = res.data; file.resData = res.data;

View File

@@ -440,14 +440,18 @@ export default defineComponent({
//判断模特和当前start的sketch是否匹配 //判断模特和当前start的sketch是否匹配
isMannequin(){ isMannequin(){
console.log(this.allBoardData?.sketchboardFiles?.length != 0,this.workspacePosition);
this.isMannequinShow = false this.isMannequinShow = false
let num = 0 let num = 0
this.allBoardData?.sketchboardFiles?.forEach((sketchItem:any) => { this.allBoardData?.sketchboardFiles?.forEach((sketchItem:any) => {
this.workspacePosition.forEach((positionItem:any) => { this.workspacePosition.forEach((positionItem:any) => {
if(positionItem.name == sketchItem.category){ if(positionItem.name == sketchItem.category){
num ++ num ++
// console.log(num,this.allBoardData?.sketchboardFiles.length);
} }
}); });
}); });
if(this.allBoardData?.sketchboardFiles?.length && this.allBoardData?.sketchboardFiles?.length!=0){ if(this.allBoardData?.sketchboardFiles?.length && this.allBoardData?.sketchboardFiles?.length!=0){
if(num != this.allBoardData?.sketchboardFiles?.length){ if(num != this.allBoardData?.sketchboardFiles?.length){
@@ -456,6 +460,8 @@ export default defineComponent({
}else{ }else{
this.isMannequinShow = false this.isMannequinShow = false
} }
console.log(this.isMannequinShow);
}, },
formatter(value: number) { formatter(value: number) {
return `${value}%`; return `${value}%`;