From c417c1fe04f17b2562918c283541b86169c4d291 Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: Fri, 29 Jan 2021 13:49:35 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app.js | 8 +-
.../property/editMachine/editMachine.html | 75 ++-----------------
.../property/editMachine/editMachine.js | 17 -----
3 files changed, 11 insertions(+), 89 deletions(-)
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;