2023-10-20

This commit is contained in:
2023-10-20 17:21:45 +08:00
parent 12ef707f64
commit bd9dabd21d
29 changed files with 1401 additions and 385 deletions

View File

@@ -173,8 +173,8 @@ export default defineComponent({
workSpaceName:"工作台1",
putName:false,
systemDesignerPercentage:30,
position:'Outwear',
sex:'Female',
position:'',
sex:'',
overallSingle:false,
mannequinUrl:'',
mannequinType:'',
@@ -261,7 +261,6 @@ export default defineComponent({
async mounted() {
this.getworkspace()
this.getSex()
this.getPosition()
},
directives:{
fade:{
@@ -311,6 +310,7 @@ export default defineComponent({
arr.push(obj)
});
this.sex = arr
this.getPosition()
}
})
@@ -333,7 +333,9 @@ export default defineComponent({
arr.push(obj)
});
this.singleTypeList = arr
this.workspaceItem.position = this.singleTypeList[0].label
if(this.workspaceItem.overallSingle){
this.workspaceItem.position = this.singleTypeList[0].label
}
}
})
},
@@ -371,6 +373,8 @@ export default defineComponent({
getDetail(id:any){//
Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:id}}).then((rv: any) => {
if (rv) {
this.getworkspace()
}
})
},
@@ -391,14 +395,13 @@ export default defineComponent({
},
putWorkspace(data:any,index:any){//修改workspace
console.log(index);
Https.axiosPost(Https.httpUrls.workspacesaveOrUpdate,data).then((rv: any) => {
if (rv) {
if(index){
this.getDetail(index)
}else{
this.getworkspace()
}
this.getworkspace()
}
})
},