修改device_item parent_path
This commit is contained in:
		
							parent
							
								
									cab706c76a
								
							
						
					
					
						commit
						704ab50931
					
				@ -249,6 +249,7 @@
 | 
				
			|||||||
					strHtml += `<button onClick="setValue(null, null, '${val.points}', this)" type="button" class="btn btn-info waves-effect waves-themed">${val.full_name} ${val.points}</button>`;
 | 
										strHtml += `<button onClick="setValue(null, null, '${val.points}', this)" type="button" class="btn btn-info waves-effect waves-themed">${val.full_name} ${val.points}</button>`;
 | 
				
			||||||
                    pageAct.deviceItem = val.points;
 | 
					                    pageAct.deviceItem = val.points;
 | 
				
			||||||
                    pageAct.devicePoiName = val.full_name + ' ' + val.points;
 | 
					                    pageAct.devicePoiName = val.full_name + ' ' + val.points;
 | 
				
			||||||
 | 
					                    pageAct.deviceComName = val.parent_path;
 | 
				
			||||||
                    getData();
 | 
					                    getData();
 | 
				
			||||||
                } else {
 | 
					                } else {
 | 
				
			||||||
					strHtml += `<button onClick="setValue(null, null, '${val.points}', this)" type="button" class="btn btn-secondary waves-effect waves-themed">${val.full_name} ${val.points}</button>`;
 | 
										strHtml += `<button onClick="setValue(null, null, '${val.points}', this)" type="button" class="btn btn-secondary waves-effect waves-themed">${val.full_name} ${val.points}</button>`;
 | 
				
			||||||
@ -269,7 +270,7 @@
 | 
				
			|||||||
			new Date(start).getTime(),
 | 
								new Date(start).getTime(),
 | 
				
			||||||
			new Date(end).getTime(),
 | 
								new Date(end).getTime(),
 | 
				
			||||||
			pageAct.deviceName,
 | 
								pageAct.deviceName,
 | 
				
			||||||
            "Mitsubishi_JACE8000",
 | 
								pageAct.deviceComName,
 | 
				
			||||||
		    callBackFromHistory);
 | 
							    callBackFromHistory);
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
@ -214,6 +214,7 @@ namespace FrontendWebApi.Models
 | 
				
			|||||||
        public string full_name { get; set; }
 | 
					        public string full_name { get; set; }
 | 
				
			||||||
        public string points { get; set; }
 | 
					        public string points { get; set; }
 | 
				
			||||||
        public string unit { get; set; }
 | 
					        public string unit { get; set; }
 | 
				
			||||||
 | 
					        public string parent_path { get; set; }
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    public class DeviceList
 | 
					    public class DeviceList
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user