Commit eb2e2bcd authored by 刘殿昕's avatar 刘殿昕

云服务布局,运营分析差俩接口,导航栏

parent dce8dc67
...@@ -23,8 +23,12 @@ export const lang = { ...@@ -23,8 +23,12 @@ export const lang = {
// data analysis // data analysis
data_analysis: "运营管控中心", data_analysis: "运营管控中心",
my_service_data_analysis: "服务分析", operational_analysis: "运营分析",
my_application_data_analysis: "应用分析", operation_control: "运行管控",
service_data_analysis: "服务分析",
application_data_analysis: "应用分析",
operation_overview: "运行概况",
service_control: "服务管控",
// message // message
message: "消息与推送管理", message: "消息与推送管理",
......
...@@ -36,7 +36,8 @@ export default { ...@@ -36,7 +36,8 @@ export default {
data: { data: {
handler() { handler() {
this.init_yylx_asy(this.data, this.text); this.init_yylx_asy(this.data, this.text);
} },
deep: true,
} }
}, },
computed: {}, computed: {},
......
...@@ -25,8 +25,6 @@ export default { ...@@ -25,8 +25,6 @@ export default {
methods: { methods: {
graph() { graph() {
let self = this; let self = this;
console.log(this.data.legend.data);
console.log(this.data.data);
return { return {
color: ["#274fee", "#ef9433"], color: ["#274fee", "#ef9433"],
legend: { legend: {
......
...@@ -48,7 +48,8 @@ export default { ...@@ -48,7 +48,8 @@ export default {
data: { data: {
handler() { handler() {
this.init_yylx_asy(this.data, this.text); this.init_yylx_asy(this.data, this.text);
} },
deep: true,
} }
}, },
computed: {}, computed: {},
...@@ -125,9 +126,10 @@ export default { ...@@ -125,9 +126,10 @@ export default {
name: "", name: "",
type: "pie", type: "pie",
clockWise: false, clockWise: false,
radius: [65, 68], radius: [60, 63],
center: ["50%", "50%"], center: ["50%", "46%"],
hoverAnimation: false, hoverAnimation: false,
avoidLabelOverlap: true,
itemStyle: { itemStyle: {
normal: { normal: {
label: { label: {
...@@ -173,9 +175,9 @@ export default { ...@@ -173,9 +175,9 @@ export default {
subtextStyle: { subtextStyle: {
color: "#c9cedd" color: "#c9cedd"
}, },
itemGap: -10, // 主副标题距离 itemGap: 0, // 主副标题距离
left: "center", left: "center",
top: "center" top: "32%"
}, },
color: this.isFwsp ? color2 : color, color: this.isFwsp ? color2 : color,
tooltip: { tooltip: {
......
...@@ -13,24 +13,24 @@ export default { ...@@ -13,24 +13,24 @@ export default {
return { return {
num: 0, num: 0,
color: "#e15260", color: "#e15260",
text: "敏感" text: "敏感",
}; };
} },
} },
}, },
components: {}, components: {},
data() { data() {
return { return {
health: uuidv1() health: uuidv1(),
}; };
}, },
watch: { watch: {
data: { data: {
handler(val) { handler(val) {
console.log(val);
this.init_health(this.data.num, this.data.color, this.data.text); this.init_health(this.data.num, this.data.color, this.data.text);
} },
} deep: true,
},
}, },
computed: {}, computed: {},
created() {}, created() {},
...@@ -40,22 +40,22 @@ export default { ...@@ -40,22 +40,22 @@ export default {
methods: { methods: {
init_health(num, color, text) { init_health(num, color, text) {
var options = { var options = {
color:[color,'#c9cedd'], color: [color, "#c9cedd"],
title: { title: {
text: num + "%", text: num + "%",
textStyle: { textStyle: {
color: "#000", color: "#000",
fontSize: 26, fontSize: 26,
fontWeight: 200 fontWeight: 200,
}, },
subtext: text, subtext: text,
subtextStyle: { subtextStyle: {
color: "#707693", color: "#707693",
fontSize: 12 fontSize: 12,
}, },
itemGap: 0, // 主副标题距离 itemGap: 0, // 主副标题距离
left: "center", left: "center",
top: "center" top: "center",
}, },
angleAxis: { angleAxis: {
max: 100, // 满分 max: 100, // 满分
...@@ -63,119 +63,124 @@ export default { ...@@ -63,119 +63,124 @@ export default {
startAngle: 90, startAngle: 90,
// 隐藏刻度线 // 隐藏刻度线
axisLine: { axisLine: {
show: false show: false,
}, },
axisTick: { axisTick: {
show: false show: false,
}, },
axisLabel: { axisLabel: {
show: false show: false,
}, },
splitLine: { splitLine: {
show: false show: false,
} },
}, },
radiusAxis: { radiusAxis: {
type: "category", type: "category",
// 隐藏刻度线 // 隐藏刻度线
axisLine: { axisLine: {
show: false show: false,
}, },
axisTick: { axisTick: {
show: false show: false,
}, },
axisLabel: { axisLabel: {
show: false show: false,
}, },
splitLine: { splitLine: {
show: false show: false,
} },
}, },
polar: { polar: {
center: ["50%", "50%"], center: ["50%", "50%"],
radius: "140%" //图形大小 radius: "140%", //图形大小
}, },
series: [ series: [
{ {
type: 'pie', type: "pie",
z:5, z: 5,
center:['50%','50%'], center: ["50%", "50%"],
radius:['68%','72%'], radius: ["68%", "72%"],
silent:true, silent: true,
label: { label: {
normal: { normal: {
show: false show: false,
},
emphasis: {
show: false,
},
}, },
emphasis: { labelLine: {
show: false normal: {
} show: false,
}, },
labelLine: { emphasis: {
normal: { show: false,
show: false },
}, },
emphasis: { tooltip: {
show: false show: false,
} },
}, data: [
tooltip: { {
show: false name: "",
}, value: num,
data:[{ },
name:'', {
value:num name: "",
},{ value: 100 - num,
name:'', },
value:100 - num ],
}] },
},
{ {
type:'pie', type: "pie",
z:4, z: 4,
center:['50%','50%'], center: ["50%", "50%"],
radius:['60%','80%'], radius: ["60%", "80%"],
hoverAnimation:false, hoverAnimation: false,
avoidLabelOverlap: false, avoidLabelOverlap: false,
label: { label: {
normal: { normal: {
show: false show: false,
},
emphasis: {
show: false,
},
}, },
emphasis: { labelLine: {
show: false normal: {
} show: false,
}, },
labelLine: { emphasis: {
normal: { show: false,
show: false },
},
tooltip: {
show: false,
},
itemStyle: {
normal: {
color: "#f6f7fc",
},
}, },
emphasis: { emphasis: {
show: false show: false,
} itemStyle: {
}, color: "#f6f7fc",
tooltip: { },
show: false },
}, data: [
itemStyle: { {
normal: { value: 1,
color:'#f6f7fc' },
} ],
}, },
emphasis:{ ],
show:false,
itemStyle:{
color:'#f6f7fc'
}
},
data: [{
value: 1,
}],
}
]
}; };
window[this.health] = echarts.init(document.getElementById(this.health)); window[this.health] = echarts.init(document.getElementById(this.health));
window[this.health].setOption(options, true); window[this.health].setOption(options, true);
} },
} },
}; };
</script> </script>
......
...@@ -186,7 +186,6 @@ export default { ...@@ -186,7 +186,6 @@ export default {
}, },
navAction(path) { navAction(path) {
this.now_menu = path; this.now_menu = path;
window.sessionStorage.setItem("menuVisitUrl", path);
this.$router.push(path); this.$router.push(path);
}, },
gotoChildPage(v, parent) { gotoChildPage(v, parent) {
...@@ -200,7 +199,6 @@ export default { ...@@ -200,7 +199,6 @@ export default {
this.$router.push(v.visit_url); this.$router.push(v.visit_url);
} }
this.now_menu = parent; this.now_menu = parent;
window.sessionStorage.setItem("menuVisitUrl", parent);
} }
}, },
getList() { getList() {
...@@ -218,8 +216,7 @@ export default { ...@@ -218,8 +216,7 @@ export default {
}); });
}, },
getMenuIndex() { getMenuIndex() {
let visit_url = window.sessionStorage.getItem("menuVisitUrl"); this.now_menu = this.$route.path;
this.now_menu = visit_url ? visit_url : "";
}, },
getNowMenu() { getNowMenu() {
this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => { this.$api.general.getNowMenu({ teamName: "APAAS3" }).then((response) => {
...@@ -242,7 +239,6 @@ export default { ...@@ -242,7 +239,6 @@ export default {
} else { } else {
} }
this.menu_arr = arr; this.menu_arr = arr;
console.log(this.user_arr);
this.getMenuIndex(); this.getMenuIndex();
} }
}); });
......
This diff is collapsed.
...@@ -743,7 +743,6 @@ export default { ...@@ -743,7 +743,6 @@ export default {
} }
}, },
nodeItemMouseDown(evt, info) { nodeItemMouseDown(evt, info) {
console.log("dwad");
const { clientX, clientY, currentTarget } = evt; const { clientX, clientY, currentTarget } = evt;
const { top, left } = evt.currentTarget.getBoundingClientRect(); const { top, left } = evt.currentTarget.getBoundingClientRect();
const conf = this.dragConf; const conf = this.dragConf;
......
<template> <template>
<div class="fwgl_container"> <div class="fwgl_container">
<sideNavBar <sideNavBar
v-if="is_admin == 3 || is_admin == 4 || is_admin == 1" v-if="is_admin == 3 || is_admin == 4"
title="运营管控中心" title="运营管控中心"
imgSrc="tool_fuwu" imgSrc="tool_fuwu"
:nav-list="navList" :nav-list="navList"
:title-path="navList[0] && navList[0].path" :title-path="navList[0] && navList[0].path"
></sideNavBar> ></sideNavBar>
<sideNavBarClass <sideNavBarClass
v-else-if="is_admin == 2" v-else-if="is_admin == 1 || is_admin == 2"
title="运营管控中心" title="运营管控中心"
imgSrc="tool_fuwu" imgSrc="tool_fuwu"
:nav-list="navList" :nav-list="navList"
:title-path="navList[0] && navList[0].path" :title-path="navList[0] && navList[0].path"
></sideNavBarClass> ></sideNavBarClass>
<div v-else class="skeleton"></div>
<div class="main_container"> <div class="main_container">
<router-view :key="'type_' + $route.params.type"></router-view> <router-view :key="'type_' + $route.params.type"></router-view>
</div> </div>
...@@ -71,12 +72,32 @@ export default { ...@@ -71,12 +72,32 @@ export default {
], ],
userNav2: [ userNav2: [
{ {
name: "服务分析", name: "运营分析",
path: `/data_analysis/super_service`, path: `/data_analysis/super_service`,
child: [
{
name: "服务分析",
path: `/data_analysis/super_service`,
},
{
name: "应用分析",
path: `/data_analysis/super_application`,
},
],
}, },
{ {
name: "应用分析", name: "运行管控",
path: `/data_analysis/super_application`, path: `/data_analysis/1`,
child: [
{
name: "运行概况",
path: `/data_analysis/1`,
},
{
name: "服务管控",
path: `/data_analysis/1`,
},
],
}, },
], ],
navList: [], navList: [],
...@@ -125,4 +146,8 @@ export default { ...@@ -125,4 +146,8 @@ export default {
background-color: #f6f7fb; background-color: #f6f7fb;
overflow: auto; overflow: auto;
} }
.skeleton {
width: 180px;
background-color: #0d1847;
}
</style> </style>
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<div> <div>
<el-breadcrumb separator="/" class="bread_crumb1"> <el-breadcrumb separator="/" class="bread_crumb1">
<el-breadcrumb-item :to="{ path: '/data_analysis' }">{{ $t("lang.data_analysis") }}</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/data_analysis' }">{{ $t("lang.data_analysis") }}</el-breadcrumb-item>
<el-breadcrumb-item>{{ $t("lang.my_application_data_analysis") }}</el-breadcrumb-item> <el-breadcrumb-item>{{ $t("lang.application_data_analysis") }}</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
<el-row class="in_analysis"> <el-row class="in_analysis">
<!-- 可横向铺满 --> <!-- 可横向铺满 -->
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
</el-breadcrumb-item> </el-breadcrumb-item>
<el-breadcrumb-item> <el-breadcrumb-item>
{{ {{
$t("lang.my_service_data_analysis") $t("lang.service_data_analysis")
}} }}
</el-breadcrumb-item> </el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
@changeButton="changeApplicationFieldBtn" @changeButton="changeApplicationFieldBtn"
class="block" class="block"
> >
<BarChart :data="bar_data" /> <BarChart :x_router="30" :data="bar_data" />
</block-radius> </block-radius>
</el-col> </el-col>
</el-row> </el-row>
...@@ -635,6 +635,7 @@ export default { ...@@ -635,6 +635,7 @@ export default {
} }
}); });
}, },
getServiceTransfer() {},
detailHotSearch(item) { detailHotSearch(item) {
this.$router.push("/fwgl/0/0/servicedetail/" + item.id); this.$router.push("/fwgl/0/0/servicedetail/" + item.id);
}, },
...@@ -676,7 +677,7 @@ export default { ...@@ -676,7 +677,7 @@ export default {
if (index == 0) { if (index == 0) {
this.getServiceHealth(); this.getServiceHealth();
} else { } else {
this.a(); this.getServiceTransfer();
} }
}, },
}, },
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
...@@ -37,6 +37,12 @@ const dataAnalysis = { ...@@ -37,6 +37,12 @@ const dataAnalysis = {
getServiceHotSearch() { getServiceHotSearch() {
return axios.get(`/apaas/service/v3/statistics/normal/service/search`); return axios.get(`/apaas/service/v3/statistics/normal/service/search`);
}, },
getServiceApprovalChanges() {
return axios.get(``);
},
getServiceApprovalStatus() {
return axios.get(``);
},
//app //app
getAppOverview(){ getAppOverview(){
...@@ -69,6 +75,12 @@ const dataAnalysis = { ...@@ -69,6 +75,12 @@ const dataAnalysis = {
getAppHot(){ getAppHot(){
return axios.get(`/apaas/hubApi/analysis/appSearch`); return axios.get(`/apaas/hubApi/analysis/appSearch`);
}, },
getAppApproval(params) {
return axios.get(`/apaas/hubApi/analysis/approvalChanges?day=${params.type}`);
},
getAppApprovalState(params) {
return axios.get(`/apaas/hubApi/analysis/approvalStatus?style=${params.type}`);
},
} }
export default dataAnalysis; export default dataAnalysis;
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