|
@@ -94,14 +94,22 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
$timeout(function() {
|
|
$timeout(function() {
|
|
|
$ionicLoading.hide();
|
|
$ionicLoading.hide();
|
|
|
//主页参数
|
|
//主页参数
|
|
|
- console.log(req.t2);
|
|
|
|
|
|
|
+ $scope.table1 = req.t.t1;
|
|
|
|
|
+ $scope.table2 = req.t.t2;
|
|
|
|
|
+ $scope.table3 = req.t.t3;
|
|
|
|
|
+ $scope.table4 = req.t.t4;
|
|
|
|
|
+
|
|
|
//tn曲线图参数
|
|
//tn曲线图参数
|
|
|
$scope.item1= req.speed;
|
|
$scope.item1= req.speed;
|
|
|
$scope.data2 = [req.torque,req.v,req.p,req.a,req.efficiency];
|
|
$scope.data2 = [req.torque,req.v,req.p,req.a,req.efficiency];
|
|
|
//五轴图参数
|
|
//五轴图参数
|
|
|
$scope.item2 = req.nj;
|
|
$scope.item2 = req.nj;
|
|
|
$scope.data3 = [req.glys,req.ssgl,req.xl,req.zs,req.dl];
|
|
$scope.data3 = [req.glys,req.ssgl,req.xl,req.zs,req.dl];
|
|
|
-
|
|
|
|
|
|
|
+ //效率云图
|
|
|
|
|
+ $scope.x = req.n_zs;
|
|
|
|
|
+ $scope.y = req.n_zj;
|
|
|
|
|
+ $scope.z = req.n_xl;
|
|
|
|
|
+ console.log(req)
|
|
|
});
|
|
});
|
|
|
}).error(function(){
|
|
}).error(function(){
|
|
|
$timeout(function(){
|
|
$timeout(function(){
|
|
@@ -116,8 +124,8 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
]
|
|
]
|
|
|
});
|
|
});
|
|
|
})
|
|
})
|
|
|
- })
|
|
|
|
|
-
|
|
|
|
|
|
|
+ })
|
|
|
|
|
+
|
|
|
var Stat = G2.Stat;
|
|
var Stat = G2.Stat;
|
|
|
var vvvdata = [];
|
|
var vvvdata = [];
|
|
|
for(var i = 0; i <= 20; i ++) {
|
|
for(var i = 0; i <= 20; i ++) {
|
|
@@ -135,14 +143,14 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
var chart = new G2.Chart({
|
|
var chart = new G2.Chart({
|
|
|
id: 'c1',
|
|
id: 'c1',
|
|
|
forceFit: true,
|
|
forceFit: true,
|
|
|
- height: 450
|
|
|
|
|
|
|
+ height: 700
|
|
|
});
|
|
});
|
|
|
//为了将数据与图片上的位置完全吻合,我们需要将横轴和纵轴的范围设定为数据对应范围,并将范围优化处理关闭
|
|
//为了将数据与图片上的位置完全吻合,我们需要将横轴和纵轴的范围设定为数据对应范围,并将范围优化处理关闭
|
|
|
var defs = {
|
|
var defs = {
|
|
|
'l': {
|
|
'l': {
|
|
|
type: 'linear',
|
|
type: 'linear',
|
|
|
- min: 0,
|
|
|
|
|
- max: 512,
|
|
|
|
|
|
|
+ min: 2735,
|
|
|
|
|
+ max: 2900,
|
|
|
nice: false//优化处理关闭
|
|
nice: false//优化处理关闭
|
|
|
},
|
|
},
|
|
|
'g': {
|
|
'g': {
|
|
@@ -152,7 +160,7 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
nice: false
|
|
nice: false
|
|
|
},
|
|
},
|
|
|
'Altitude': {
|
|
'Altitude': {
|
|
|
- tickCount:200
|
|
|
|
|
|
|
+ tickCount:5
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|
|
@@ -173,13 +181,17 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
}).success(function(req){
|
|
}).success(function(req){
|
|
|
$ionicLoading.hide();
|
|
$ionicLoading.hide();
|
|
|
$timeout(function() {
|
|
$timeout(function() {
|
|
|
|
|
+ //主页参数
|
|
|
|
|
+ $scope.table1 = req.t.t1;
|
|
|
|
|
+ $scope.table2 = req.t.t2;
|
|
|
|
|
+ $scope.table3 = req.t.t3;
|
|
|
|
|
+ $scope.table4 = req.t.t4;
|
|
|
//tn曲线图参数
|
|
//tn曲线图参数
|
|
|
$scope.item1= req.speed;
|
|
$scope.item1= req.speed;
|
|
|
$scope.data2 = [req.torque,req.v,req.p,req.a,req.efficiency];
|
|
$scope.data2 = [req.torque,req.v,req.p,req.a,req.efficiency];
|
|
|
//五轴图参数
|
|
//五轴图参数
|
|
|
- $scope.item2 = req.torque;
|
|
|
|
|
- $scope.data3 = [req.speed,req.v,req.p,req.a,req.efficiency];
|
|
|
|
|
- console.log(req)
|
|
|
|
|
|
|
+ $scope.item2 = req.nj;
|
|
|
|
|
+ $scope.data3 = [req.glys,req.ssgl,req.xl,req.zs,req.dl];
|
|
|
});
|
|
});
|
|
|
}).error(function(){
|
|
}).error(function(){
|
|
|
$timeout(function(){
|
|
$timeout(function(){
|
|
@@ -196,6 +208,8 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
|
|
|
$scope.tabs = [
|
|
$scope.tabs = [
|
|
|
{"title":"主页","url":"line.html"},
|
|
{"title":"主页","url":"line.html"},
|
|
@@ -224,6 +238,7 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
$scope.num = [0,1,2,3,4];
|
|
$scope.num = [0,1,2,3,4];
|
|
|
|
|
|
|
|
}])
|
|
}])
|
|
|
|
|
+
|
|
|
starter.filter('filet', function () {
|
|
starter.filter('filet', function () {
|
|
|
return function (filepath) {
|
|
return function (filepath) {
|
|
|
if(filepath){
|
|
if(filepath){
|
|
@@ -232,6 +247,7 @@ starter.filter('filet', function () {
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
})
|
|
})
|
|
|
|
|
+
|
|
|
starter.directive('main', function() {
|
|
starter.directive('main', function() {
|
|
|
return {
|
|
return {
|
|
|
scope: {
|
|
scope: {
|