[Frontend]取消 3D 視角 ZOOM IN 聚焦
This commit is contained in:
		
						commit
						9bcb807fa4
					
				| @ -171,10 +171,10 @@ | ||||
|                         </div> | ||||
|                         <div class="panel-container h-100 show"> | ||||
|                             <div class="panel-content poisition-relative p-0 row p-0 h-100"> | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center"> | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center" style="max-height: 150px;"> | ||||
|                                     <canvas class="chart" id="errRecChart"></canvas> | ||||
|                                 </div> | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center"> | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center" style="max-height: 150px;"> | ||||
|                                     <canvas class="chart" id="errChkChart"></canvas> | ||||
|                                 </div> | ||||
|                             </div> | ||||
| @ -191,10 +191,10 @@ | ||||
|                         <div class="panel-container h-100 show"> | ||||
|                             <div class="panel-content poisition-relative row p-0 h-100 p-0"> | ||||
|                                | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center"> | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center" style="max-height:150px;"> | ||||
|                                     <canvas class="chart" id="worOrdErrChart"></canvas> | ||||
|                                 </div> | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center"> | ||||
|                                 <div class="col-12 mb-2 position-relative row m-0 justify-content-center" style="max-height:150px;"> | ||||
|                                     <canvas class="chart" id="worOrdFinChart"></canvas> | ||||
|                                 </div> | ||||
|                             </div> | ||||
| @ -480,22 +480,21 @@ | ||||
|                 display: true, | ||||
|             }, | ||||
|             scales: { | ||||
|                 xAxes: [{ | ||||
|                 x: { | ||||
|                     offset: true, | ||||
|                     gridLines: { color: color.fusion._500 }, | ||||
|                     grid: { color: color.fusion._500 }, | ||||
|                     ticks: { | ||||
|                         callback: function (value, index, ticks) { | ||||
|                             return value | ||||
|                         } | ||||
|                     }, | ||||
|                 }], | ||||
|                 yAxes: [{ | ||||
| 
 | ||||
|                 }, | ||||
|                 y: { | ||||
|                     beginAtZero: true, | ||||
|                     ticks: { | ||||
|                         min: 0, | ||||
|                         beginAtZero: true | ||||
|                     }, | ||||
|                 }] | ||||
|                 } | ||||
|             }, | ||||
|             tooltips: { | ||||
|                 callbacks: { | ||||
| @ -570,22 +569,21 @@ | ||||
|                 display: true, | ||||
|             }, | ||||
|             scales: { | ||||
|                 xAxes: [{ | ||||
|                 x: { | ||||
|                     offset: true, | ||||
|                     gridLines: { color: color.fusion._500 }, | ||||
|                     grid: { color: color.fusion._500 }, | ||||
|                     ticks: { | ||||
|                         callback: function (value, index, ticks) { | ||||
|                             return value | ||||
|                         } | ||||
|                     }, | ||||
|                 }], | ||||
|                 yAxes: [{ | ||||
| 
 | ||||
|                 }, | ||||
|                 y: { | ||||
|                     beginAtZero: true, | ||||
|                     ticks: { | ||||
|                         min: 0, | ||||
|                         beginAtZero: true | ||||
|                     }, | ||||
|                 }] | ||||
|                 } | ||||
|             }, | ||||
|             tooltips: { | ||||
|                 callbacks: { | ||||
| @ -630,14 +628,13 @@ | ||||
|                     unit: '個', | ||||
|                     fill: true, | ||||
|                     backgroundColor: [color.danger._500, color.info._300], | ||||
|                     //data: errRecArr.map(x => parseInt((Math.random() * (1500 - 300) + 300))), | ||||
|                     data: datas, | ||||
|                 } | ||||
|             ] | ||||
|         } | ||||
| 
 | ||||
