fix
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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}%`;
|
||||
|
||||
Reference in New Issue
Block a user