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 feeb724..d2aa9e6 100644 --- a/ruoyi-admin/src/main/resources/static/css/board/month.css +++ b/ruoyi-admin/src/main/resources/static/css/board/month.css @@ -52,36 +52,36 @@ body { .HighlightOne{ background-repeat: no-repeat; background-size: 100% 100%; - position: absolute; - width: 10%; - height: 16.5%; - top: 16%; - left: 27.5%; + /*position: absolute;*/ + width:200px; + height: 200px; + /*top: 16%;*/ + /*left: 27.5%;*/ } .HighlightTwo{ background-repeat: no-repeat; background-size: 100% 100%; - position: absolute; - width: 10%; - height: 16.5%; - top: 16%; - left: 38.5%; + /*position: absolute;*/ + width:200px; + height: 200px; + /*top: 16%;*/ + /*left: 38.5%;*/ } .HighlightThree{ background-repeat: no-repeat; background-size: 100% 100%; - position: absolute; - width: 10%; - height: 16.5%; - top: 34.5%; - left: 27.5%; + /*position: absolute;*/ + width:200px; + height: 200px; + /*top: 34.5%;*/ + /*left: 27.5%;*/ } .HighlightFour{ background-repeat: no-repeat; background-size: 100% 100%; - position: absolute; - width: 10%; - height: 16.5%; - top: 34.5%; - left: 38.5% + /*position: absolute;*/ + width:200px; + height: 200px; + /*top: 34.5%;*/ + /*left: 38.5%*/ } \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/css/sliderStyle.css b/ruoyi-admin/src/main/resources/static/css/sliderStyle.css new file mode 100644 index 0000000..9bafc0b --- /dev/null +++ b/ruoyi-admin/src/main/resources/static/css/sliderStyle.css @@ -0,0 +1,35 @@ +@charset "utf-8"; +/* theme-default */ +.theme-default #slider{margin:34px auto 0px;width:960px;height:366px;} +.theme-default .nivoSlider{background:url("../images/loading.gif") no-repeat 50% 50% rgb(255, 255, 255);margin-bottom:50px;position:relative;} +.theme-default .nivoSlider img{left:0px;top:0px;display:none;position:absolute;} +.theme-default .nivoSlider a{border:0px currentColor;display:block;} +.theme-default .nivo-controlNav{left:384px;width:193px;height:38px;bottom:-14px;padding-top:14px;padding-left:50px;position:absolute;z-index:9;background-image:url("../images/bullets-bg.png");background-repeat:no-repeat;} +.theme-default .nivo-controlNav a{background:url("../images/bullets.png") no-repeat;border:0px currentColor;width:23px;height:17px;text-indent:-9999px;margin-right:3px;float:left;display:block;} +.theme-default .nivo-controlNav a.active{background-position:0px -17px;} +.theme-default .nivo-directionNav a{background:url("../images/arrows.png") no-repeat;border:0px currentColor;width:65px;height:65px;text-indent:-9999px;display:block;} +.theme-default a.nivo-nextNav{background-position:-65px 0px;top:151px;right:30px;} +.theme-default a.nivo-prevNav{left:30px;top:151px;} +.theme-default a.nivo-nextNav:hover{background-position:-65px -65px;top:151px;right:30px;} +.theme-default a.nivo-prevNav:hover{background-position:0px -65px;left:30px;top:151px;} +.theme-default .nivo-caption{font-family:Helvetica,Arial,sans-serif;} +.theme-default .nivo-caption a{color:rgb(255, 255, 255);border-bottom-color:rgb(255, 255, 255);border-bottom-width:1px;border-bottom-style:dotted;} +.theme-default .nivo-caption a:hover{color:rgb(255, 255, 255);} +/* nivoSlider */ +.nivoSlider{position:relative;} +.nivoSlider img{left:0px;top:0px;position:absolute;} +.nivoSlider a.nivo-imageLink{margin:0px;padding:0px;border:0px currentColor;left:0px;top:0px;width:100%;height:100%;display:none;position:absolute;z-index:6;} +.nivoSlider{position:relative;} +.nivoSlider img{left:0px;top:0px;position:absolute;} +.nivoSlider a.nivo-imageLink{margin:0px;padding:0px;border:0px currentColor;left:0px;top:0px;width:100%;height:100%;display:none;position:absolute;z-index:6;} +.nivo-slice{height:100%;display:block;position:absolute;z-index:5;} +.nivo-box{display:block;position:absolute;z-index:5;} +.nivo-caption{background:rgb(0, 0, 0);left:0px;width:30%;bottom:0px;color:rgb(255, 255, 255);display:none;position:absolute;z-index:8;opacity:0.8;} +.nivo-caption p{margin:0px;display:none;} +.nivo-caption a{display:inline !important;} +.nivo-html-caption{display:none;} +.nivo-directionNav a{top:45%;position:absolute;z-index:9;cursor:pointer;} +.nivo-prevNav{left:0px;} +.nivo-nextNav{right:0px;} +.nivo-controlNav a{position:relative;z-index:9;cursor:pointer;} +.nivo-controlNav a.active{font-weight:bold;} \ No newline at end of file diff --git a/ruoyi-admin/src/main/resources/static/img/board/intelligentRefrigeratorInterconnectionFactory/arrows.gif b/ruoyi-admin/src/main/resources/static/img/board/intelligentRefrigeratorInterconnectionFactory/arrows.gif index a75ee16..da20a55 100644 Binary files a/ruoyi-admin/src/main/resources/static/img/board/intelligentRefrigeratorInterconnectionFactory/arrows.gif and b/ruoyi-admin/src/main/resources/static/img/board/intelligentRefrigeratorInterconnectionFactory/arrows.gif differ diff --git a/ruoyi-admin/src/main/resources/static/js/board/beforeLibrary.js b/ruoyi-admin/src/main/resources/static/js/board/beforeLibrary.js index 5502c44..150822f 100644 --- a/ruoyi-admin/src/main/resources/static/js/board/beforeLibrary.js +++ b/ruoyi-admin/src/main/resources/static/js/board/beforeLibrary.js @@ -103,7 +103,7 @@ $(() => { xName: data.map(value => value.name), yDataTwo: data.map(value => value.qty), yDataTwoName: "成品数量", - }, document.getElementById("FinishedGoodsWarehousingStatisticsByHour")); + }, document.getElementById("FinishedGoodsWarehousingStatisticsByHour"),30); }) //成品质量详情轮询 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 cda066d..230f314 100644 --- a/ruoyi-admin/src/main/resources/static/js/board/month.js +++ b/ruoyi-admin/src/main/resources/static/js/board/month.js @@ -9,32 +9,46 @@ $(() => { autoUpdate(url + "/selectUserSatisfaction", INTERVAL, data => { console.log(data) multipleVerticalBarChartTwo({ - xName: ['产品体验', "购物体验","服务体验","订单履行率"], - yDataOne: [data[0].productRate, data[0].shoppingRate,data[0].serviceRate,data[0].orderRate], - yDataOneName: ''+data.map(val => val.yearName)[0], - yDataTwo: [data[1].productRate, data[1].shoppingRate,data[1].serviceRate,data[1].orderRate], - yDataTwoName: ''+data.map(val => val.yearName)[1], - }, document.getElementById("satisfaction"),undefined,'%') + xName: ['产品体验', "购物体验", "服务体验", "订单履行率"], + yDataOne: [data[0].productRate, data[0].shoppingRate, data[0].serviceRate, data[0].orderRate], + yDataOneName: '' + data.map(val => val.yearName)[0], + yDataTwo: [data[1].productRate, data[1].shoppingRate, data[1].serviceRate, data[1].orderRate], + yDataTwoName: '' + data.map(val => val.yearName)[1], + }, document.getElementById("satisfaction"), undefined, '%') }) autoUpdate(url + "/selectProductInStoreGroupMonth", INTERVAL, data => { - total(data.map(val => val.qty).reduce((val1,val2) => val1 + val2,0),'#total') + total(data.map(val => val.qty).reduce((val1, val2) => val1 + val2, 0), '#total') verticalBarChart({ xName: data.map(val => `${val.name}月`), yData: data.map(val => val.qty), }, document.getElementById("outputStatistics"), '') }) autoUpdate(url + "/selectHighlightProducts", INTERVAL, 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]}")`}) + 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")) + }) +$(document).ready(function(){ + + $('#slider').nivoSlider({ + effect:'random', + slices:15, + animSpeed:500, + pauseTime:3000, + directionNav:false, + controlNav:false, + keyboardNav:false + }); + +}); const curWeek = () => { let today = new Date(); @@ -69,4 +83,4 @@ const total = (val1 = 0, el) => { ${new Date().getFullYear()}年 合计:${val1} 台 ` $(el).html(html) -} \ No newline at end of file +} diff --git a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js index ddb7535..71744a7 100644 --- a/ruoyi-admin/src/main/resources/static/js/echartsCommon.js +++ b/ruoyi-admin/src/main/resources/static/js/echartsCommon.js @@ -279,7 +279,7 @@ const horizontalRoundedBarChartWithBackgroundTwo = function (data, id) { } // 柱状+折线图 -const barChartAndLineChart = function (data, id) { +const barChartAndLineChart = function (data, id,rotate=0) { let charts = echarts.init(id); if (!data) { data = { @@ -325,6 +325,8 @@ const barChartAndLineChart = function (data, id) { }, }, axisLabel: { + rotate:rotate, + interval:0, //坐标轴刻度标签的相关设置 textStyle: { color: "#d1e6eb", @@ -665,6 +667,7 @@ const barChartAndLineChartThree = function (data, id) { }, }, axisLabel: { + interval:0, //坐标轴刻度标签的相关设置 textStyle: { color: "#d1e6eb", diff --git a/ruoyi-admin/src/main/resources/static/js/jquery.nivo.slider.pack.js b/ruoyi-admin/src/main/resources/static/js/jquery.nivo.slider.pack.js new file mode 100644 index 0000000..6463362 --- /dev/null +++ b/ruoyi-admin/src/main/resources/static/js/jquery.nivo.slider.pack.js @@ -0,0 +1,10 @@ +/* + * jQuery Nivo Slider v2.7.1 + * http://www.jiepin.net/ + * + * http://www.jiepin.net/ + * + * March 2010 + */ + +(function(a){var b=function(b,c){var d=a.extend({},a.fn.nivoSlider.defaults,c);var e={currentSlide:0,currentImage:"",totalSlides:0,running:false,paused:false,stop:false};var f=a(b);f.data("nivo:vars",e);f.css("position","relative");f.addClass("nivoSlider");var g=f.children();g.each(function(){var b=a(this);var c="";if(!b.is("img")){if(b.is("a")){b.addClass("nivo-imageLink");c=b}b=b.find("img:first")}var d=b.width();if(d==0)d=b.attr("width");var g=b.height();if(g==0)g=b.attr("height");if(d>f.width()){f.width(d)}if(g>f.height()){f.height(g)}if(c!=""){c.css("display","none")}b.css("display","none");e.totalSlides++});if(d.randomStart){d.startSlide=Math.floor(Math.random()*e.totalSlides)}if(d.startSlide>0){if(d.startSlide>=e.totalSlides)d.startSlide=e.totalSlides-1;e.currentSlide=d.startSlide}if(a(g[e.currentSlide]).is("img")){e.currentImage=a(g[e.currentSlide])}else{e.currentImage=a(g[e.currentSlide]).find("img:first")}if(a(g[e.currentSlide]).is("a")){a(g[e.currentSlide]).css("display","block")}f.css("background",'url("'+e.currentImage.attr("src")+'") no-repeat');f.append(a('