2023-11-27-dist

This commit is contained in:
X1627315083
2023-11-27 09:49:49 +08:00
parent 28a0480bca
commit e05b159c5a
8 changed files with 11 additions and 11 deletions

View File

@@ -381,6 +381,7 @@ export default defineComponent({
v.putName = false
if(v.id == rv.id){
this.workspaceItem = v
console.log(this.workspaceItem);
this.setMannequinsSex()
}
});
@@ -418,7 +419,6 @@ export default defineComponent({
},
putWorkspace(data:any,index:any){//修改workspace
data.workSpaceName = this.workspaceItemName
Https.axiosPost(Https.httpUrls.workspacesaveOrUpdate,data).then((rv: any) => {
if (rv) {
if(index){
@@ -429,11 +429,9 @@ export default defineComponent({
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
this.workspace.workspaceList[index].putName = false
this.openType.addWorkspace = false
console.log(123);
}
}).catch((res)=>{
console.log(321);
this.getworkspace()
});
},
deleteWorkspace(data:any){
@@ -502,9 +500,11 @@ export default defineComponent({
let data:any
this.workspace.workspaceList.forEach((item:any)=>{
if(this.workspace.workspaceList[index].id == item.id){
// item.putName = true
data = item
}
})
data.workSpaceName = this.workspaceItemName
this.putWorkspace(data,'')
}