Commit afd703c1 authored by 李苏's avatar 李苏 💬

新改

parent 767162bb
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
padding: .1rem .2rem .1rem .2rem; padding: .1rem .2rem .1rem .2rem;
} }
.center .center-left{ .center .center-left{
width: 30%; width: 25%;
padding: .1rem; padding: .1rem;
/* border: 1px solid red;*/ /* border: 1px solid red;*/
...@@ -181,7 +181,7 @@ ...@@ -181,7 +181,7 @@
margin-top: 0.1rem; margin-top: 0.1rem;
} }
.center .center-cen{ .center .center-cen{
width: 40%; width: 50%;
padding: .1rem; padding: .1rem;
} }
.center .center-cen .cen-top{ .center .center-cen .cen-top{
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
} }
.center .center-right{ .center .center-right{
width: 30%; width: 25%;
padding: .1rem; padding: .1rem;
} }
......
...@@ -1940,7 +1940,6 @@ $(function () { ...@@ -1940,7 +1940,6 @@ $(function () {
}); });
/*时段产量图表*/ /*时段产量图表*/
function setTimeProductionEchart(chart,apidata) { function setTimeProductionEchart(chart,apidata) {
console.log(apidata)
if(apidata){ if(apidata){
var list=[] var list=[]
apidata.xseriesList.forEach(function(e,index){ apidata.xseriesList.forEach(function(e,index){
...@@ -2023,7 +2022,7 @@ function setTimeProductionEchart(chart,apidata) { ...@@ -2023,7 +2022,7 @@ function setTimeProductionEchart(chart,apidata) {
type: 'category', type: 'category',
data: dateList, data: dateList,
axisLabel: { axisLabel: {
interval: 0, interval: 1,
tooltip: { tooltip: {
show: true, show: true,
}, },
...@@ -2032,26 +2031,26 @@ function setTimeProductionEchart(chart,apidata) { ...@@ -2032,26 +2031,26 @@ function setTimeProductionEchart(chart,apidata) {
fontSize: 12 fontSize: 12
}, },
color: 'rgba(255,255,255,0.6)', color: 'rgba(255,255,255,0.6)',
// formatter:function(value){ formatter:function(value){
// var str = ""; var str = "";
// var num = 4; //每行显示字数 var num = 6; //每行显示字数
// var valLength = value.length; //该项x轴字数 var valLength = value.length; //该项x轴字数
// var rowNum = Math.ceil(valLength / num); // 行数 var rowNum = Math.ceil(valLength / num); // 行数
// if(rowNum > 1) { if(rowNum > 1) {
// for(var i = 0; i < rowNum; i++) { for(var i = 0; i < rowNum; i++) {
// var temp = ""; var temp = "";
// var start = i * num; var start = i * num;
// var end = start + num; var end = start + num;
// temp = value.substring(start, end) + "\n"; temp = value.substring(start, end) + "\n";
// str += temp; str += temp;
// } }
// return str; return str;
// } else { } else {
// return value; return value;
// } }
// } }
}, },
axisTick: { axisTick: {
show: false show: false
...@@ -2065,8 +2064,6 @@ function setTimeProductionEchart(chart,apidata) { ...@@ -2065,8 +2064,6 @@ function setTimeProductionEchart(chart,apidata) {
}, },
yAxis: [{ yAxis: [{
type: 'value', type: 'value',
min: 0.0,
max: 50.0,
splitLine: { splitLine: {
show: false, show: false,
lineStyle: { lineStyle: {
...@@ -2409,10 +2406,12 @@ function setRpcHglEchart(chart,apidata1,apidata2) { ...@@ -2409,10 +2406,12 @@ function setRpcHglEchart(chart,apidata1,apidata2) {
let wglist=[] let wglist=[]
if(apidata1&&apidata2){ if(apidata1&&apidata2){
apidata1.forEach(function(e){ apidata1.forEach(function(e){
datelist.push(e.fkrq)
hgllist.push(e.hgl) hgllist.push(e.hgl)
}) })
apidata2.forEach(function(e){ apidata2.forEach(function(e){
console.log(e.jhrq)
datelist.push(e.jhrq.slice(5))
jslist.push(e.jhsl) jslist.push(e.jhsl)
wglist.push(e.wgsl) wglist.push(e.wgsl)
}) })
...@@ -2574,7 +2573,7 @@ function setRpcHglEchart(chart,apidata1,apidata2) { ...@@ -2574,7 +2573,7 @@ function setRpcHglEchart(chart,apidata1,apidata2) {
{ {
name: '合格率', name: '合格率',
type: 'line', type: 'line',
yAxisIndex: 1, yAxisIndex: 0,
data: hgllist||[20,30,90,30,29], data: hgllist||[20,30,90,30,29],
itemStyle:{ itemStyle:{
normal:{ normal:{
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
</div> </div>
<div class="left-cen rightTop border"> <div class="left-cen rightTop border">
<div class="title">日排产达成数据</div> <div class="title">日排产&合格率</div>
<div class="bottom-b"> <div class="bottom-b">
<div id="chartRpcdcsj" class="allnav"></div> <div id="chartRpcdcsj" class="allnav"></div>
</div> </div>
...@@ -286,14 +286,14 @@ ...@@ -286,14 +286,14 @@
</ul> </ul>
</div> </div>
</div> </div>
<div class="right-cen border"> <div class="right-cen border" style="display: none;">
<div class="title">合格率</div> <div class="title">合格率</div>
<div class="right-cen-cent"> <div class="right-cen-cent">
<div id="chartHgl" class="allnav"></div> <div id="chartHgl" class="allnav"></div>
</div> </div>
</div> </div>
<div class="right-bottom rightTop border"> <div class="right-bottom rightTop border" style="height: 6.8rem;">
<div class="title">工艺流程图</div> <div class="title">工艺流程图</div>
<div class="chat"> <div class="chat">
<canvas id="gylct" style="width: 100%;height: 100%"></canvas> <canvas id="gylct" style="width: 100%;height: 100%"></canvas>
...@@ -355,8 +355,9 @@ ...@@ -355,8 +355,9 @@
} }
/* 调用 */ /* 调用 */
function getAlldata(){ function getAlldata(){
apisetRpcHglEchart(chartRpcdcsj)
apisetTimeProductionEchart(myChartSdcl) apisetTimeProductionEchart(myChartSdcl)
apisetDailyDataEchart(chartRpcdcsj) // apisetDailyDataEchart(chartRpcdcsj)
apisetPieDailyChart(chartRjh) apisetPieDailyChart(chartRjh)
apisetPieDailyCharty(chartYjh) apisetPieDailyCharty(chartYjh)
apisetHglEchart(chartHgl) apisetHglEchart(chartHgl)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment