Commit 23e89ebd authored by caicaicai's avatar caicaicai

修改

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