|
|
<style>
|
|
|
#content{
|
|
|
padding: 5px;
|
|
|
background: #f1f4fb;
|
|
|
}
|
|
|
.overview{
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|
|
|
}
|
|
|
.overview>div.overview-item{
|
|
|
width: 50%;
|
|
|
box-sizing: border-box;
|
|
|
}
|
|
|
.overview-item:nth-of-type(1){
|
|
|
margin-right: 5px;
|
|
|
}
|
|
|
.overview-item-dialog{
|
|
|
border-radius: 4px;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
background: #FFFFFF;
|
|
|
}
|
|
|
.overview-item-dialog header{
|
|
|
padding: 10px 0;
|
|
|
font-size: 18px;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
.overview-item:nth-of-type(1) .overview-item-dialog header{
|
|
|
color: #0b50b8;
|
|
|
border-bottom: 2px solid #d5e5fc;
|
|
|
}
|
|
|
.overview-item:nth-of-type(2) .overview-item-dialog header{
|
|
|
color: #0069a5;
|
|
|
border-bottom: 2px solid #c3e9f2;
|
|
|
}
|
|
|
.overview-item-host,.overview-item-virtualMachine{
|
|
|
display: flex;
|
|
|
align-items: center;
|
|
|
justify-content: flex-start;
|
|
|
padding: 40px 0px;
|
|
|
}
|
|
|
.overview-item-host{
|
|
|
padding-bottom: 0;
|
|
|
}
|
|
|
.overview-item-host .host-img,.overview-item-virtualMachine .virtualMachine-img{
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
align-items: center;
|
|
|
padding-right: 20px;
|
|
|
border-right: 2px solid #d5e5fc;
|
|
|
}
|
|
|
.overview-item-host .host-img img,.overview-item-virtualMachine .virtualMachine-img img{
|
|
|
height: 100px;
|
|
|
margin-bottom: 30px;
|
|
|
}
|
|
|
.overview-item-host .host-num,
|
|
|
.overview-item-virtualMachine .virtualMachine-num{
|
|
|
padding-left: 20px;
|
|
|
flex: 1;
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|
|
|
}
|
|
|
.overview-item-host .host-num .host-num-item,
|
|
|
.overview-item-virtualMachine .virtualMachine-num .virtualMachine-num-item{
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|
|
|
flex-direction: column;
|
|
|
flex: 1;
|
|
|
}
|
|
|
.host-num-item-value,.virtualMachine-num-item-value{
|
|
|
height: 130px;
|
|
|
line-height: 130px;
|
|
|
font-size: 28px;
|
|
|
font-weight: bold;
|
|
|
}
|
|
|
.count{
|
|
|
color: #575d6d;
|
|
|
}
|
|
|
.success{
|
|
|
color:#24ae1b;
|
|
|
}
|
|
|
.error{
|
|
|
color: #d71d04;
|
|
|
}
|
|
|
.waring{
|
|
|
color: #ff7f02;
|
|
|
}
|
|
|
|
|
|
|
|
|
.overview-item-box{
|
|
|
margin: 5px 0;
|
|
|
padding-left: 10px;
|
|
|
padding-right: 10px;
|
|
|
background: #FFFFFF;
|
|
|
border-radius: 4px;
|
|
|
}
|
|
|
.overview-item-box header{
|
|
|
font-size: 18px;
|
|
|
font-weight: bold;
|
|
|
color: #555c6c;
|
|
|
padding: 10px 0;
|
|
|
border-bottom: 2px solid;
|
|
|
}
|
|
|
.res-ratio{
|
|
|
display: flex;
|
|
|
justify-content: flex-start;
|
|
|
align-items: center;
|
|
|
padding: 20px 0px;
|
|
|
}
|
|
|
.res-ratio .progress{
|
|
|
width: 68%;
|
|
|
margin: 0 10px;
|
|
|
background-color: #eef7fe;
|
|
|
overflow: hidden;
|
|
|
height: 30px;
|
|
|
border-radius: 30px;
|
|
|
}
|
|
|
.progress-bar{
|
|
|
height: 30px;
|
|
|
line-height: 30px;
|
|
|
text-align: right;
|
|
|
border-radius: 30px;
|
|
|
background: #469bf5;
|
|
|
color: #FFFFFF;
|
|
|
}
|
|
|
</style>
|
|
|
<!--tencent_cloud_plat_cluster详细页面-->
|
|
|
<article class="page-container template template_redis">
|
|
|
<iframe src="/vue3/index.html#/vue3/tencentCloud" class="layadmin-iframe" style="height: 99.5%!important;"/>
|
|
|
<div class="page-panel">
|
|
|
<div class="main">
|
|
|
<div class="layui-card">
|
|
|
<div class="layui-card-body">
|
|
|
<div class="lay-row">
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">基本信息<i data-id="tencent_cloud_plat_cluster_baseinfo" class="iconfont detail_base_info"></i></h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_baseinfo"></ul>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">重要信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_keyinfo"></ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lay-row">
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">Node信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_nodeinfo"></ul>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">Pod信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_podinfo"></ul>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">项目信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_projectinfo"></ul>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">应用信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_appinfo"></ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lay-row">
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">cpu信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_cpuinfo"></ul>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">内存信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_meminfo"></ul>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">磁盘信息</h5>
|
|
|
<ul class="info-table" id="tencent_cloud_plat_cluster_diskinfo"></ul>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lay-row">
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">CPU分配率</h5>
|
|
|
<div id="tencent_cloud_plat_cluster_cpu_linechart" class="detail_line_chart"></div>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">内存分配率</h5>
|
|
|
<div id="tencent_cloud_plat_cluster_mem_linechart" class="detail_line_chart"></div>
|
|
|
</div>
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">磁盘分配率</h5>
|
|
|
<div id="tencent_cloud_plat_cluster_disk_linechart" class="detail_line_chart"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="lay-row">
|
|
|
<div class="lay-row-item">
|
|
|
<h5 class="lay-row-title">实时告警动态</h5>
|
|
|
<div id="tencent_cloud_plat_cluster_active_alarm"></div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</article>
|
|
|
<textarea id="tencent_cloud_plat_cluster_param_id" style="display: none;">{{d}}</textarea>
|
|
|
<script>
|
|
|
layui.use('tencent_cloud_plat_cluster', function (fn) {
|
|
|
var $ = layui.$;
|
|
|
var parm = $("#tencent_cloud_plat_cluster_param_id").val();
|
|
|
if(parm.indexOf('{{d') != -1){
|
|
|
fn();
|
|
|
}else{
|
|
|
fn(JSON.parse(parm));
|
|
|
}
|
|
|
});
|
|
|
</script> |
|
|
\ No newline at end of file |
...
|
...
|
|