Compare commits

..

No commits in common. "3f85c4505c59db6d2ca2634983289c6c564bb6b1" and "905880c49860ecf060295abd6c719bccd9ad6881" have entirely different histories.

40 changed files with 52 additions and 95 deletions

View File

@ -51,9 +51,9 @@
uni.getStorage({
key: 'token',
success: function(res) {
// uni.showLoading({
// title: '...'
// })
uni.showLoading({
title: '加载中...'
})
that.getEquipmentInfo(uni.getStorageSync('userid'))
}
})

View File

@ -144,7 +144,7 @@
url: this.api.chart_fsdata + '?equipmentId=' + this.equipmentId,
method: 'POST'
}).then(res => {
// console.log(res, '线');
console.log(res, '获取折线图数据');
res.data.forEach((i, index) => {
this.categoriesList.push(i.time);
this.valuePHList.push(i.value)
@ -161,7 +161,7 @@
return e[this.titleName + this.echartName] == undefined ? '' : e[this.titleName +
this.echartName]
})
// console.log(this.newValuePHList, '121212212121211111111');
console.log(this.newValuePHList, '121212212121211111111');
})
},

View File

@ -260,21 +260,7 @@
}
},
onLoad() {
uni.showLoading({
title: '加载中...'
});
let that = this
uni.getStorage({
key: 'token',
success: function(res) {
that.getEquipmentInfo(uni.getStorageSync('userid'))
},
// fail:function(err){
// uni.reLaunch({
// url:'/pages/login/login'
// })
// }
})
this.timer = setInterval(function() {
uni.getStorage({
key: 'token',
@ -290,13 +276,9 @@
}, 60000);
},
onUnload() {
let that = this
clearTimeout(that.timer)
clearTimeout(this.timer)
},
onPullDownRefresh() {
uni.showLoading({
title: '加载中...'
});
let that = this
uni.getStorage({
key: 'token',
@ -311,9 +293,6 @@
})
},
mounted() {
uni.showLoading({
title: '加载中...'
});
let that = this
uni.getStorage({
key: 'token',
@ -331,9 +310,9 @@
// id
getEquipmentInfo(userid) {
let that = this
// uni.showLoading({
// title: '...'
// });
uni.showLoading({
title: '加载中...'
});
this.$http({
url: this.api.sel_eqbyid + userid,
method: 'GET'

View File

@ -176,7 +176,7 @@
userId: res.data
}
}).then(res => {
// console.log(res);
console.log(res);
if (res.code == 200) {
that.userName = res.data.username;
that.admin = that.user_level(res.data.userType);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -216,9 +216,9 @@ var _default = {
uni.getStorage({
key: 'token',
success: function success(res) {
// uni.showLoading({
// title: '加载中...'
// })
uni.showLoading({
title: '加载中...'
});
that.getEquipmentInfo(uni.getStorageSync('userid'));
}
});

View File

@ -306,7 +306,7 @@ var _default = {
url: this.api.chart_fsdata + '?equipmentId=' + this.equipmentId,
method: 'POST'
}).then(function (res) {
// console.log(res, '获取折线图数据');
console.log(res, '获取折线图数据');
res.data.forEach(function (i, index) {
_this2.categoriesList.push(i.time);
_this2.valuePHList.push(i.value);
@ -321,7 +321,7 @@ var _default = {
_this2.newValuePHList = _this2.valuePHList.map(function (e, index) {
return e[_this2.titleName + _this2.echartName] == undefined ? '' : e[_this2.titleName + _this2.echartName];
});
// console.log(this.newValuePHList, '121212212121211111111');
console.log(_this2.newValuePHList, '121212212121211111111');
});
},
// 判断是否是平均或者目标,或者是1#

View File

@ -667,22 +667,7 @@ var _default = {
};
},
onLoad: function onLoad() {
uni.showLoading({
title: '加载中...'
});
var that = this;
uni.getStorage({
key: 'token',
success: function success(res) {
that.getEquipmentInfo(uni.getStorageSync('userid'));
}
// fail:function(err){
// uni.reLaunch({
// url:'/pages/login/login'
// })
// }
});
this.timer = setInterval(function () {
uni.getStorage({
key: 'token',
@ -698,13 +683,9 @@ var _default = {
}, 60000);
},
onUnload: function onUnload() {
var that = this;
clearTimeout(that.timer);
clearTimeout(this.timer);
},
onPullDownRefresh: function onPullDownRefresh() {
uni.showLoading({
title: '加载中...'
});
var that = this;
uni.getStorage({
key: 'token',
@ -719,9 +700,6 @@ var _default = {
});
},
mounted: function mounted() {
uni.showLoading({
title: '加载中...'
});
var that = this;
uni.getStorage({
key: 'token',
@ -740,9 +718,9 @@ var _default = {
getEquipmentInfo: function getEquipmentInfo(userid) {
var _this = this;
var that = this;
// uni.showLoading({
// title: '加载中...'
// });
uni.showLoading({
title: '加载中...'
});
this.$http({
url: this.api.sel_eqbyid + userid,
method: 'GET'

View File

@ -254,7 +254,7 @@ var _default = {
userId: res.data
}
}).then(function (res) {
// console.log(res);
console.log(res);
if (res.code == 200) {
that.userName = res.data.username;
that.admin = that.user_level(res.data.userType);