Commit 104366d4 authored by 张俊's avatar 张俊

工作台首页运营分析

parent dedecce7
...@@ -1125,7 +1125,7 @@ export default { ...@@ -1125,7 +1125,7 @@ export default {
this.getUserData(); this.getUserData();
if (this.now_user == 0||this.now_user == 4) { if (this.now_user == 0||this.now_user == 4) {
this.getHealth(); this.getHealth();
this.getoperatingdata(); // this.getoperatingdata();
} else if (this.now_user == 1) { } else if (this.now_user == 1) {
this.getHealth(); this.getHealth();
this.getoperatingdata(); this.getoperatingdata();
...@@ -1163,19 +1163,19 @@ export default { ...@@ -1163,19 +1163,19 @@ export default {
}, },
getUserData() { getUserData() {
this.person = this.userInfo.user_name; this.person = this.userInfo.user_name;
this.login_time = decodeURIComponent(getCookie('lastLogin')); this.login_time = decodeURIComponent(getCookie('lastLogin')).replace('+',' ');
}, },
getoperatingdata() { getoperatingdata() {
this.$http this.$http
.get("./static/workpalce.json") .get("/apaas/service/v3/workplace/statistics/business")
.then((response) => { .then((response) => {
console.log(response); console.log(response);
let data = response.data.data; let data = response.data.data;
this.init_yy( this.init_yy(
data.operatingdata.xarr, data.xarr,
data.operatingdata.service_yarr, data.service_yarr,
data.operatingdata.app_yarr, data.app_yarr,
data.operatingdata.get_yarr data.get_yarr
); );
}) })
.catch(function(response) {}); .catch(function(response) {});
......
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