add - 铝内胆看板

master
wenjy 3 years ago
parent c6f79edf3f
commit 8cf8906cab

@ -0,0 +1,79 @@
package com.productionboard.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
/**
*
* @author WenJY
* @date 20220420 14:40
*/
@Controller
@RequestMapping("/aluminumTank")
public class AluminumTtankController {
private String prefix = "aluminumTank/index";
@GetMapping()
public String index()
{
return prefix;
}
/**
*
*
* @author WenJY
* @date 2022/4/20 10:15
* @return java.lang.String
*/
@GetMapping("/getStatisticalOutputByModel")
@ResponseBody
public String getStatisticalOutputByModel() {
String info =
"{\n"
+ "\t\"datas\":[\n"
+ " {\"ranking\": 1,\"station\":\"SC227\",\"value\": 199999},\n"
+ " {\"ranking\": 2,\"station\":\"SC228\",\"value\": 104970},\n"
+ " {\"ranking\": 3,\"station\":\"SC229\",\"value\": 29034},\n"
+ " {\"ranking\": 4,\"station\":\"SC223\",\"value\": 23489},\n"
+ " {\"ranking\": 5,\"station\":\"SC224\",\"value\": 18203}\n"
+ " ],\n"
+ "\t\"plan\":[290000, 290000, 290000, 290000, 290000, 290000]\n"
+ "}";
return info;
}
/**
*
*
* @author WenJY
* @date 2022/4/20 10:16
* @return java.lang.String
*/
@GetMapping("/getInventoryStatistics")
@ResponseBody
public String getInventoryStatistics() {
String info =
"{\n"
+ "\t\"datas\":[\n"
+ " {\n"
+ " \"name\": \"SC528\",\n"
+ " \"value\": 175.17\n"
+ " },\n"
+ " {\n"
+ " \"name\": \"SC529\",\n"
+ " \"value\": 148.35\n"
+ " },\n"
+ " {\n"
+ " \"name\": \"SC327\",\n"
+ " \"value\": 95.36\n"
+ " }\n"
+ " ]\n"
+ "}";
return info;
}
}

