diff --git a/ruoyi-admin/src/main/resources/static/css/board/month.css b/ruoyi-admin/src/main/resources/static/css/board/month.css index 3062afb..ad33918 100644 --- a/ruoyi-admin/src/main/resources/static/css/board/month.css +++ b/ruoyi-admin/src/main/resources/static/css/board/month.css @@ -30,4 +30,49 @@ body { height: 35%; top: 60%; left: 26.5%; +} +.ecosphere{ + background: url(../../img/board/month/one.png) no-repeat; + background-size: 100% 100%; + position: absolute; + width: 23%; + height: 35%; + top: 15%; + left: 26.5%; +} +.HighlightOne{ + background-repeat: no-repeat; + background-size: 100% 100%; + position: absolute; + width: 10%; + height: 17.5%; + top: 15%; + left: 50.5%; +} +.HighlightTwo{ + background-repeat: no-repeat; + background-size: 100% 100%; + position: absolute; + width: 10%; + height: 17.5%; + top: 15%; + left: 63.5%; +} +.HighlightThree{ + background-repeat: no-repeat; + background-size: 100% 100%; + position: absolute; + width: 10%; + height: 17.5%; + top: 33.5%; + left: 50.5%; +} +.HighlightFour{ + background-repeat: no-repeat; + background-size: 100% 100%; + position: absolute; + width: 10%; + height: 17.5%; + top: 33.5%; + left: 63.5%; } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/img/board/month/one.png b/ruoyi-admin/src/main/resources/static/img/board/month/one.png new file mode 100644 index 0000000..1816258 Binary files /dev/null and b/ruoyi-admin/src/main/resources/static/img/board/month/one.png differ diff --git a/ruoyi-admin/src/main/resources/static/js/board/month.js b/ruoyi-admin/src/main/resources/static/js/board/month.js index 78ede06..75b40ad 100644 --- a/ruoyi-admin/src/main/resources/static/js/board/month.js +++ b/ruoyi-admin/src/main/resources/static/js/board/month.js @@ -26,6 +26,14 @@ $(() => { yData: data.map(val => val.qty), }, document.getElementById("outputStatistics"), '') }) + autoUpdate(url + "/selectHighlightProducts", INTERVAL, data => { + console.log(data) + let url = data.map(val =>val.picturePath) + $('#HighlightOne').css({backgroundImage:`url("http://10.100.70.5:9090/${url[0]}")`}) + $('#HighlightTwo').css({backgroundImage:`url("http://10.100.70.5:9090/${url[1]}")`}) + $('#HighlightThree').css({backgroundImage:`url("http://10.100.70.5:9090/${url[2]}")`}) + $('#HighlightFour').css({backgroundImage:`url("http://10.100.70.5:9090/${url[3]}")`}) + }) lineChart(null, document.getElementById("quality")) @@ -48,8 +56,8 @@ const moduleTitle = () => { const html = ` 第${new Date().getMonth().toString()}月 生产数据分析平台 用户满意度 - 周订单执行情况 - 班组 6s 排行榜 + 工业互联网生态圈 + 亮点产品 周生产型号统计 产量统计 品质提升 diff --git a/ruoyi-admin/src/main/resources/templates/broad/month.html b/ruoyi-admin/src/main/resources/templates/broad/month.html index 63df1ca..e6e08ba 100644 --- a/ruoyi-admin/src/main/resources/templates/broad/month.html +++ b/ruoyi-admin/src/main/resources/templates/broad/month.html @@ -37,6 +37,14 @@
+ +
+ + +
+
+
+