From 7c9ff6c6f52d92f01e9ca254181820ba1531d800 Mon Sep 17 00:00:00 2001 From: java110 <928255095@qq.com> Date: Tue, 5 Jan 2021 14:05:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BD=8D=E7=BD=AE=E4=BF=A1?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../property/addLocation/addLocation.html | 1 + .../property/addMachine/addMachine.html | 8 ++++ .../property/addMachine/addMachine.js | 18 +++++++- .../property/editLocation/editLocation.html | 44 +++++++++++-------- .../property/editMachine/editMachine.html | 8 ++++ .../property/editMachine/editMachine.js | 13 +++++- .../machineTranslateManage.html | 2 +- 7 files changed, 70 insertions(+), 24 deletions(-) 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 @@ 对象名称 指令 状态 - 说明 + 说明 同步时间 操作