| | |
| | | // if(this.model.userIdentity!==2){ |
| | | // this.model.departIds=""; |
| | | // } |
| | | let obj |
| | | if (!this.model.id) { |
| | | this.model.id = this.userId |
| | | this.model.systemValue = this.systemValue |
| | | obj = addEquipment(this.model) |
| | | } else { |
| | | this.model.systemValue = this.systemValue |
| | | obj = editEquipment(this.model, { |
| | | id: this.model.id |
| | | }) |
| | | if (this.systemValue==null){ |
| | | this.$message.warning('请选择系统类型!'); |
| | | return false; |
| | | } |
| | | let obj; |
| | | if(!this.model.id){ |
| | | this.model.id = this.userId; |
| | | this.model.systemValue=this.systemValue; |
| | | obj=addEquipment(this.model); |
| | | }else{ |
| | | this.model.systemValue=this.systemValue; |
| | | obj=editEquipment(this.model,{ |
| | | id: this.model.id |
| | | }); |
| | | } |
| | | obj.then((res) => { |
| | | if (res.success) { |