| 
					
				 | 
			
			
				@@ -58,6 +58,36 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        <div class="extend_mod" v-if="formData.deviceType === '4'" style="max-height: 500px;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          <el-table :data="childrenInfos" border style="width: 100%;max-height: 500px;overflow-y: auto;"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              type="index" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              label="序号" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              width="60" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              prop="deviceTypeName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              label="设备类型" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            ></el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              prop="deviceName" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              label="设备名称" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            <el-table-column 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              align="center" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              prop="subSystemStatus" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              label="布撤防状态" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              <template slot-scope="scope"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                {{ getSubSystemStatusDesc(scope.row.subSystemStatus)}} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+              </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            </el-table-column> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          </el-table> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       <div slot="footer" class="dialog-footer"> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -71,6 +101,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { mapState, mapMutations } from "vuex"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getDetailById, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  getAlarmHostDetailById 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from "@/api/iot/deviceInfo"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 export default { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -80,7 +111,6 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   data() { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     const params = this.$route.params; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      id: params ? params.id : null, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       isShow: false, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       formData: this.reset(), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       childrenInfos: [], 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -127,28 +157,45 @@ export default { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     getNetStatusDesc(val){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      if (val === '0'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return "未知"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }else if(val === '1'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if(val === '1'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return "在线"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }else if(val === '2'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return "离线"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       }else if(val === '3'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         return "异常"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return "未知"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    async refresh(id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      getDetailById(id).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.formData = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.childrenInfos = this.formData.childrenInfos; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        this.loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    getSubSystemStatusDesc(val){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (val === '0'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return "撤防"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else if(val === '1'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return "布防"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return "未知"; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    async refresh(id,deviceType) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      if (deviceType && deviceType === '4'){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        getAlarmHostDetailById(id).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.formData = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.childrenInfos = this.formData.childrenInfos; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      }else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        getDetailById(id).then(response => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.formData = response.data; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.childrenInfos = this.formData.childrenInfos; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+          this.loading = false; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    async show(id) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      this.id = id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    async show(id,deviceType) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      //this.id = id; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // this.isSignType = isSignType; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       // this.showSignBtn = showSignBtn; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-      await this.refresh(id); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+      await this.refresh(id,deviceType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				       this.isShow = true; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     // 事件 
			 |