2023-11-24

This commit is contained in:
X1627315083
2023-11-24 17:32:57 +08:00
parent e908818d8d
commit 28a0480bca
25 changed files with 42 additions and 45 deletions

View File

@@ -418,6 +418,7 @@ 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){
@@ -425,8 +426,14 @@ export default defineComponent({
}else{
this.getworkspace()
}
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);
});
},
deleteWorkspace(data:any){
@@ -491,7 +498,6 @@ export default defineComponent({
workSpaceName:this.workspaceItemName,
}
this.putWorkspace(data,'')
this.openType.addWorkspace = false
}else{
let data:any
this.workspace.workspaceList.forEach((item:any)=>{
@@ -499,10 +505,8 @@ export default defineComponent({
data = item
}
})
data.workSpaceName = this.workspaceItemName
this.putWorkspace(data,'')
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
this.workspace.workspaceList[index].putName = false
}
}