[前台] 修改baja api 回傳架構修改錯誤
This commit is contained in:
		
							parent
							
								
									ed9add4f64
								
							
						
					
					
						commit
						c4f5548618
					
				@ -644,8 +644,10 @@
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
		function refTable(data) {
 | 
							function refTable(data) {
 | 
				
			||||||
			let tag = "#alertTable";
 | 
								let tag = "#alertTable";
 | 
				
			||||||
 | 
								
 | 
				
			||||||
			$.each(data, function (i, v) {
 | 
								$.each(data, function (i, v) {
 | 
				
			||||||
						v.formId = AlertList(v.uuid);
 | 
										v.formId = AlertList(v.uuid.$val);
 | 
				
			||||||
 | 
									
 | 
				
			||||||
				});
 | 
									});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
				let column_defs = [
 | 
									let column_defs = [
 | 
				
			||||||
@ -680,7 +682,6 @@
 | 
				
			|||||||
								"title": "設備名稱",
 | 
													"title": "設備名稱",
 | 
				
			||||||
								"data": "sourceName_zh",
 | 
													"data": "sourceName_zh",
 | 
				
			||||||
								render: (data) => {
 | 
													render: (data) => {
 | 
				
			||||||
										console.log(data);
 | 
					 | 
				
			||||||
										return allDevices.find(d => d.device_number === data)?.full_name || ""
 | 
															return allDevices.find(d => d.device_number === data)?.full_name || ""
 | 
				
			||||||
								}
 | 
													}
 | 
				
			||||||
						},
 | 
											},
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user