Commit a50042f9 authored by 徐一鸣's avatar 徐一鸣

Merge branch 'dev' of cloud.wodcloud.com:apaas/apaas-v3-ui into dev

parents 3476b757 978ac116
...@@ -72,7 +72,7 @@ export default { ...@@ -72,7 +72,7 @@ export default {
}, },
}, },
{ {
value: temp2_data / 20, value: temp2_data / 30,
name: "", name: "",
itemStyle: placeHolderStyle, itemStyle: placeHolderStyle,
} }
......
...@@ -26,14 +26,15 @@ export default { ...@@ -26,14 +26,15 @@ export default {
text: num + "%", text: num + "%",
textStyle: { textStyle: {
color: "#000", color: "#000",
fontSize: 40, fontSize: 26,
fontWeight: 200, fontWeight: 200,
}, },
subtext: text, subtext: text,
subtextStyle: { subtextStyle: {
color: "#c9cedd", color: "#707693",
fontSize: 12,
}, },
itemGap: -10, // 主副标题距离 itemGap: 0, // 主副标题距离
left: "center", left: "center",
top: "center", top: "center",
}, },
...@@ -94,7 +95,7 @@ export default { ...@@ -94,7 +95,7 @@ export default {
], ],
coordinateSystem: "polar", coordinateSystem: "polar",
roundCap: true, roundCap: true,
barWidth: 10, barWidth: 8,
barGap: "-100%", // 两环重叠 barGap: "-100%", // 两环重叠
z: 2, z: 2,
...@@ -115,7 +116,7 @@ export default { ...@@ -115,7 +116,7 @@ export default {
], ],
coordinateSystem: "polar", coordinateSystem: "polar",
roundCap: true, roundCap: true,
barWidth: 10, barWidth: 8,
barGap: "-100%", // 两环重叠 barGap: "-100%", // 两环重叠
z: 1, z: 1,
}, },
......
...@@ -100,12 +100,38 @@ ...@@ -100,12 +100,38 @@
<p class="hot-line-title">搜索用户数</p> <p class="hot-line-title">搜索用户数</p>
<div class="hot-line-chart"> <div class="hot-line-chart">
<!-- 折线图 --> <!-- 折线图 -->
<p class="sparkline-text">
<span>{{sparkline1.num}}</span>
<span :style="sparkline1.up>0?{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">{{sparkline1.up>0?sparkline1.up:0-sparkline1.up}}% <img v-if="sparkline1.up>0" src="../../assets/imgs/icon_up.png" alt=""> <img v-if="sparkline1.up<0" src="../../assets/imgs/icon_down.png" alt=""></span>
</p>
<sparkline :indicatorStyles="spIndicatorStyles1" width="220" height="42">
<sparklineCurve
:refLineStyles="spRefLineStyles3"
:refLineType="false"
:data="sparkline1.arr"
:limit="sparkline1.arr.length"
:styles="spCurveStyles2"
/>
</sparkline>
</div> </div>
</div> </div>
<div class="hot-line"> <div class="hot-line">
<p class="hot-line-title">搜索用户</p> <p class="hot-line-title">人均搜索次</p>
<div class="hot-line-chart"> <div class="hot-line-chart">
<!-- 折线图 --> <!-- 折线图 -->
<p class="sparkline-text sparkline-text-user">
<span>{{sparkline2.num}}</span>
<span :style="sparkline2.up>0?{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">{{sparkline2.up>0?sparkline2.up:0-sparkline2.up}}% <img v-if="sparkline2.up>0" src="../../assets/imgs/icon_up.png" alt=""> <img v-if="sparkline2.up<0" src="../../assets/imgs/icon_down.png" alt=""></span>
</p>
<sparkline :indicatorStyles="spIndicatorStyles1" width="220" height="42">
<sparklineCurve
:refLineStyles="spRefLineStyles3"
:refLineType="false"
:data="sparkline2.arr"
:limit="sparkline2.arr.length"
:styles="spCurveStyles3"
/>
</sparkline>
</div> </div>
</div> </div>
</div> </div>
...@@ -175,7 +201,8 @@ ...@@ -175,7 +201,8 @@
</el-col> </el-col>
<el-col :span="24" class="in_block"> <el-col :span="24" class="in_block">
<block-radius class="block" :show_header="true" title="应用在线状态统计"> <block-radius class="block" :show_header="true" title="应用在线状态统计">
<single-circle class="block-radius-content" :data="single_data"></single-circle> <single-circle class="block-radius-content single-charts" :data="single_data"></single-circle>
<single-circle class="block-radius-content single-charts" :data="single_data1"></single-circle>
</block-radius> </block-radius>
</el-col> </el-col>
</el-row> </el-row>
...@@ -232,10 +259,39 @@ export default { ...@@ -232,10 +259,39 @@ export default {
{ name: "业务应用", value: 2 } { name: "业务应用", value: 2 }
], ],
text: "应用总数", text: "应用总数",
spIndicatorStyles1: false,
spRefLineStyles3: {
stroke: "#d14",
strokeOpacity: 0,
strokeDasharray: "2, 2",
},
spCurveStyles2: {
stroke: "#274fee",
fill: "#274fee",
},
spCurveStyles3: {
stroke: "#e56600",
fill: "#e56600",
},
sparkline1:{
arr:[1,2,3,4,8,9,10,21],
num:1231,
up:15.3
},
sparkline2:{
arr:[1,2,3,4,8,9,10,21],
num:182,
up:-19.3
},
single_data: { single_data: {
num: 12, num: 60,
color: "#515fe7", color: "#274fee",
text: "共享" text: "平台应用"
},
single_data1: {
num: 40,
color: "#e56600",
text: "开发者应用"
}, },
line_data: { line_data: {
xaxis: [ xaxis: [
...@@ -674,7 +730,33 @@ export default { ...@@ -674,7 +730,33 @@ export default {
} }
.hot-line-chart { .hot-line-chart {
height: calc(100% - 36px); height: calc(100% - 36px);
background-color: pink; }
.single-charts{
float: left;
width: 50%;
}
.sparkline-text{
width: 100%;
line-height: 20px;
}
.sparkline-text span:nth-of-type(1){
font-size: 20px;
color: #274fee;
}
.sparkline-text span:nth-of-type(2){
font-size: 12px;
width: 62px;
float: right;
text-align: center;
line-height: 20px;
height: 20px;
border-radius: 3px;
margin-top: 3px;
margin-right: 2px;
}
.sparkline-text-user span:nth-of-type(1){
font-size: 20px;
color: #e56600;
} }
</style> </style>
......
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
<span>{{sparkline1.num}}</span> <span>{{sparkline1.num}}</span>
<span :style="sparkline1.up>0?{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">{{sparkline1.up>0?sparkline1.up:0-sparkline1.up}}% <img v-if="sparkline1.up>0" src="../../assets/imgs/icon_up.png" alt=""> <img v-if="sparkline1.up<0" src="../../assets/imgs/icon_down.png" alt=""></span> <span :style="sparkline1.up>0?{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">{{sparkline1.up>0?sparkline1.up:0-sparkline1.up}}% <img v-if="sparkline1.up>0" src="../../assets/imgs/icon_up.png" alt=""> <img v-if="sparkline1.up<0" src="../../assets/imgs/icon_down.png" alt=""></span>
</p> </p>
<sparkline :indicatorStyles="spIndicatorStyles1" width="220" height="44"> <sparkline :indicatorStyles="spIndicatorStyles1" width="220" height="42">
<sparklineCurve <sparklineCurve
:refLineStyles="spRefLineStyles3" :refLineStyles="spRefLineStyles3"
:refLineType="false" :refLineType="false"
...@@ -87,14 +87,14 @@ ...@@ -87,14 +87,14 @@
</div> </div>
</div> </div>
<div class="hot-line"> <div class="hot-line">
<p class="hot-line-title">搜索用户</p> <p class="hot-line-title">人均搜索次</p>
<div class="hot-line-chart"> <div class="hot-line-chart">
<!-- 折线图 --> <!-- 折线图 -->
<p class="sparkline-text sparkline-text-user"> <p class="sparkline-text sparkline-text-user">
<span>{{sparkline2.num}}</span> <span>{{sparkline2.num}}</span>
<span :style="sparkline2.up>0?{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">{{sparkline2.up>0?sparkline2.up:0-sparkline2.up}}% <img v-if="sparkline2.up>0" src="../../assets/imgs/icon_up.png" alt=""> <img v-if="sparkline2.up<0" src="../../assets/imgs/icon_down.png" alt=""></span> <span :style="sparkline2.up>0?{backgroundColor:'#e7fdfc',color:'#25bdb1'}:{backgroundColor:'#fbe8e8',color:'#e15260'}">{{sparkline2.up>0?sparkline2.up:0-sparkline2.up}}% <img v-if="sparkline2.up>0" src="../../assets/imgs/icon_up.png" alt=""> <img v-if="sparkline2.up<0" src="../../assets/imgs/icon_down.png" alt=""></span>
</p> </p>
<sparkline :indicatorStyles="spIndicatorStyles1" width="220" height="44"> <sparkline :indicatorStyles="spIndicatorStyles1" width="220" height="42">
<sparklineCurve <sparklineCurve
:refLineStyles="spRefLineStyles3" :refLineStyles="spRefLineStyles3"
:refLineType="false" :refLineType="false"
...@@ -167,7 +167,9 @@ ...@@ -167,7 +167,9 @@
@changeButton="changeOpenessBtnindex" @changeButton="changeOpenessBtnindex"
class="block" class="block"
> >
<single-circle class="block-radius-content" :data="single_data"></single-circle> <single-circle class="block-radius-content single-charts" :data="single_data"></single-circle>
<single-circle class="block-radius-content single-charts" :data="single_data1"></single-circle>
<single-circle class="block-radius-content single-charts" :data="single_data2"></single-circle>
</block-radius> </block-radius>
</el-col> </el-col>
<el-col :span="24" class="in_block"> <el-col :span="24" class="in_block">
...@@ -269,10 +271,20 @@ export default { ...@@ -269,10 +271,20 @@ export default {
}, },
text: "应用总数", text: "应用总数",
single_data: { single_data: {
num: 12, num: 50,
color: "#515fe7", color: "#25bdb1",
text: "共享" text: "共享"
}, },
single_data1: {
num: 30,
color: "#f5ab4c",
text: "受限"
},
single_data2: {
num: 20,
color: "#e15260",
text: "敏感"
},
line_data: { line_data: {
xaxis: [ xaxis: [
"01-01", "01-01",
...@@ -282,20 +294,26 @@ export default { ...@@ -282,20 +294,26 @@ export default {
"01-05", "01-05",
"01-06", "01-06",
"01-07", "01-07",
"01-08" "01-08",
"01-09",
"01-10",
"01-11",
"01-12",
"01-13",
"01-14",
], ],
data: [ data: [
{ {
name: "开发者应用", name: "开发者应用",
arr: [100, 120, 130, 150, 160, 120, 110, 100] arr: [10, 12, 13, 15, 16, 12, 11, 10,15,16,19,20,22,15,18]
}, },
{ {
name: "平台应用", name: "平台应用",
arr: [120, 130, 140, 130, 140, 120, 100, 90] arr: [12, 13, 14, 13, 14, 12, 10, 9,11,10,9,12,13,10,9]
}, },
{ {
name: "未上架", name: "未上架",
arr: [80, 90, 100, 110, 100, 70, 80, 90] arr: [8, 9, 10, 11, 10, 7, 8, 9 ,7,6,5,8,6,7,5]
} }
] ]
}, },
...@@ -694,6 +712,7 @@ export default { ...@@ -694,6 +712,7 @@ export default {
} }
.sparkline-text{ .sparkline-text{
width: 100%; width: 100%;
line-height: 20px;
} }
.sparkline-text span:nth-of-type(1){ .sparkline-text span:nth-of-type(1){
font-size: 20px; font-size: 20px;
...@@ -718,6 +737,10 @@ export default { ...@@ -718,6 +737,10 @@ export default {
width: 100%; width: 100%;
height: calc(100% - 20px); height: calc(100% - 20px);
} }
.single-charts{
float: left;
width: 33.3%;
}
</style> </style>
......
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