diff --git a/public/components/property/addLocation/addLocation.html b/public/components/property/addLocation/addLocation.html index f9100c422..53f860f59 100644 --- a/public/components/property/addLocation/addLocation.html +++ b/public/components/property/addLocation/addLocation.html @@ -22,6 +22,7 @@ + diff --git a/public/components/property/addMachine/addMachine.html b/public/components/property/addMachine/addMachine.html index 9fd0feb6d..ce4a8d4b0 100644 --- a/public/components/property/addMachine/addMachine.html +++ b/public/components/property/addMachine/addMachine.html @@ -92,6 +92,14 @@ +
+ +
+ + +
+
diff --git a/public/components/property/addMachine/addMachine.js b/public/components/property/addMachine/addMachine.js index 04beadf8e..d7d202d74 100644 --- a/public/components/property/addMachine/addMachine.js +++ b/public/components/property/addMachine/addMachine.js @@ -21,6 +21,7 @@ unitId: '', unitName: '', roomId: '', + paId: '', locationTypeCd: '', locationObjId: '', roomName: '', @@ -31,7 +32,7 @@ } }, _initMethod: function () { - + }, _initEvent: function () { vc.on('addMachine', 'openAddMachineModal', function () { @@ -52,6 +53,10 @@ if (_param.hasOwnProperty("roomId")) { vc.component.addMachineInfo.roomId = _param.roomId; } + + if (_param.hasOwnProperty("paId")) { + vc.component.addMachineInfo.paId = _param.paId; + } }); }, methods: { @@ -165,6 +170,8 @@ vc.component.addMachineInfo.locationObjId = vc.component.addMachineInfo.unitId; } else if (vc.component.addMachineInfo.locationType == '3000') { vc.component.addMachineInfo.locationObjId = vc.component.addMachineInfo.roomId; + } else if (vc.component.addMachineInfo.locationType == '4000') { + vc.component.addMachineInfo.locationObjId = vc.component.addMachineInfo.paId; } else { vc.toast("设备位置值错误"); return; @@ -224,7 +231,14 @@ direction: '', locationType: '', locations: _locations, - attrs: [] + attrs: [], + floorId: '', + floorNum: '', + floorName: '', + unitId: '', + unitName: '', + roomId: '', + paId: '' }; }, _initAddMachineData: function () { diff --git a/public/components/property/editLocation/editLocation.html b/public/components/property/editLocation/editLocation.html index 61963ea21..d533f3585 100644 --- a/public/components/property/editLocation/editLocation.html +++ b/public/components/property/editLocation/editLocation.html @@ -1,4 +1,5 @@ - +
\ No newline at end of file diff --git a/public/components/property/editMachine/editMachine.html b/public/components/property/editMachine/editMachine.html index ac57e190c..67462af44 100644 --- a/public/components/property/editMachine/editMachine.html +++ b/public/components/property/editMachine/editMachine.html @@ -91,6 +91,14 @@ +
+ +
+ + +
+
diff --git a/public/components/property/editMachine/editMachine.js b/public/components/property/editMachine/editMachine.js index 3648e2233..f0aebd477 100644 --- a/public/components/property/editMachine/editMachine.js +++ b/public/components/property/editMachine/editMachine.js @@ -17,6 +17,7 @@ unitId: '', unitNum: '', roomId: '', + paId:'', locationTypeCd: '', locationObjId: '', roomNum: '', @@ -69,6 +70,11 @@ roomId: vc.component.editMachineInfo.roomId, roomNum: vc.component.editMachineInfo.roomNum, }); + }else if (vc.component.editMachineInfo.locationTypeCd == '4000') { + vc.emit('editMachine', 'parkingAreaSelect2', 'setParkingArea', { + paId: vc.component.editMachineInfo.paId, + num: vc.component.editMachineInfo.num + }); } if (_params.hasOwnProperty('machineAttrs')) { @@ -232,7 +238,9 @@ vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.unitId; } else if (vc.component.editMachineInfo.locationType == '3000') { vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.roomId; - } else { + } else if (vc.component.editMachineInfo.locationType == '4000') { + vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.paId; + }else { vc.toast("设备位置值错误"); return; } @@ -289,7 +297,8 @@ direction: '', locationType: '', locations: _locations, - attrs: _attrs + attrs: _attrs, + paId:'' } }, diff --git a/public/pages/property/machineTranslateManage/machineTranslateManage.html b/public/pages/property/machineTranslateManage/machineTranslateManage.html index d17686da8..727dceab2 100644 --- a/public/pages/property/machineTranslateManage/machineTranslateManage.html +++ b/public/pages/property/machineTranslateManage/machineTranslateManage.html @@ -77,7 +77,7 @@ 对象名称 指令 状态 - 说明 + 说明 同步时间 操作