|
| xqd
@@ -16,8 +16,8 @@ starter.controller('loginCtrl',["$scope",'$state','$ionicLoading','$timeout','$i
|
|
|
},1500);
|
|
|
}else{
|
|
|
var alertPopup = $ionicPopup.alert({
|
|
|
- title: '账号密码不正确',
|
|
|
- template: '唯一账号密码:admin!!!',
|
|
|
+ title: '错误!',
|
|
|
+ template: '账号或密码输入错误!',
|
|
|
buttons: [
|
|
|
{
|
|
|
text: '<b>确定</b>',
|
|
| xqd
@@ -236,7 +236,7 @@ starter.controller('showCtrl',["$scope",'$ionicHistory','$state','$timeout','$st
|
|
|
{"title":"主页","url":"line.html"},
|
|
|
{"title":"TN曲线","url":"tn.html"},
|
|
|
{"title":"五轴图","url":"zhou.html"},
|
|
|
- {"title":"效率云图","url":"strom.html"}];
|
|
|
+ {"title":"耐久测试","url":"strom.html"}];
|
|
|
|
|
|
$scope.currentTab = 'line.html';
|
|
|
$scope.go = function(result){
|
|
| xqd
@@ -280,7 +280,7 @@ starter.directive('main', function() {
|
|
|
data2: "="
|
|
|
},
|
|
|
restrict: 'E',
|
|
|
- template: '<div style="height:700px;"></div>',
|
|
|
+ template: '<div style="height:300px;"></div>',
|
|
|
replace: true,
|
|
|
link: function($scope, element, attrs, controller) {
|
|
|
var colors = ['#a62ca6', '#8e0515', '#45baf3','#ff2420','#1a9a1a'];
|
|
| xqd
@@ -292,15 +292,15 @@ starter.directive('main', function() {
|
|
|
trigger: 'axis'
|
|
|
},
|
|
|
grid:{
|
|
|
-
|
|
|
- left:'23%'
|
|
|
+ left:'43%',
|
|
|
+ right:'1%'
|
|
|
},
|
|
|
-
|
|
|
//图例
|
|
|
legend: {
|
|
|
+ top:15,
|
|
|
data: $scope.legend1,
|
|
|
textStyle:{
|
|
|
- fontSize:22
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
// 横轴坐标轴
|
|
| xqd
@@ -310,7 +310,7 @@ starter.directive('main', function() {
|
|
|
// boundaryGap:false,
|
|
|
axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:20
|
|
|
+ fontSize:12
|
|
|
},
|
|
|
formatter: '{value} rpm'
|
|
|
},
|
|
| xqd
@@ -326,7 +326,7 @@ starter.directive('main', function() {
|
|
|
min: 0,
|
|
|
max: 4,
|
|
|
position: 'left',
|
|
|
- offset:205,
|
|
|
+ offset:135,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[0],
|
|
| xqd
@@ -334,9 +334,8 @@ starter.directive('main', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:20,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
}
|
|
|
},
|
|
| xqd
@@ -346,7 +345,7 @@ starter.directive('main', function() {
|
|
|
min: 193,
|
|
|
max: 202,
|
|
|
position: 'left',
|
|
|
- offset: 150,
|
|
|
+ offset: 100,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[1],
|
|
| xqd
@@ -354,9 +353,8 @@ starter.directive('main', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:15,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
| xqd
@@ -366,7 +364,7 @@ starter.directive('main', function() {
|
|
|
min: 0,
|
|
|
max: 1300,
|
|
|
position: 'left',
|
|
|
- offset:90,
|
|
|
+ offset:57,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[2],
|
|
| xqd
@@ -375,7 +373,7 @@ starter.directive('main', function() {
|
|
|
},
|
|
|
axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
| xqd
@@ -385,7 +383,7 @@ starter.directive('main', function() {
|
|
|
min: 1,
|
|
|
max: 6,
|
|
|
position: 'left',
|
|
|
- offset:45,
|
|
|
+ offset:35,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[3],
|
|
| xqd
@@ -393,9 +391,8 @@ starter.directive('main', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:20,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
| xqd
@@ -413,9 +410,8 @@ starter.directive('main', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:15,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
}
|
|
| xqd
@@ -450,7 +446,7 @@ starter.directive('line', function() {
|
|
|
data3: "="
|
|
|
},
|
|
|
restrict: 'E',
|
|
|
- template: '<div style="height:700px;"></div>',
|
|
|
+ template: '<div style="height:300px;"></div>',
|
|
|
replace: true,
|
|
|
link: function($scope, element, attrs, controller) {
|
|
|
var colors = ['#a62ca6', '#8e0515', '#45baf3','#ff2420','#1a9a1a'];
|
|
| xqd
@@ -462,14 +458,15 @@ starter.directive('line', function() {
|
|
|
trigger: 'axis'
|
|
|
},
|
|
|
grid:{
|
|
|
-
|
|
|
- left:'26%'
|
|
|
+ left:'50%',
|
|
|
+ right:'1%'
|
|
|
},
|
|
|
//图例
|
|
|
legend: {
|
|
|
+ top:15,
|
|
|
data: $scope.legend2,
|
|
|
textStyle:{
|
|
|
- fontSize:22
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
// toolbox: {
|
|
| xqd
@@ -486,7 +483,7 @@ starter.directive('line', function() {
|
|
|
// boundaryGap:false,
|
|
|
axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:20
|
|
|
+ fontSize:12
|
|
|
},
|
|
|
formatter: '{value} N*m'
|
|
|
},
|
|
| xqd
@@ -502,7 +499,7 @@ starter.directive('line', function() {
|
|
|
min: 0.27,
|
|
|
max: 0.7,
|
|
|
position: 'left',
|
|
|
- offset:225,
|
|
|
+ offset:150,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[0],
|
|
| xqd
@@ -510,9 +507,8 @@ starter.directive('line', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:20,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
}
|
|
|
},
|
|
| xqd
@@ -522,17 +518,16 @@ starter.directive('line', function() {
|
|
|
min: 130,
|
|
|
max: 630,
|
|
|
position: 'left',
|
|
|
- offset: 170,
|
|
|
+ offset: 110,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[1],
|
|
|
width:2
|
|
|
}
|
|
|
},
|
|
|
- axisLabel:{
|
|
|
- margin:15,
|
|
|
+ axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
| xqd
@@ -542,7 +537,7 @@ starter.directive('line', function() {
|
|
|
min: 64,
|
|
|
max: 77,
|
|
|
position: 'left',
|
|
|
- offset:125,
|
|
|
+ offset:80,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[2],
|
|
| xqd
@@ -551,7 +546,7 @@ starter.directive('line', function() {
|
|
|
},
|
|
|
axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
| xqd
@@ -561,7 +556,7 @@ starter.directive('line', function() {
|
|
|
min: 2600,
|
|
|
max: 2940,
|
|
|
position: 'left',
|
|
|
- offset:50,
|
|
|
+ offset:30,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[3],
|
|
| xqd
@@ -569,9 +564,8 @@ starter.directive('line', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:20,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
| xqd
@@ -589,9 +583,8 @@ starter.directive('line', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:15,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
}
|
|
| xqd
@@ -628,7 +621,7 @@ starter.directive('strom', function() {
|
|
|
data4: "="
|
|
|
},
|
|
|
restrict: 'E',
|
|
|
- template: '<div style="height:700px;"></div>',
|
|
|
+ template: '<div style="height:300px;"></div>',
|
|
|
replace: true,
|
|
|
link: function($scope, element, attrs, controller) {
|
|
|
var colors = ['#a62ca6', '#8e0515', '#45baf3','#ff2420','#1a9a1a'];
|
|
| xqd
@@ -640,15 +633,15 @@ starter.directive('strom', function() {
|
|
|
trigger: 'axis'
|
|
|
},
|
|
|
grid:{
|
|
|
-
|
|
|
- left:'23%'
|
|
|
+ left:'43%',
|
|
|
+ right:'1%'
|
|
|
},
|
|
|
-
|
|
|
//图例
|
|
|
legend: {
|
|
|
+ top:15,
|
|
|
data: $scope.legend3,
|
|
|
textStyle:{
|
|
|
- fontSize:22
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
// 横轴坐标轴
|
|
| xqd
@@ -658,7 +651,7 @@ starter.directive('strom', function() {
|
|
|
// boundaryGap:false,
|
|
|
axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:20
|
|
|
+ fontSize:12
|
|
|
},
|
|
|
formatter: '{value} rpm'
|
|
|
},
|
|
| xqd
@@ -671,10 +664,8 @@ starter.directive('strom', function() {
|
|
|
{
|
|
|
type: 'value',
|
|
|
// name: '扭\n矩\n(N*m)',
|
|
|
- min: 0,
|
|
|
- max: 4,
|
|
|
position: 'left',
|
|
|
- offset:205,
|
|
|
+ offset:125,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[0],
|
|
| xqd
@@ -682,19 +673,16 @@ starter.directive('strom', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:20,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
{
|
|
|
type: 'value',
|
|
|
// name: '电\n压\n(V)',
|
|
|
- min: 193,
|
|
|
- max: 202,
|
|
|
position: 'left',
|
|
|
- offset: 150,
|
|
|
+ offset: 90,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[1],
|
|
| xqd
@@ -702,19 +690,16 @@ starter.directive('strom', function() {
|
|
|
}
|
|
|
},
|
|
|
axisLabel:{
|
|
|
- margin:15,
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
type: 'value',
|
|
|
// name: '输\n入\n功\n率\n(W)',
|
|
|
- min: 0,
|
|
|
- max: 1300,
|
|
|
position: 'left',
|
|
|
- offset:90,
|
|
|
+ offset:50,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[2],
|
|
| xqd
@@ -723,35 +708,30 @@ starter.directive('strom', function() {
|
|
|
},
|
|
|
axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
type: 'value',
|
|
|
// name: '电\n流\n(A)',
|
|
|
- min: 1,
|
|
|
- max: 6,
|
|
|
position: 'left',
|
|
|
- offset:45,
|
|
|
+ offset:30,
|
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
|
color: colors[3],
|
|
|
width:2
|
|
|
}
|
|
|
},
|
|
|
- axisLabel:{
|
|
|
- margin:20,
|
|
|
+ axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
type: 'value',
|
|
|
// name: '效\n率\n(%)',
|
|
|
- min: 10,
|
|
|
- max: 80,
|
|
|
position: 'left',
|
|
|
offset:0,
|
|
|
axisLine: {
|
|
| xqd
@@ -760,10 +740,9 @@ starter.directive('strom', function() {
|
|
|
width:2
|
|
|
}
|
|
|
},
|
|
|
- axisLabel:{
|
|
|
- margin:15,
|
|
|
+ axisLabel:{
|
|
|
textStyle:{
|
|
|
- fontSize:18
|
|
|
+ fontSize:12
|
|
|
}
|
|
|
},
|
|
|
}
|