fix
This commit is contained in:
@@ -256,7 +256,7 @@ export default defineComponent({
|
|||||||
// this.getDetail(this.workspaceItem.id)
|
// this.getDetail(this.workspaceItem.id)
|
||||||
this.store.commit("setWorkspace", this.workspaceItem);
|
this.store.commit("setWorkspace", this.workspaceItem);
|
||||||
}else{
|
}else{
|
||||||
this.getworkspace()
|
this.getworkspace('detail')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -342,7 +342,7 @@ export default defineComponent({
|
|||||||
// this.getPosition(resolve)
|
// this.getPosition(resolve)
|
||||||
// })
|
// })
|
||||||
await this.getPosition()//获取衣服类型
|
await this.getPosition()//获取衣服类型
|
||||||
this.getworkspace()
|
this.getworkspace('')
|
||||||
this.getSex()
|
this.getSex()
|
||||||
},
|
},
|
||||||
directives:{
|
directives:{
|
||||||
@@ -454,7 +454,7 @@ export default defineComponent({
|
|||||||
// this.getworkspace()
|
// this.getworkspace()
|
||||||
// this.setPosition('')
|
// this.setPosition('')
|
||||||
},
|
},
|
||||||
getworkspace(){
|
getworkspace(str:any){
|
||||||
// Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:3}}).then((rv: any) => {
|
// Https.axiosGet(Https.httpUrls.workspaceDetail,{params:{id:3}}).then((rv: any) => {
|
||||||
// if (rv) {
|
// if (rv) {
|
||||||
// console.log(rv,'workspace');
|
// console.log(rv,'workspace');
|
||||||
@@ -479,6 +479,7 @@ export default defineComponent({
|
|||||||
// v.putName = false
|
// v.putName = false
|
||||||
// });
|
// });
|
||||||
this.workspace.id = rv.id
|
this.workspace.id = rv.id
|
||||||
|
if(str == 'detail') this.getDetail(rv.id)
|
||||||
this.total = rv.page.total
|
this.total = rv.page.total
|
||||||
this.workspace.workspaceList = rv.page.content
|
this.workspace.workspaceList = rv.page.content
|
||||||
}
|
}
|
||||||
@@ -533,7 +534,7 @@ export default defineComponent({
|
|||||||
if(index){
|
if(index){
|
||||||
this.getDetail(index)
|
this.getDetail(index)
|
||||||
}else{
|
}else{
|
||||||
this.getworkspace()
|
this.getworkspace('')
|
||||||
}
|
}
|
||||||
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
this.workspace.workspaceList[index].workSpaceName = this.workspaceItemName
|
||||||
this.workspace.workspaceList[index].putName = false
|
this.workspace.workspaceList[index].putName = false
|
||||||
@@ -546,7 +547,7 @@ export default defineComponent({
|
|||||||
deleteWorkspace(data:any){
|
deleteWorkspace(data:any){
|
||||||
Https.axiosDelete(Https.httpUrls.workspaceRemove,data).then((rv: any) => {
|
Https.axiosDelete(Https.httpUrls.workspaceRemove,data).then((rv: any) => {
|
||||||
if (rv) {
|
if (rv) {
|
||||||
this.getworkspace()
|
this.getworkspace('')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user