Bläddra i källkod

对讲主机 门禁主机 添加页面代码提交

jingyuanchao 11 månader sedan
förälder
incheckning
a26663a070
1 ändrade filer med 4 tillägg och 6 borttagningar
  1. 4 6
      src/views/iot/deviceInfo/index.vue

+ 4 - 6
src/views/iot/deviceInfo/index.vue

@@ -397,13 +397,11 @@ export default {
       if (this.activeName == 'alarmHost') {
         this.$refs.addAlarmHostDialog.show(row.id,row.orgId, '报警主机', other = {});
       }
-      if (this.activeName == 'talkDevice' || this.activeName == 'doorDevice') {
-        let str = this.activeName == 'talkDevice'?'对讲主机':'门禁主机';
-        this.$refs.addTalkHostDialog.show(row.id,row.orgId, str, other = {});
+      if (this.activeName == 'talkDevice') {
+        this.$refs.addTalkHostDialog.show(row.id,row.orgId, '对讲主机', other = {});
       }
-      if (this.activeName == 'talkDevice' || this.activeName == 'doorDevice') {
-        let str = this.activeName == 'talkDevice'?'对讲主机':'门禁主机';
-        this.$refs.addDoorHostDialog.show(row.id,row.orgId, str, other = {});
+      if (this.activeName == 'doorDevice') {
+        this.$refs.addDoorHostDialog.show(row.id,row.orgId, '门禁主机', other = {});
       }
     },
     addHost(other = {}) {