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:'',
name:'',
}
this.sketchCatecoryList.forEach((item:any) => {
if(item.name == res.data.level2Type){
category.value = item?.value
category.name = item?.name
}
});
if(this.sketchCatecoryList && this.type_.type2 == 'Sketchboard'){
this.sketchCatecoryList.forEach((item:any) => {
if(item.name == res.data.level2Type){
category.value = item?.value
category.name = item?.name
}
});
}
file.id = res.data.id;
file.imgUrl = res.data.url;
file.resData = res.data;

View File

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