Commit 23e89ebd authored by caicaicai's avatar caicaicai

修改

parent fefbae00
......@@ -2173,6 +2173,14 @@ var HttpReq = function(){
params:param
})
},
//大屏智能调度——采区车铲比
getLargeScreenchechanbi1: function(param){
return request({
url: '/api/Dispatch/areaCarShovel',
method: 'get',
params:param
})
},
......
......@@ -219,10 +219,10 @@ export default {
dispatchBtnTitle1:'人工调度',
//车辆区域分布Echarts
carsAreaDistributionData:{
name:['矿区一', '矿区二', '矿区三'],
kache:[320, 302, 301],
chanche:[320, 302, 301],
qitache:[320, 302, 301],
name:[],
kache:[],
chanche:[],
qitache:[],
},
//各装点车铲比Echarts
carsProportionData:[
......@@ -309,10 +309,31 @@ export default {
})
//车辆区域分布Echarts
HttpReq.truckDispatching.getLargeScreenfenbu1({size:9999}).then((res) => {
console.log(res);
if(res.code == 200){
let name = [];
let kache = [];
let chanche = [];
let qitache = [];
res.data.forEach((item,index)=>{
name.push(item.name);
kache.push(item.truck);
chanche.push(item.shovel);
qitache.push(item.other);
})
this.carsAreaDistributionData.name = name;
this.carsAreaDistributionData.kache = kache;
this.carsAreaDistributionData.chanche = chanche;
this.carsAreaDistributionData.qitache = qitache;
this.carsAreaDistributionEcharts();
}
})
//各装点车铲比Echarts
HttpReq.truckDispatching.getLargeScreenchechanbi1({size:9999}).then((res) => {
if(res.code == 200){
this.carsProportionData = res.data;
this.carsProportionEcharts();
}
})
//定时器
this.intelligentSchedulTimer = setInterval(() => {
......@@ -362,9 +383,33 @@ export default {
this.dispatchFinishNum = res[0].round;
}
})
//车辆区域分布Echarts
HttpReq.truckDispatching.getLargeScreenfenbu1({size:9999}).then((res) => {
if(res.code == 200){
let name = [];
let kache = [];
let chanche = [];
let qitache = [];
res.data.forEach((item,index)=>{
name.push(item.name);
kache.push(item.truck);
chanche.push(item.shovel);
qitache.push(item.other);
})
this.carsAreaDistributionData.name = name;
this.carsAreaDistributionData.kache = kache;
this.carsAreaDistributionData.chanche = chanche;
this.carsAreaDistributionData.qitache = qitache;
this.carsAreaDistributionEcharts();
}
})
//各装点车铲比Echarts
HttpReq.truckDispatching.getLargeScreenchechanbi1({size:9999}).then((res) => {
if(res.code == 200){
this.carsProportionData = res.data;
this.carsProportionEcharts();
}
})
}, 10000)
})
......
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