|         let errRecChartOptions = { | ||||
|             //maintainAspectRatio: false, | ||||
|             maintainAspectRatio: false, | ||||
|             responsive: true, | ||||
|             legend: { | ||||
|                 display: true, | ||||
| @ -645,8 +642,6 @@ | ||||
|             tooltips: { | ||||
|                 enabled: true, | ||||
|             }, | ||||
| 
 | ||||
| 
 | ||||
|         } | ||||
| 
 | ||||
|         // This will get the first returned node in the jQuery collection. | ||||
| @ -676,14 +671,13 @@ | ||||
|                     unit: '個', | ||||
|                     fill: true, | ||||
|                     backgroundColor: [color.danger._500, color.info._300], | ||||
|                     //data: errChkArr.map(x => parseInt((Math.random() * (1500 - 300) + 300))), | ||||
|                     data: datas, | ||||
|                 } | ||||
|             ] | ||||
|         } | ||||
| 
 | ||||
|         let errChkChartOptions = { | ||||
|             //maintainAspectRatio: false, | ||||
|             maintainAspectRatio: false, | ||||
|             responsive: true, | ||||
|             legend: { | ||||
|                 display: true, | ||||
| @ -691,8 +685,6 @@ | ||||
|             tooltips: { | ||||
|                 enabled: true, | ||||
|             }, | ||||
| 
 | ||||
| 
 | ||||
|         } | ||||
| 
 | ||||
|         if (errChkChart == null) { | ||||
| @ -723,14 +715,13 @@ | ||||
|                     unit: '個', | ||||
|                     fill: true, | ||||
|                     backgroundColor: [color.danger._500, color.info._300], | ||||
|                     //data: worOrdErrArr.map(x => parseInt((Math.random() * (1500 - 300) + 300))), | ||||
|                     data: datas, | ||||
|                 } | ||||
|             ] | ||||
|         } | ||||
| 
 | ||||
|         let worOrdErrChartOptions = { | ||||
|             //maintainAspectRatio: false, | ||||
|             maintainAspectRatio: false, | ||||
|             responsive: true, | ||||
|             legend: { | ||||
|                 display: true, | ||||
| @ -770,14 +761,13 @@ | ||||
|                     unit: '個', | ||||
|                     fill: true, | ||||
|                     backgroundColor: [color.danger._500, color.info._300], | ||||
|                     //data: worOrdFinArr.map(x => parseInt((Math.random() * (1500 - 300) + 300))), | ||||
|                     data: datas, | ||||
|                 } | ||||
|             ] | ||||
|         } | ||||
| 
 | ||||
|         let worOrdFinChartOptions = { | ||||
|             //maintainAspectRatio: false, | ||||
|             maintainAspectRatio: false, | ||||
|             responsive: true, | ||||
|             legend: { | ||||
|                 display: true, | ||||
| @ -822,15 +812,7 @@ | ||||
|         }) | ||||
|     } | ||||
| 
 | ||||
|     //function timeOutGetData() { | ||||
|     //    let timeOut3s = setInterval(() => { | ||||
|     //        getAlarmSub(); | ||||
|     //    }, 3000) | ||||
|     //    let timeOut5m = setInterval(() => { | ||||
|     //        getElectricBaja(); | ||||
|     //    }, 5 * 60 * 1000) | ||||
|     //    timeOuters = timeOuters.concat([timeOut3s, timeOut5m]); | ||||
|     //} | ||||
|     | ||||
| 
 | ||||
