[後端] 修改tag撈取
This commit is contained in:
		
							parent
							
								
									e309b167a5
								
							
						
					
					
						commit
						c7f9838447
					
				@ -76,6 +76,7 @@ namespace Backend.Models
 | 
			
		||||
        public string Device_flashing { get; set; }
 | 
			
		||||
        public string Device_ip { get; set; }
 | 
			
		||||
        public string Device_port { get; set; }
 | 
			
		||||
        public string Device_name_tag { get; set; }
 | 
			
		||||
        public List<DeviceDisaster> Device_disasters { get; set; } //防災類型
 | 
			
		||||
        public List<DeviceNode> Device_nodes { get; set; } //設備子節點
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
@ -700,7 +700,7 @@
 | 
			
		||||
                        "data": null,
 | 
			
		||||
                        "createdCell": function (td, cellData, rowData, row, col) {
 | 
			
		||||
                            $(td).empty();
 | 
			
		||||
                            if (rowData != null && (rowData.device_system_category_layer3 == "L1" || rowData.device_system_category_layer3 == "L2")) {
 | 
			
		||||
                            if (rowData != null && (rowData.device_name_tag == "L1" || rowData.device_name_tag == "L2")) {
 | 
			
		||||
                                $(td).html(`
 | 
			
		||||
                                        <button class="btn btn-primary edit-btn">修改</button>
 | 
			
		||||
                                        <button class="btn btn-info add-device-node-btn">加入子節點</button>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user