| | |
| | | Assert.hasKeyAndValue(paramIn, "machineName", "必填,请填写设备名称"); |
| | | Assert.hasKeyAndValue(paramIn, "machineTypeCd", "必填,请选择设备类型"); |
| | | Assert.hasKeyAndValue(paramIn, "authCode", "必填,请填写鉴权编码"); |
| | | Assert.hasKeyAndValue(paramIn, "locationTypeCd", "必填,请选择位置类型"); |
| | | Assert.hasKeyAndValue(paramIn, "locationObjId", "必填,请填写位置对象ID"); |
| | | |
| | | |
| | | super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.AGENT_HAS_LIST_MACHINE); |
| | |
| | | floorId:vc.component.editMachineInfo.floorId, |
| | | floorNum:vc.component.editMachineInfo.floorNum, |
| | | unitId:vc.component.editMachineInfo.unitId, |
| | | floorNum:vc.component.editMachineInfo.unitNum, |
| | | unitNum:vc.component.editMachineInfo.unitNum, |
| | | }); |
| | | vc.emit('editMachine','roomSelect2','setRoom',{ |
| | | floorId:vc.component.editMachineInfo.floorId, |
| | |
| | | param: "", |
| | | errInfo: "设备ID不能为空" |
| | | }], |
| | | 'addMachineInfo.locationTypeCd': |
| | | 'editMachineInfo.locationTypeCd': |
| | | [ |
| | | { |
| | | limit: "required", |
| | |
| | | errInfo: "请选择设备位置" |
| | | } |
| | | ], |
| | | 'addMachineInfo.locationObjId': |
| | | 'editMachineInfo.locationObjId': |
| | | [ |
| | | { |
| | | limit: "required", |