|     function show3DModel() { | ||||
|         launchViewerNoTools(pageAct.urn, (viewer) => { | ||||
|  | ||||
| @ -2415,10 +2415,11 @@ | ||||
|             forge3DElev.bajaEndCallback = function () { | ||||
|                 // 從資料庫設定不可視模型的類型,若沒有取道該小類不可視類型,則套用資料庫設定預設類型 | ||||
|                 if (forgeInvType) { | ||||
|                     setInviForge(forgeInvType, this.getNodeIds); | ||||
|                     setInviForge(forgeInvType, this.getNodeIds()); | ||||
|                 } else { | ||||
|                     setInviForge(forgeInvTypeDef, this.getNodeIds); | ||||
|                     setInviForge(forgeInvTypeDef, this.getNodeIds()); | ||||
|                 } | ||||
| 
 | ||||
|                 setTransparentBuilding(0); | ||||
|                 endPageLoading(); | ||||
|             } | ||||
|  | ||||
| @ -1,4 +1,4 @@ | ||||
| <!DOCTYPE html> | ||||
| <!DOCTYPE html> | ||||
| <!-- | ||||
| Template Name:  SmartAdmin Responsive WebApp - Template build with Twitter Bootstrap 4 | ||||
| Version: 4.5.1 | ||||
| @ -36,7 +36,6 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li | ||||
|     <link href="lib/fontawesome-free/css/all.min.css" rel="stylesheet" /> | ||||
|     <link href="lib/jquery-ui/jquery-ui.min.css" rel="stylesheet" /> | ||||
| 
 | ||||
|     <link href="lib/chart.js/Chart.min.css" rel="stylesheet" /> | ||||
|     <link href="lib/jstree-master/themes/default/style.min.css" rel="stylesheet" /> | ||||
|     <link href="lib/jstree-master/themes/default-dark/style.min.css" rel="stylesheet" /> | ||||
|     <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||||
| @ -733,6 +732,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li | ||||
|     </script> | ||||
|     <script src="js/n4js/bajatest.js"></script> | ||||
|     <script src="js/n4js/electricmeterbaja.js"></script> | ||||
|       <script src="js/n4js/elevatorbaja.js"></script> | ||||
|     <script src="js/bajascript/require.config.js"></script> | ||||
|     <script src="js/FileSaver.js"></script> | ||||
| 
 | ||||
| @ -799,7 +799,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li | ||||
|                         /*"lib/jquery-validation/dist/additional-methods.min",*/  /* 會影響 messages_zh_TW 文字呈現 */ | ||||
|                         "lib/jquery-validation/dist/localization/messages_zh_TW", | ||||
|                         "lib/jquery-ui/jquery-ui.min", | ||||
|                         "lib/chart.js/Chart.min", | ||||
|                         "lib/chart.js_4.1.2/chart.umd", | ||||
|                         "lib/dropzone/dropzone-min", | ||||
|                         "lib/jstree-master/jstree.min", | ||||
|                         "lib/notifications/sweetalert2/sweetalert2.bundle", | ||||
| @ -1183,9 +1183,11 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li | ||||
|                                     </div> | ||||
|                                 </div>`, | ||||
|                         group: "device", | ||||
|                         // 在 _sysElevator.html 及 _sysMonAll.html 會用到 | ||||
|                         onShow: function (tooltipEle, oriEle) { | ||||
|                             // 執行 pop 視窗上方 Tab 類別 | ||||
|                             new YT.Tab({ tabName: "cardTab" }) | ||||
|                             new YT.Tab({ tabName: "cardTab" }); | ||||
|                             // 系統監控才會有 data-devobj 屬性 | ||||
|                             let devObj = $(oriEle).data("devobj"); | ||||
|                             // 讀取運維列表 | ||||
|                             loadOpeRecTable(devGuid); | ||||
| @ -1197,7 +1199,6 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li | ||||
|                             if ($(oriEle).data("dbId")) { | ||||
|                                 controlFocusHotspot($(oriEle).data("dbId")); | ||||
|                             } | ||||
|                               console.log("@@@", $(oriEle),devObj) | ||||
|                             // 3D 視角 ZOOM IN 聚焦 | ||||
|                             //if (devObj) { | ||||
|                             //  moveViewToDevice(devObj?.forge_dbid); | ||||
| @ -1562,7 +1563,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li | ||||
| 
 | ||||
|                 } else { | ||||
|                     let strHtml = `<div class="btn-group mx-4"> | ||||
|                                                                     <a href="javascript:;" name="topFunBtn" data-page="dashboard" data-tabname="topFunBtn" class="text-center active"> | ||||
|                                                                     <a href="javascript:;" name="topFunBtn" data-page="dashboard" data-tabname="topFunBtn" class="text-center"> | ||||
|                                                                         <i class="fal fa-home fa-2x"></i><br>首頁 | ||||
|                                                                     </a> | ||||
|                                                                     <!--<div class="dropdown-menu"> | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user