公司级增加项目筛选,开车看板修改
This commit is contained in:
@@ -68,6 +68,11 @@
|
||||
.tab .t-item {
|
||||
font-size: 13px;
|
||||
}
|
||||
|
||||
.bw-item-content {
|
||||
overflow: hidden;
|
||||
overflow-y: scroll;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
@@ -116,11 +121,11 @@
|
||||
</div>
|
||||
<div class="tab-wrap">
|
||||
<div class="tab" data-value="1">
|
||||
<div class="t-item" style="background-color: #B3764D">未投料</div>
|
||||
<div class="t-item" style="background-color: #DD226D">未投料</div>
|
||||
<div class="spline"></div>
|
||||
<div class="t-item" style="background-color: #DD226D">投料中</div>
|
||||
<div class="t-item" style="background-color: #57C43C">投料中</div>
|
||||
<div class="spline"></div>
|
||||
<div class="t-item" style="background-color: #57C43C">投料完成</div>
|
||||
<div class="t-item" style="background-color: #B3764D">投料完成</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="bw-item-content">
|
||||
@@ -487,7 +492,7 @@
|
||||
var threeData = JSON.parse(fourDecisionStr);
|
||||
var threewidth = Math.floor(100 / threeData.length);
|
||||
$.each(threeData, function (index, item) {
|
||||
$("#three").append("<div id='three" + index + "' style='width:" + threewidth + "%; height:100%; display:inline-block'></div>");
|
||||
$("#three").append("<div id='three" + index + "' style='width:129px; height:148px; display:inline-block'></div>");
|
||||
});
|
||||
|
||||
//图4
|
||||
@@ -495,7 +500,7 @@
|
||||
var fourData = JSON.parse(fourStr);
|
||||
var fourwidth = Math.floor(100 / (fourData.length / 2));
|
||||
$.each(fourData, function (index, item) {
|
||||
$("#four").append("<div id='four" + index + "' style='width:" + fourwidth + "%; height:50%; display:inline-block'></div>");
|
||||
$("#four").append("<div id='four" + index + "' style='width:129px; height:148px; display:inline-block'></div>");
|
||||
});
|
||||
|
||||
//图5
|
||||
@@ -503,7 +508,7 @@
|
||||
var fiveData = JSON.parse(fiveStr);
|
||||
var fivewidth = Math.floor(100 / (fiveData.length / 2));
|
||||
$.each(fourData, function (index, item) {
|
||||
$("#five").append("<div id='five" + index + "' style='width:" + fivewidth + "%; height:50%; display:inline-block'></div>");
|
||||
$("#five").append("<div id='five" + index + "' style='width:129px; height:148px; display:inline-block'></div>");
|
||||
});
|
||||
|
||||
//图6
|
||||
@@ -816,19 +821,26 @@
|
||||
//if (item.RunType == 3) {
|
||||
// colorData = ["#CCCC33", "#8FCC33", "#57C43C", "#22DD48"];
|
||||
//}
|
||||
var colorData = ["#7A7AA7", "#5656CC", "#3939E9", "#2222FF"];
|
||||
var colorData = ["#DD226D", "#DD226D", "#DD226D", "#DD226D"];
|
||||
if (item.RunType == 2) {
|
||||
colorData = ["#DD226D", "#DD226D", "#E95B39", "#DD226D"];
|
||||
colorData = ["#57C43C", "#57C43C", "#57C43C", "#57C43C"];
|
||||
}
|
||||
if (item.RunType == 3) {
|
||||
colorData = ["#3fbb6a", "#3fbb6a", "#3fbb6a", "#3fbb6a"];
|
||||
colorData = ["#B3764D", "#B3764D", "#B3764D", "#B3764D"];
|
||||
}
|
||||
var chart = echarts.init(document.getElementById('four' + index));
|
||||
var value = 100;
|
||||
|
||||
//名称
|
||||
var sname = item.SystemName;
|
||||
var index = sname.indexOf(" ")
|
||||
if (index!=-1) {
|
||||
sname = sname.substring(0, index) + "\n" + sname.substring(index + 1, sname.length);
|
||||
}
|
||||
option = {
|
||||
backgroundColor: '000',
|
||||
title: {
|
||||
text: `` + item.SystemName,
|
||||
text: `` + sname,
|
||||
subtext: item.RunType == 1 ? "未投料" : item.RunType == 2 ? "投料中" : "投料完成",
|
||||
left: 'center',
|
||||
top: '45%', //top待调整
|
||||
@@ -926,10 +938,17 @@
|
||||
}
|
||||
var chart = echarts.init(document.getElementById('five' + index));
|
||||
var value = 100;
|
||||
//名称
|
||||
var sname = item.SystemName;
|
||||
var index = sname.indexOf(" ")
|
||||
if (index != -1) {
|
||||
sname = sname.substring(0, index) + "\n" + sname.substring(index + 1, sname.length);
|
||||
}
|
||||
|
||||
option = {
|
||||
backgroundColor: '000',
|
||||
title: {
|
||||
text: `` + item.SystemName,
|
||||
text: sname,
|
||||
subtext: item.RunType == 1 ? "未运行" : item.RunType == 2 ? "运行中" : "停车检修",
|
||||
left: 'center',
|
||||
top: '45%', //top待调整
|
||||
|
||||
Reference in New Issue
Block a user