diff --git a/Backend/App_Data/bajaJsList.ods b/Backend/App_Data/bajaJsList.ods new file mode 100644 index 0000000..8f63b6d Binary files /dev/null and b/Backend/App_Data/bajaJsList.ods differ diff --git a/Frontend/_sysMonAll.html b/Frontend/_sysMonAll.html index b5904df..896e0f5 100644 --- a/Frontend/_sysMonAll.html +++ b/Frontend/_sysMonAll.html @@ -5,8 +5,8 @@
-
-
+
+
@@ -51,30 +51,48 @@ \ No newline at end of file diff --git a/Frontend/_sysMonFloor.html b/Frontend/_sysMonFloor.html index a1f9ae3..d88f236 100644 --- a/Frontend/_sysMonFloor.html +++ b/Frontend/_sysMonFloor.html @@ -29,215 +29,223 @@ function chartHandler() { floChart.clear(); - $.get(`${baseImgUrl}/upload/floor_map/c0de2199-e62b-4f82-b7f7-abacd4e1cd17.svg`, function (svg) { + /*let url = `${baseApiUrl}/upload/graph_manage/de08e7ee-9839-4403-90e5-754dec4e389b.jpg`*/ + let url = `${baseImgUrl}/upload/floor_map/2e5be49c-f8e8-4977-b5b6-db4d95ff9691.svg` - if (svg == undefined || svg == null) { - return; - } + download(url) - echarts.registerMap('floor_svg', { svg: svg }); + //ytAjax = new YourTeam.Ajax(url, null, function (res) { + // if (svg == undefined || svg == null) { + // return; + // } - option = { - // animationDurationUpdate: 1500, - tooltip: { - formatter: function (params) { - if (params.data.device_node_guid != undefined && params.data.device_node_guid != null && params.data.device_node_guid != "") { - return `名稱:${params.data.device_node_full_name}
- Guid:${params.data.device_node_guid}` - } - else { - return `名稱:${params.data.device_full_name}
- Guid:${params.data.device_guid}` - } - } - }, - toolbox: { //工具欄 - show: false - }, - geo: { - map: 'floor_svg', - roam: true, - scaleLimit: { //限制放大縮小倍數 - max: 32, - min: 2.5 - }, - layoutSize: '100%', - layoutCenter: ['50%', '50%'], - zoom: 2.5, - silent: true - }, - series: [ - { //不管有無被選擇(圓點) - type: 'scatter', - coordinateSystem: 'geo', - geoIndex: 0, - symbol: 'circle', - symbolSize: 10, - symbolOffset: [10, 10], - label: { - show: false - }, - data: currentData, - z: 2 - }, - { //未選擇的設備(icon) - type: 'scatter', - coordinateSystem: 'geo', - geoIndex: 0, - symbolSize: 30, - label: { - formatter: '{b}', - position: 'bottom', - show: true, - backgroundColor: 'orange' - }, - emphasis: { - label: { - show: true, - fontSize: '20', - fontWeight: 'bold', - color: 'yellow' - } - }, - selectedMode: 'single', - data: null, - z: 1 - }, - { //被選擇的設備(icon) - type: 'effectScatter', - coordinateSystem: 'geo', - geoIndex: 0, - showEffectOn: 'render', - symbolSize: 30, - label: { - formatter: '{b}', - position: 'bottom', - show: true, - backgroundColor: 'orange' - }, - emphasis: { - label: { - show: true, - fontSize: '20', - fontWeight: 'bold', - color: 'yellow' - } - }, - selectedMode: 'single', - data: null, - z: 1 - }, - { //編輯模式底下的設備(圓點,只會有一個) - type: 'scatter', - coordinateSystem: 'geo', - geoIndex: 0, - symbol: 'circle', - symbolSize: 10, - symbolOffset: [10, 10], - label: { - show: false - }, - data: currentData, - z: 2 - }, - { //編輯模式底下的設備(icon,只會有一個) - type: 'scatter', - coordinateSystem: 'geo', - geoIndex: 0, - symbolSize: 30, - label: { - formatter: '{b}', - position: 'bottom', - show: true, - backgroundColor: 'orange' - }, - emphasis: { - label: { - show: true, - fontSize: '20', - fontWeight: 'bold', - color: 'yellow' - } - }, - data: null, - z: 1 - }, - ], - }; + // echarts.registerMap('floor_svg', { svg: svg }); - floChart.setOption(option); + // option = { + // // animationDurationUpdate: 1500, + // tooltip: { + // formatter: function (params) { + // if (params.data.device_node_guid != undefined && params.data.device_node_guid != null && params.data.device_node_guid != "") { + // return `名稱:${params.data.device_node_full_name}
+ // Guid:${params.data.device_node_guid}` + // } + // else { + // return `名稱:${params.data.device_full_name}
+ // Guid:${params.data.device_guid}` + // } + // } + // }, + // toolbox: { //工具欄 + // show: false + // }, + // geo: { + // map: 'floor_svg', + // roam: true, + // scaleLimit: { //限制放大縮小倍數 + // max: 32, + // min: 2.5 + // }, + // layoutSize: '100%', + // layoutCenter: ['50%', '50%'], + // zoom: 2.5, + // silent: true + // }, + // series: [ + // { //不管有無被選擇(圓點) + // type: 'scatter', + // coordinateSystem: 'geo', + // geoIndex: 0, + // symbol: 'circle', + // symbolSize: 10, + // symbolOffset: [10, 10], + // label: { + // show: false + // }, + // data: currentData, + // z: 2 + // }, + // { //未選擇的設備(icon) + // type: 'scatter', + // coordinateSystem: 'geo', + // geoIndex: 0, + // symbolSize: 30, + // label: { + // formatter: '{b}', + // position: 'bottom', + // show: true, + // backgroundColor: 'orange' + // }, + // emphasis: { + // label: { + // show: true, + // fontSize: '20', + // fontWeight: 'bold', + // color: 'yellow' + // } + // }, + // selectedMode: 'single', + // data: null, + // z: 1 + // }, + // { //被選擇的設備(icon) + // type: 'effectScatter', + // coordinateSystem: 'geo', + // geoIndex: 0, + // showEffectOn: 'render', + // symbolSize: 30, + // label: { + // formatter: '{b}', + // position: 'bottom', + // show: true, + // backgroundColor: 'orange' + // }, + // emphasis: { + // label: { + // show: true, + // fontSize: '20', + // fontWeight: 'bold', + // color: 'yellow' + // } + // }, + // selectedMode: 'single', + // data: null, + // z: 1 + // }, + // { //編輯模式底下的設備(圓點,只會有一個) + // type: 'scatter', + // coordinateSystem: 'geo', + // geoIndex: 0, + // symbol: 'circle', + // symbolSize: 10, + // symbolOffset: [10, 10], + // label: { + // show: false + // }, + // data: currentData, + // z: 2 + // }, + // { //編輯模式底下的設備(icon,只會有一個) + // type: 'scatter', + // coordinateSystem: 'geo', + // geoIndex: 0, + // symbolSize: 30, + // label: { + // formatter: '{b}', + // position: 'bottom', + // show: true, + // backgroundColor: 'orange' + // }, + // emphasis: { + // label: { + // show: true, + // fontSize: '20', + // fontWeight: 'bold', + // color: 'yellow' + // } + // }, + // data: null, + // z: 1 + // }, + // ], + // }; - floChart.getZr().on('click', function (params) { - console.log("click", params); - var pixelPoint = [params.offsetX, params.offsetY]; - var dataPoint = floChart.convertFromPixel({ geoIndex: 0 }, pixelPoint); - console.log(dataPoint); + // floChart.setOption(option); - if (floor_map_mode == "edit") { + // floChart.getZr().on('click', function (params) { + // console.log("click", params); + // var pixelPoint = [params.offsetX, params.offsetY]; + // var dataPoint = floChart.convertFromPixel({ geoIndex: 0 }, pixelPoint); + // console.log(dataPoint); - temp_device_on_floor_map = [{ - device_guid: selected_temp_device.device_guid, - device_full_name: selected_temp_device.device_full_name, - device_node_guid: selected_temp_device.device_node_guid ? selected_temp_device.device_node_guid : null, - device_node_full_name: selected_temp_device.device_node_full_name ? selected_temp_device.device_node_full_name : null, - status: selected_temp_device.status, - value: dataPoint - }]; + // if (floor_map_mode == "edit") { - - } + // temp_device_on_floor_map = [{ + // device_guid: selected_temp_device.device_guid, + // device_full_name: selected_temp_device.device_full_name, + // device_node_guid: selected_temp_device.device_node_guid ? selected_temp_device.device_node_guid : null, + // device_node_full_name: selected_temp_device.device_node_full_name ? selected_temp_device.device_node_full_name : null, + // status: selected_temp_device.status, + // value: dataPoint + // }]; - // currentData.push([dataPoint[0], dataPoint[1], 1]); - // floChart.setOption(option); - }); + // } - floChart.on('selectchanged', function (params) { - - console.log("selectchanged", params); - // currentData.push([dataPoint[0], dataPoint[1], 1]); - // floChart.setOption(option); - currentData = $.map(currentData, function (item) { - item.selected = false; - return item; - }); + // // currentData.push([dataPoint[0], dataPoint[1], 1]); + // // floChart.setOption(option); + // }); - if (params.selected.length > 0) { - currentData[params.selected[0].seriesIndex - 1].selected = true; - } + // floChart.on('selectchanged', function (params) { - - }); + // console.log("selectchanged", params); + // // currentData.push([dataPoint[0], dataPoint[1], 1]); + // // floChart.setOption(option); - // floChart.getZr().on('mousewheel', function (params) { - // console.log(params) - // }) - floChart.on('georoam', function (params) { - - var zoom = floChart.getOption().geo[0].zoom; + // currentData = $.map(currentData, function (item) { + // item.selected = false; + // return item; + // }); - if (zoom <= 2.5) { - ResetFloorMap(); - floChart.setOption({ - geo: { - roam: 'scale' - }, - }); - } else { - floChart.setOption({ - geo: { - roam: true - }, - }); - } + // if (params.selected.length > 0) { + // currentData[params.selected[0].seriesIndex - 1].selected = true; + // } - - }); - }) - .fail(function () { - toast_warning("查無該樓層地圖") - floChart.clear(); - }); + + // }); + + // // floChart.getZr().on('mousewheel', function (params) { + // // console.log(params) + // // }) + // floChart.on('georoam', function (params) { + + // var zoom = floChart.getOption().geo[0].zoom; + + // if (zoom <= 2.5) { + // ResetFloorMap(); + // floChart.setOption({ + // geo: { + // roam: 'scale' + // }, + // }); + // } else { + // floChart.setOption({ + // geo: { + // roam: true + // }, + // }); + // } + + + // }); + //}).send(); + //$.get(`${baseImgUrl}/device/GetFloorSvg/c0de2199-e62b-4f82-b7f7-abacd4e1cd17.svg`, function (svg) { + + + //}) + // .fail(function () { + // toast_warning("查無該樓層地圖") + // floChart.clear(); + // }); } \ No newline at end of file diff --git a/Frontend/_systemMonitor.html b/Frontend/_systemMonitor.html index 5cf2d1d..402b514 100644 --- a/Frontend/_systemMonitor.html +++ b/Frontend/_systemMonitor.html @@ -5,11 +5,9 @@
-

電錶系統

-
- - - +

+
+
@@ -19,20 +17,46 @@ \ No newline at end of file diff --git a/Frontend/img/defdev.png b/Frontend/img/defdev.png new file mode 100644 index 0000000..42e7855 Binary files /dev/null and b/Frontend/img/defdev.png differ diff --git a/Frontend/index.html b/Frontend/index.html index 1c1654c..40bf6c9 100644 --- a/Frontend/index.html +++ b/Frontend/index.html @@ -25,6 +25,7 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li + @@ -1114,19 +1115,17 @@ License: You must have a valid license purchased only from wrapbootstrap.com (li