diff --git a/app.js b/app.js index 366efffb1..a1ec5b097 100644 --- a/app.js +++ b/app.js @@ -36,11 +36,11 @@ let opts = { //app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts)); -app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts)); -app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts)); +//app.use('/callComponent',proxy('http://api.demo.winqi.cn:8012',opts)); +//app.use('/app',proxy('http://api.demo.winqi.cn:8012',opts)); -//app.use('/callComponent',proxy('http://127.0.0.1:8012',opts)); -//app.use('/app',proxy('http://127.0.0.1:8012',opts)); +app.use('/callComponent',proxy('http://127.0.0.1:8012',opts)); +app.use('/app',proxy('http://127.0.0.1:8012',opts)); //app.use('/callComponent',proxy('http://192.168.1.16:8012',opts)); //app.use('/app',proxy('http://192.168.1.16:8012',opts)); diff --git a/public/components/property/editMachine/editMachine.html b/public/components/property/editMachine/editMachine.html index 8a9f9a550..9ff4096d5 100644 --- a/public/components/property/editMachine/editMachine.html +++ b/public/components/property/editMachine/editMachine.html @@ -36,7 +36,8 @@ - + +
@@ -45,7 +46,8 @@ -
+ +
@@ -54,75 +56,12 @@ class="form-control">
-
- -
- -
-
- -
- -
- -
-
-
- -
- - -
-
-
- -
- - -
-
-
- -
- - -
-
- -
- -
-
-
- -
-
- -
-
-
- +
@@ -170,5 +109,5 @@
- + \ No newline at end of file diff --git a/public/components/property/editMachine/editMachine.js b/public/components/property/editMachine/editMachine.js index 93e7d15b8..8ff8704de 100644 --- a/public/components/property/editMachine/editMachine.js +++ b/public/components/property/editMachine/editMachine.js @@ -243,23 +243,6 @@ }, editMachine: function () { vc.component.editMachineInfo.communityId = vc.getCurrentCommunity().communityId; - if (vc.component.editMachineInfo.locationType != '2000' - && vc.component.editMachineInfo.locationType != '3000' - && vc.component.editMachineInfo.locationType != '4000' - && vc.component.editMachineInfo.locationType != '5000') { //大门时直接写 小区ID - vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.communityId; - } else if (vc.component.editMachineInfo.locationType == '2000') { - vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.unitId; - } else if (vc.component.editMachineInfo.locationType == '3000') { - vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.roomId; - } else if (vc.component.editMachineInfo.locationType == '4000') { - vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.paId; - } else if (vc.component.addMachineInfo.locationType == '5000') { - vc.component.editMachineInfo.locationObjId = vc.component.editMachineInfo.orgId; - } else { - vc.toast("设备位置值错误"); - return; - } if (!vc.component.editMachineValidate()) { vc.toast(vc.validate.errInfo); return;