@ -0,0 +1,35 @@
body {
background-color: aquamarine;
background: url(../../img/aluminumTank/aluminumTankbackground.jpg);
background-position: center center;
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
}
.statisticalOutputByModel{
border: 1px solid red;
position: absolute;
width: 45.5%;
height: 32%;
top: 23%;
left: 3.5%;
}
.inventoryStatistics{
border: 1px solid red;
position: absolute;
width: 45.5%;
height: 32%;
top: 23%;
right: 3.5%;
}
.hourlyOutputStatistics{
border: 1px solid red;
position: absolute;
width: 93%;
height: 32%;
bottom: 4.5%;
left: 3.5%;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 MiB

@ -0,0 +1,18 @@
$(()=>{
//班组统计
onDutyPlan(1234,1202,33);
//按型号统计产量
$.getJSON('/aluminumTank/getStatisticalOutputByModel', function (result) {
horizontalBarChart(result,document.getElementById("statisticalOutputByModel"));
});
//小时产量
bluePolygonHistogram(null,document.getElementById("hourlyOutputStatistics"));
//库存统计
$.getJSON('/aluminumTank/getInventoryStatistics', function (result) {
threeDimensionalCylindrical(result,document.getElementById("inventoryStatistics"));
});
})

@ -835,8 +835,8 @@ const multipleBrokenLineAreaDiagram = (res,ids) =>{
$(window).resize(mycharts.resize);
}
//多边形柱状图
const polygonalHistogram = (res, ids) =>{
//绿色多边形柱状图
const greenPolygonalHistogram = (res, ids) =>{
let mycharts = echarts.init(ids);
let option = {
@ -1021,8 +1021,8 @@ const polygonalHistogram = (res, ids) =>{
$(window).resize(mycharts.resize);
}
//多边形柱状图-2
const polygonalHistogram2 = (res, ids) =>{
//蓝色多边形柱状图
const bluePolygonHistogram = (res, ids) =>{
let mycharts = echarts.init(ids);
let option = {
@ -1051,7 +1051,7 @@ const polygonalHistogram2 = (res, ids) =>{
left: 20,
right: 20,
bottom: 10,
top: 40,
top: 20,
},
xAxis: {
axisLabel: {
@ -1077,18 +1077,19 @@ const polygonalHistogram2 = (res, ids) =>{
show: true,
},
data: [
"0点~2点",
"3点~5点",
"6点~8点",
"0点~2点",
"3点~5点",
"6点~8点",
"0点~2点",
"3点~5点",
"7点",
"8点",
"9点",
"10点",
"11点",
"12点",
"13点",
"14点",
],
type: "category",
},
yAxis: {
show: false,
axisLabel: {
color: "#c0c3cd",
fontSize: 14,
@ -1098,10 +1099,10 @@ const polygonalHistogram2 = (res, ids) =>{
color: "#384267",
width: 1,
},
show: true,
show: false,
},
splitLine: {
show: true,
show: false,
lineStyle: {
color: "#384267",
type: "dashed",
@ -1113,7 +1114,7 @@ const polygonalHistogram2 = (res, ids) =>{
width: 1,
type: "dashed",
},
show: true,
show: false,
},
name: "",
},

@ -7,7 +7,7 @@ $(()=>{
});
//小时产量
polygonalHistogram(null,document.getElementById("hourlyOutputStatistics"));
greenPolygonalHistogram(null,document.getElementById("hourlyOutputStatistics"));
//库存统计
$.getJSON('/tankShell/getInventoryStatistics', function (result) {

@ -0,0 +1,29 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>铝内胆数据监控平台</title>
<link rel="stylesheet" href="../../../css/aluminumTank/style.css">
<link rel="stylesheet" href="../../../css/common/ondutyplan.css">
<script src="../../../js/common/jquery.min.js"></script>
<script src="../../../js/common/echarts.min.js"></script>
<script src="../../../js/common/date-time-common.js"></script>
<script src="../../../js/common/update-split-blocks.js"></script>
<script src="../../../js/common/ondutyplan.js"></script>
<script src="../../../js/common/echarts.common.js"></script>
</head>
<body>
<!--按型号统计产量-->
<div class="statisticalOutputByModel" id="statisticalOutputByModel"></div>
<!--库存统计-->
<div class="inventoryStatistics" id="inventoryStatistics"></div>
<!--小时产量-->
<div class="hourlyOutputStatistics" id="hourlyOutputStatistics"></div>
</body>
<script src="../../../js/aluminumTank/index.js"></script>
</html>

@ -835,8 +835,8 @@ const multipleBrokenLineAreaDiagram = (res,ids) =>{
$(window).resize(mycharts.resize);
}
//多边形柱状图
const polygonalHistogram = (res, ids) =>{
//绿色多边形柱状图
const greenPolygonalHistogram = (res, ids) =>{
let mycharts = echarts.init(ids);
let option = {
@ -1021,8 +1021,8 @@ const polygonalHistogram = (res, ids) =>{
$(window).resize(mycharts.resize);
}
//多边形柱状图-2
const polygonalHistogram2 = (res, ids) =>{
//蓝色多边形柱状图
const bluePolygonHistogram = (res, ids) =>{
let mycharts = echarts.init(ids);
let option = {
@ -1051,7 +1051,7 @@ const polygonalHistogram2 = (res, ids) =>{
left: 20,
right: 20,
bottom: 10,
top: 40,
top: 20,
},
xAxis: {
axisLabel: {
@ -1077,18 +1077,19 @@ const polygonalHistogram2 = (res, ids) =>{
show: true,
},
data: [
"0点~2点",
"3点~5点",
"6点~8点",
"0点~2点",
"3点~5点",
"6点~8点",
"0点~2点",
"3点~5点",
"7点",
"8点",
"9点",
"10点",
"11点",
"12点",
"13点",
"14点",
],
type: "category",
},
yAxis: {
show: false,
axisLabel: {
color: "#c0c3cd",
fontSize: 14,
@ -1098,10 +1099,10 @@ const polygonalHistogram2 = (res, ids) =>{
color: "#384267",
width: 1,
},
show: true,
show: false,
},
splitLine: {
show: true,
show: false,
lineStyle: {
color: "#384267",
type: "dashed",
@ -1113,7 +1114,7 @@ const polygonalHistogram2 = (res, ids) =>{
width: 1,
type: "dashed",
},
show: true,
show: false,
},
name: "",
},

@ -7,7 +7,7 @@ $(()=>{
});
//小时产量
polygonalHistogram(null,document.getElementById("hourlyOutputStatistics"));
greenPolygonalHistogram(null,document.getElementById("hourlyOutputStatistics"));
//库存统计
$.getJSON('/tankShell/getInventoryStatistics', function (result) {

Loading…
Cancel
Save