2023-11-16-1

This commit is contained in:
X1627315083
2023-11-16 09:44:53 +08:00
parent 0ad232a381
commit 5be355374e
18 changed files with 318 additions and 474 deletions

View File

@@ -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