2023-11-27-dist
This commit is contained in:
@@ -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,'')
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user