2023-11-16-1
This commit is contained in:
@@ -230,10 +230,6 @@ export default defineComponent({
|
||||
'workspaceItem.id_':{
|
||||
handler(newVal:any,oldVal:any){
|
||||
|
||||
// this.store.state.Workspace.workspace
|
||||
// if(!newVal){
|
||||
// this.store.commit("setWorkspace", this.workspaceItem);
|
||||
// }
|
||||
this.workspace.workspaceList.forEach((v:any)=>{
|
||||
if(v.id == this.workspaceItem.id_){
|
||||
this.workspaceItem = v
|
||||
@@ -248,7 +244,26 @@ export default defineComponent({
|
||||
this.getMannequins()
|
||||
}
|
||||
},
|
||||
// 'workspaceItem.sex':{
|
||||
'openType.workspace':{
|
||||
handler(newVal:any,oldVal:any){
|
||||
this.openType.addWorkspace = false
|
||||
this.workspace.workspaceList.forEach((item:any) => {
|
||||
item.putName = false
|
||||
});
|
||||
// this.workspace.workspaceList.forEach((v:any)=>{
|
||||
// if(v.id == this.workspaceItem.id_){
|
||||
// this.workspaceItem = v
|
||||
// this.workspaceItem.id_ = v.id
|
||||
// }
|
||||
// if(v.id == oldVal){
|
||||
// delete v.isLastIndex
|
||||
// this.putWorkspace(v,newVal)
|
||||
// // this.getDetail(newVal)
|
||||
// }
|
||||
// })
|
||||
}
|
||||
},
|
||||
// 'workspa,ceItem.sex':{
|
||||
// handler(newVal:any,oldVal:any){
|
||||
// console.log(oldVal);
|
||||
|
||||
@@ -467,6 +482,7 @@ export default defineComponent({
|
||||
this.workspace.workspaceList.forEach((v:any )=> {
|
||||
v.putName = false
|
||||
});
|
||||
this.openType.addWorkspace = false
|
||||
if(v == 'put'){
|
||||
this.workspaceItemName = this.workspace.workspaceList[index].workSpaceName
|
||||
this.workspace.workspaceList[index].putName = true
|
||||
@@ -525,6 +541,9 @@ export default defineComponent({
|
||||
newWorkspace(){
|
||||
this.workspaceItemName = ''
|
||||
this.openType.addWorkspace = true
|
||||
this.workspace.workspaceList.forEach((item:any) => {
|
||||
item.putName = false
|
||||
});
|
||||
},
|
||||
setSex(v:any){
|
||||
this.openType.sex = false
|
||||
|
||||
Reference in New Issue
Block a user