<template>
|
<div class="column">
|
<div class="column-left" ref="left">
|
<div class="left-title">设备管理</div>
|
<div
|
class="left-item"
|
:ref="`item_${index}`"
|
v-for="(item, index) in groups"
|
:key="index"
|
@click="clickCard(index)"
|
>
|
<div class="cir-all">
|
<div class="pie">
|
<el-progress
|
:width="60"
|
:stroke-width="8"
|
:color="item.barColor"
|
:show-text="false"
|
type="circle"
|
:percentage="25"
|
></el-progress>
|
<div class="circleCenter">25%</div>
|
</div>
|
|
<div class="circle-bot">
|
<div class="dot"></div>
|
在线
|
</div>
|
</div>
|
|
<div class="desc-item">
|
<div class="desc-name">{{ item.name }}</div>
|
<div class="desc-count">
|
<span class="count-name">设备总量:</span>
|
<span class="num" style="margin-right: 10px">{{ 31 }}</span>
|
<span class="count-name">算法:</span>
|
<span class="num">{{ 31 }}</span>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="column-right">
|
<div class="title">
|
<span class="m-t" @click="backToList">全部设备</span>
|
|
<span class="sep" v-show="isInDetail">|</span>
|
|
<span v-show="isInDetail">设备详情</span>
|
</div>
|
|
<div class="area-left" v-if="!isInDetail">
|
<!-- <div class="add-btn btn" ></div> -->
|
<div class="add-btn" @click="addDevice">
|
<span class="icon iconfont"></span>
|
<span class="add-text">添加设备</span>
|
</div>
|
<span
|
class="icon iconfont"
|
style="font-size: 25px"
|
:style="{ color: !showTable ? '#333333' : '#3d5ee1' }"
|
@click="showTable = true"
|
></span
|
>
|
<span
|
class="icon iconfont"
|
:style="{ color: showTable ? '#333333' : '#3d5ee1' }"
|
style="font-size: 19px"
|
@click="showTable = false"
|
></span
|
>
|
</div>
|
|
<el-dialog
|
v-drag
|
class="device-dial"
|
title="添加设备"
|
:visible.sync="dialogVisible"
|
:close-on-click-modal="false"
|
:destroy-on-close="true"
|
:modal-append-to-body="false"
|
width="50%"
|
>
|
<div style="">
|
<el-input
|
placeholder="请输入集群IP/设备ID/设备IP"
|
v-model="input3"
|
class="input-with-select"
|
>
|
<el-button slot="append" icon="el-icon-search"></el-button>
|
</el-input>
|
</div>
|
|
<el-table
|
:data="gTableData"
|
v-if="gTableData"
|
ref="elTable"
|
:header-cell-style="{
|
backgroundColor: `rgb(238, 238, 241)`,
|
'text-align': 'center',
|
}"
|
:row-style="{
|
height: `0`,
|
}"
|
:header-row-style="{
|
height: `0`,
|
}"
|
header-align="center"
|
@selection-change="taskTableSelection"
|
>
|
<!-- v-loading -->
|
<el-table-column
|
prop="name"
|
label="集群名称"
|
align="center"
|
></el-table-column>
|
<el-table-column label="IP地址" align="center">
|
<template slot-scope="scope">
|
<div>{{ scope.row.ip }}</div>
|
</template>
|
</el-table-column>
|
|
<el-table-column label="操作" align="center">
|
<template slot-scope="scope">
|
<div class="operation">
|
<el-button size="mini" @click="applyAdd(scope.row)"
|
>申请添加设备</el-button
|
>
|
</div>
|
</template>
|
</el-table-column>
|
<el-table-column type="expand">
|
<template slot-scope="scope">
|
<div class="video-item">
|
<el-table
|
ref="singleTable"
|
:data="scope.row.deviceList"
|
highlight-current-row
|
@current-change="handleCurrentChange"
|
style="width: 100%"
|
>
|
<el-table-column label="序号" type="index" width="50">
|
</el-table-column>
|
<el-table-column property="id" label="日期" width="120">
|
</el-table-column>
|
<el-table-column property="ip" label="姓名" width="120">
|
</el-table-column>
|
<el-table-column property="name" label="地址">
|
</el-table-column>
|
</el-table>
|
</div>
|
</template>
|
</el-table-column>
|
</el-table>
|
|
<el-pagination
|
@size-change="handleSizeChange"
|
@current-change="handleCurrentChange"
|
:current-page="currentPage4"
|
:page-sizes="[10, 20, 50]"
|
:page-size="10"
|
layout="total, sizes, prev, pager, next, jumper"
|
:total="30"
|
>
|
</el-pagination>
|
|
<el-dialog
|
width="400px"
|
class="inner-dial"
|
v-drag
|
title="请输入设备管理的授权密钥"
|
:visible.sync="innerVisible"
|
append-to-body
|
:modal="false"
|
>
|
<div class="code-text">密钥信息请询问设备管理人员</div>
|
<el-input
|
v-model="password"
|
size="small"
|
placeholder="请输入授权密钥"
|
style="width: 200px"
|
></el-input>
|
<span class="err-pw">密码错误 </span>
|
|
<span slot="footer" class="dialog-footer">
|
<el-button size="small" @click="innerVisible = false"
|
>取 消</el-button
|
>
|
<el-button type="primary" size="small" @click="innerVisible = false"
|
>确 定</el-button
|
>
|
</span>
|
</el-dialog>
|
<span slot="footer" class="dialog-footer">
|
<el-button @click="dialogVisible = false">取 消</el-button>
|
<el-button type="primary" @click="dialogVisible = false"
|
>确 定</el-button
|
>
|
</span>
|
</el-dialog>
|
|
<el-menu
|
:default-active="activeIndex"
|
v-if="!isInDetail"
|
class="el-menu-demo"
|
mode="horizontal"
|
active-text-color="#3D60E1"
|
@select="handleSelect"
|
>
|
<el-menu-item index="1">全部({{ 23 }})</el-menu-item>
|
<el-menu-item index="2">在线({{ 23 }})</el-menu-item>
|
<el-menu-item index="3">离线({{ 23 }})</el-menu-item>
|
</el-menu>
|
|
<el-table
|
v-if="showTable && !isInDetail"
|
ref="multipleTable"
|
highlight-current-row
|
:data="jTableData"
|
style="width: 100%"
|
:header-cell-style="{ background: '#EEEEF1', color: '#222222' }"
|
>
|
<el-table-column
|
align="center"
|
prop="name"
|
label="设备名称"
|
></el-table-column>
|
<el-table-column
|
align="center"
|
prop="id"
|
label="设备ID"
|
></el-table-column>
|
<el-table-column
|
align="center"
|
prop="ip"
|
label="IP地址"
|
></el-table-column>
|
<el-table-column
|
align="center"
|
prop="downloadTime"
|
label="安装时间"
|
></el-table-column>
|
<el-table-column
|
align="center"
|
prop="firstTime"
|
label="首次使用时间"
|
></el-table-column>
|
<el-table-column
|
align="center"
|
prop="group"
|
label="所属集群"
|
></el-table-column>
|
<el-table-column
|
align="center"
|
prop="state"
|
label="状态"
|
></el-table-column>
|
<el-table-column label="操作" :align="'center'">
|
<template slot-scope="scope">
|
<div class="circle-bot">
|
<div class="dot"></div>
|
在线{{ scope.row.state }}
|
</div>
|
</template>
|
</el-table-column>
|
</el-table>
|
|
<div class="cards-group" v-show="!showTable && !isInDetail">
|
<el-row :gutter="20">
|
<el-col
|
:xs="5"
|
:sm="5"
|
:md="5"
|
:lg="5"
|
v-for="(item, i) in cardList"
|
:key="i"
|
>
|
<div class="card-item" @click="checkDetail">
|
<div class="card-icon"></div>
|
<div class="server-name">服务器20.10</div>
|
<div class="server-ip">192.168.20.10:7009/</div>
|
<el-divider></el-divider>
|
|
<div class="info-list">
|
<div class="item">
|
<div class="item-name">内存</div>
|
<div class="bar-outer">
|
<div
|
class="bar-inner"
|
:style="{ width: widthObj.storage }"
|
></div>
|
</div>
|
<span class="percent-text">{{ widthObj.storage }}</span>
|
</div>
|
<div class="item">
|
<div class="item-name">算力</div>
|
<div class="bar-outer">
|
<div
|
class="bar-inner"
|
:style="{ width: widthObj.power, background: '#F99D9D' }"
|
></div>
|
</div>
|
<span class="percent-text">{{ widthObj.power }}</span>
|
</div>
|
<div class="item">
|
<div class="item-name">CPU</div>
|
<div class="bar-outer">
|
<div
|
class="bar-inner"
|
:style="{ width: widthObj.cpu }"
|
></div>
|
</div>
|
<span class="percent-text">{{ widthObj.cpu }}</span>
|
</div>
|
<div class="item">
|
<div class="item-name">硬盘</div>
|
<div class="bar-outer">
|
<div
|
class="bar-inner"
|
:style="{ width: widthObj.hard }"
|
></div>
|
</div>
|
<span class="percent-text">{{ widthObj.hard }}</span>
|
</div>
|
</div>
|
</div>
|
</el-col>
|
</el-row>
|
</div>
|
|
<div class="detail-page" v-if="isInDetail">
|
<div class="detail-top">
|
<div class="detail-title">服务器20.10</div>
|
<div class="device-time">设备当前时间:{{ "2021-03-04" }}</div>
|
<div class="btn-group">
|
<div class="btn">加入集群</div>
|
<div class="btn">设备重启</div>
|
<div class="btn">移除设备</div>
|
</div>
|
</div>
|
|
<div class="detail-info">
|
<div class="basic-info">
|
<div class="basic-info-title">设备基本信息</div>
|
<el-divider></el-divider>
|
<div class="info-content">
|
<div class="single-content">
|
<div class="head-title">设备信息</div>
|
<div class="bar-content">
|
<span>设备ID</span>
|
<span>DWOFWE1039120</span>
|
</div>
|
<div class="bar-content">
|
<span>设备ID</span>
|
<span>DWOFWE1039120</span>
|
</div>
|
<div class="bar-content">
|
<span>设备ID</span>
|
<span>DWOFWE1039120</span>
|
</div>
|
<div class="bar-content">
|
<span>设备ID</span>
|
<span>DWOFWE1039120</span>
|
</div>
|
</div>
|
<div class="single-content">
|
<div class="head-title">硬件信息</div>
|
<div class="bar-content">
|
<span>设备ID</span>
|
<span>DWOFWE1039120</span>
|
</div>
|
<div class="bar-content">
|
<span>设备ID</span>
|
<span>DWOFWE1039120</span>
|
</div>
|
</div>
|
</div>
|
</div>
|
<div class="info-right">
|
<div class="performance">
|
<div class="basic-info-title">设备性能</div>
|
<el-divider></el-divider>
|
<div class="performance-content">
|
<el-progress
|
type="circle"
|
:percentage="25"
|
:width="70"
|
:stroke-width="15"
|
></el-progress>
|
<el-progress
|
type="circle"
|
color="rgba(49, 249, 170, 1)"
|
:percentage="25"
|
:width="70"
|
:stroke-width="15"
|
></el-progress>
|
<el-progress
|
type="circle"
|
color="rgba(249, 210, 49, 1)"
|
:percentage="25"
|
:width="70"
|
:stroke-width="15"
|
></el-progress>
|
<el-progress
|
type="circle"
|
color="rgba(249, 129, 129, 1)"
|
:percentage="25"
|
:width="70"
|
:stroke-width="15"
|
></el-progress>
|
</div>
|
<div class="names">
|
<div class="name">内存</div>
|
<div class="name">算力</div>
|
<div class="name">CPU</div>
|
<div class="name">硬盘</div>
|
</div>
|
</div>
|
<div class="version">
|
<div class="basic-info-title">设备版本信息</div>
|
<el-divider></el-divider>
|
<div class="info-content">
|
<div class="single-content">
|
<div class="bar-content">
|
<span>设备ID</span>
|
<span>DWOFWE1039120</span>
|
</div>
|
<div class="check-new">
|
<span class="text">检测到有新版本:2.23.1</span>
|
<div class="btn">更新</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
|
<div class="count-list">
|
<div class="count-item">
|
<div class="desc">算法总量</div>
|
<div class="num">{{ 22 }}</div>
|
</div>
|
<div class="count-item">
|
<div class="desc">应用总量</div>
|
<div class="num">{{ 22 }}</div>
|
</div>
|
<div class="count-item">
|
<div class="desc">算法待更新总量</div>
|
<div class="num">{{ 22 }}</div>
|
</div>
|
<div class="count-item">
|
<div class="desc">应用待更新总量</div>
|
<div class="num">{{ 22 }}</div>
|
</div>
|
</div>
|
<div class="skd-list">
|
<div class="basic-info-title">
|
<span class="small-title">安装的算法</span>
|
<el-select v-model="value" placeholder="请选择" size="mini">
|
<el-option
|
v-for="item in options"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value"
|
>
|
</el-option>
|
</el-select>
|
</div>
|
<el-divider></el-divider>
|
<div class="list-display">
|
<el-row :gutter="20" style="padding: 15px 15px 5px 15px">
|
<el-col
|
:xs="5"
|
:sm="5"
|
:md="5"
|
:lg="5"
|
v-for="(item, i) in sdkList"
|
:key="i"
|
>
|
<div
|
class="item-card"
|
:class="{ willUpGrade: item.isUpgrade }"
|
v-loading="item.upgradeLoading"
|
element-loading-text="算法下载中"
|
element-loading-background="rgba(0,0,0,.8)"
|
>
|
<i class="iconfont iconupdate" v-if="1"></i>
|
<div class="up">
|
<div class="img-wrap"></div>
|
<div class="right-desc">
|
<div>
|
<div class="card-title">未带安全帽检测</div>
|
<div class="tag-btn">{{ "轮询" }}</div>
|
</div>
|
</div>
|
</div>
|
<div class="down">
|
<div class="down-bar">安装时间</div>
|
<div class="down-bar">过期时间</div>
|
<div class="down-bar">激活码</div>
|
</div>
|
|
<div class="card-mask">
|
<i class="iconfont iconupdate" v-if="item.isUpgrade"></i>
|
<div class="left-top">
|
<div>当前版本:{{ 2121 }}</div>
|
<div v-if="1">最新版本:{{ 32231 }}</div>
|
</div>
|
<div class="btns">
|
<el-button type="primary" size="small">卸载</el-button>
|
<el-button
|
type="warning"
|
size="small"
|
@click="upgradeSDK(item)"
|
>升级</el-button
|
>
|
</div>
|
</div>
|
</div>
|
</el-col>
|
</el-row>
|
</div>
|
</div>
|
|
<div class="app-list">
|
<div class="basic-info-title">
|
<span class="small-title">安装的应用</span>
|
<el-select v-model="value" placeholder="请选择" size="mini">
|
<el-option
|
v-for="item in options"
|
:key="item.value"
|
:label="item.label"
|
:value="item.value"
|
>
|
</el-option>
|
</el-select>
|
</div>
|
<el-divider></el-divider>
|
|
<div class="list-display">
|
<el-row :gutter="20" style="padding: 15px 15px 5px 15px">
|
<el-col
|
:xs="5"
|
:sm="5"
|
:md="5"
|
:lg="5"
|
v-for="(item, i) in sdkList"
|
:key="i"
|
>
|
<div class="item-card">
|
<i class="iconfont iconupdate" v-if="1"></i>
|
<div class="up">
|
<div class="img-wrap"></div>
|
<div class="right-desc">
|
<div>
|
<div class="card-title">未带安全帽检测</div>
|
<div class="tag-btn">{{ "轮询" }}</div>
|
</div>
|
</div>
|
</div>
|
<div class="down">
|
<div class="down-bar">安装时间</div>
|
<div class="down-bar">过期时间</div>
|
<div class="down-bar">激活码</div>
|
</div>
|
<div class="card-mask">
|
<div class="left-top">
|
<div>当前版本:{{ 2121 }}</div>
|
<div v-if="1">最新版本:{{ 32231 }}</div>
|
</div>
|
<div class="btns">
|
<el-button type="primary" size="small">卸载</el-button>
|
<el-button type="warning" size="small">升级</el-button>
|
</div>
|
</div>
|
</div>
|
</el-col>
|
</el-row>
|
</div>
|
</div>
|
</div>
|
</div>
|
</div>
|
</template>
|
|
<script>
|
export default {
|
name: "VideoManage",
|
components: {},
|
data() {
|
return {
|
input3: "",
|
dialogVisible: false,
|
screenHeight: 0,
|
jTableData: [
|
{
|
name: "大蛇丸",
|
id: "efefw",
|
ip: "2123",
|
downloadTime: "239:212",
|
firstTime: "fe12",
|
group: "feee",
|
state: "fefe",
|
},
|
],
|
gTableData: [
|
{
|
name: "服务器20.10",
|
ip: "11111",
|
deviceList: [
|
{
|
id: "21312",
|
ip: "2232fef",
|
name: "eofs",
|
},
|
{
|
id: "3423",
|
ip: "2232eef",
|
name: "fe",
|
},
|
{
|
id: "45435",
|
ip: "2232fgg",
|
name: "eoffaefws",
|
},
|
],
|
},
|
{
|
name: "服务器20.11",
|
ip: "22222",
|
},
|
],
|
currentPage4: 4,
|
groups: [
|
{
|
barColor: "#535FF4",
|
name: "全部设备",
|
},
|
{
|
barColor: "#A07EF0",
|
name: "Basic集群",
|
},
|
{
|
barColor: "#EE6779",
|
name: "学校集群",
|
},
|
{
|
barColor: "#67C6F1",
|
name: "未加入集群",
|
},
|
],
|
highlightCardIndex: 0,
|
cardList: [{}, {}, {}, {}, {}, {}, {}, {}, {}],
|
widthObj: {
|
storage: "50%",
|
power: "30%",
|
cpu: "50%",
|
hard: "70%",
|
},
|
showTable: true,
|
isInDetail: false,
|
sdkList: [
|
{ isUpgrade: false, upgradeLoading: false },
|
{ isUpgrade: false, upgradeLoading: false },
|
{ isUpgrade: false, upgradeLoading: false },
|
{ isUpgrade: true, upgradeLoading: false },
|
{ isUpgrade: false, upgradeLoading: false },
|
{ isUpgrade: true, upgradeLoading: false },
|
{ isUpgrade: false, upgradeLoading: false },
|
{ isUpgrade: true, upgradeLoading: false },
|
{ isUpgrade: true, upgradeLoading: false },
|
{ isUpgrade: true, upgradeLoading: false },
|
{ isUpgrade: false, upgradeLoading: false },
|
],
|
appList: [{}, {}, {}, {}, {}, {}, {}],
|
options: [
|
{
|
value: "选项1",
|
label: "黄金糕",
|
},
|
{
|
value: "选项2",
|
label: "双皮奶",
|
},
|
{
|
value: "选项3",
|
label: "蚵仔煎",
|
},
|
{
|
value: "选项4",
|
label: "龙须面",
|
},
|
{
|
value: "选项5",
|
label: "北京烤鸭",
|
},
|
],
|
value: "",
|
activeIndex: "1",
|
innerVisible: false,
|
password: "",
|
};
|
},
|
mounted() {
|
this.screenHeight = document.documentElement.clientHeight;
|
window.onresize = () => {
|
return (() => {
|
this.screenHeight = document.documentElement.clientHeight;
|
})();
|
};
|
this.$refs[`item_${0}`][0].style.backgroundColor = "#353A8A";
|
},
|
methods: {
|
upgradeSDK(item) {
|
item.upgradeLoading = true;
|
// setTimeout(() => {
|
// item.upgradeLoading=false
|
|
// }, 2400);
|
},
|
applyAdd(item) {
|
this.innerVisible = true;
|
},
|
handleSelect(key, keyPath) {
|
console.log(key, keyPath);
|
},
|
backToList() {
|
this.isInDetail = false;
|
},
|
checkDetail() {
|
this.isInDetail = true;
|
},
|
addDevice() {
|
this.dialogVisible = true;
|
},
|
clickCard(i) {
|
this.$refs[`item_${this.highlightCardIndex}`][0].style.backgroundColor =
|
"#25283A";
|
this.highlightCardIndex = i;
|
this.$refs[`item_${i}`][0].style.backgroundColor = "#353A8A";
|
},
|
},
|
directives: {
|
drag(el, binding) {
|
const dialogHeaderEl = el.querySelector(".el-dialog__header");
|
const dragDom = el.querySelector(".el-dialog");
|
dialogHeaderEl.style.cursor = "move";
|
const sty =
|
dragDom.currentStyle || window.getComputedStyle(dragDom, null);
|
dialogHeaderEl.onmousedown = (e) => {
|
const disX = e.clientX - dialogHeaderEl.offsetLeft;
|
const disY = e.clientY - dialogHeaderEl.offsetTop;
|
let styL, styT;
|
|
if (sty.left.includes("%")) {
|
styL =
|
+document.body.clientWidth * (+sty.left.replace(/\%/g, "") / 100);
|
styT =
|
+document.body.clientHeight * (+sty.top.replace(/\%/g, "") / 100);
|
} else {
|
styL = +sty.left.replace(/\px/g, "");
|
styT = +sty.top.replace(/\px/g, "");
|
}
|
document.onmousemove = function (e) {
|
const l = e.clientX - disX;
|
const t = e.clientY - disY;
|
dragDom.style.left = `${l + styL}px`;
|
dragDom.style.top = `${t + styT}px`;
|
};
|
document.onmouseup = function (e) {
|
document.onmousemove = null;
|
document.onmouseup = null;
|
};
|
};
|
},
|
},
|
watch: {
|
// isInDetail(v){
|
// debugger
|
// if (v) {
|
// document.getElementsByClassName("column-right").style.backgroundColor = 'rgba(240, 242, 245, 1)'
|
// } else {
|
// document.getElementsByClassName("column-right").style.backgroundColor = 'initial'
|
// }
|
// }
|
},
|
};
|
</script>
|
|
<style lang="scss" scoped>
|
.column {
|
height: 100%;
|
display: flex;
|
flex-direction: row;
|
flex: 1;
|
flex-basis: auto;
|
box-sizing: border-box;
|
}
|
.circle-bot {
|
width: 55px;
|
text-align: center;
|
margin: 0 auto;
|
font-size: 12px;
|
font-weight: 400;
|
color: #00b948;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
line-height: 16px;
|
.dot {
|
width: 5px;
|
height: 5px;
|
background: #00b948;
|
border-radius: 50%;
|
display: inline-block;
|
margin-right: 3px;
|
}
|
}
|
.column-left {
|
background-color: #2f325a;
|
height: 100%;
|
width: 300px;
|
overflow: auto;
|
box-sizing: border-box;
|
flex-shrink: 0;
|
padding: 10px;
|
.left-title {
|
font-size: 25px;
|
color: #ffffff;
|
text-align: left;
|
padding: 10px;
|
padding-top: 5px;
|
}
|
.left-item {
|
border-radius: 8px;
|
height: 100px;
|
margin-bottom: 10px;
|
cursor: pointer;
|
display: flex;
|
align-items: center;
|
box-sizing: border-box;
|
color: #ffffff;
|
background-color: #25283a;
|
.cir-all {
|
margin-left: 15px;
|
margin-right: 5px;
|
}
|
.pie {
|
position: relative;
|
}
|
|
.circleCenter {
|
position: absolute;
|
width: 60px;
|
top: 22px;
|
|
text-align: center;
|
left: 0px;
|
font-size: 15px;
|
font-weight: 600;
|
}
|
|
.desc-item {
|
height: 80px;
|
.desc-name {
|
text-align: left;
|
font-size: 16px;
|
padding: 10px;
|
}
|
.desc-count {
|
text-align: left;
|
padding: 0 10px 10px 10px;
|
.count-name {
|
font-size: 14px;
|
color: #7477a2;
|
}
|
.num {
|
font-size: 24px;
|
font-family: Impact;
|
font-weight: 400;
|
color: #5781ff;
|
}
|
}
|
}
|
}
|
.left-item:hover {
|
background-color: #353a8a;
|
}
|
}
|
.column-right {
|
flex: 1;
|
flex-basis: auto;
|
overflow: auto;
|
// background-color: rgba(240, 242, 245, 1);
|
box-sizing: border-box;
|
padding: 10px 15px;
|
position: relative;
|
.title {
|
text-align: left;
|
font-size: 16px;
|
font-weight: 600;
|
color: #333333;
|
padding: 5px 15px;
|
.m-t {
|
cursor: pointer;
|
}
|
.m-t:hover {
|
font-weight: 600;
|
color: #3d68e1;
|
}
|
.sep {
|
margin: 0 10px 0px 15px;
|
font-size: 20px;
|
color: lightgray;
|
}
|
}
|
.el-menu-item {
|
font-size: 15px;
|
|
font-weight: 600;
|
padding: 0 15px;
|
}
|
|
.el-menu--horizontal > .el-menu-item {
|
height: 50px;
|
line-height: 50px;
|
}
|
.area-left {
|
height: 40px;
|
display: flex;
|
width: 150px;
|
justify-content: space-between;
|
align-items: center;
|
position: absolute;
|
top: 47px;
|
right: 15px;
|
z-index: 1;
|
.icon {
|
cursor: pointer;
|
color: #333333;
|
}
|
.icon:hover {
|
color: #3d5ee1 !important;
|
}
|
.add-btn {
|
display: flex;
|
align-items: center;
|
width: 90px;
|
cursor: pointer;
|
font-size: 16px;
|
justify-content: space-evenly;
|
color: #3d62e1;
|
.icon {
|
font-size: 18px;
|
color: #3d5ee1;
|
line-height: 24px;
|
}
|
.add-text {
|
height: 24px;
|
line-height: 24px;
|
}
|
}
|
.add-btn:hover {
|
font-weight: 600;
|
}
|
}
|
.el-table {
|
margin-top: 15px;
|
}
|
.cards-group {
|
margin-top: 15px;
|
|
.card-item {
|
height: 270px;
|
margin-bottom: 20px;
|
border-radius: 4px;
|
box-shadow: 0px 0px 7px 0px rgba(167, 167, 167, 0.53);
|
padding: 15px;
|
background-color: #fff;
|
position: relative;
|
box-sizing: border-box;
|
cursor: pointer;
|
|
.card-icon {
|
height: 75px;
|
width: 75px;
|
background-color: gainsboro;
|
margin: 0 auto;
|
}
|
.server-name {
|
margin: 5px auto;
|
font-size: 16px;
|
font-weight: bold;
|
color: #333333;
|
}
|
.server-ip {
|
font-size: 14px;
|
margin-bottom: 5px;
|
color: #ccccd2;
|
}
|
.info-list {
|
margin-top: 13px;
|
.item {
|
display: flex;
|
align-items: center;
|
height: 24px;
|
.item-name {
|
font-size: 14px;
|
color: #333333;
|
min-width: 28px;
|
// width: 18%;
|
margin-right: 5px;
|
}
|
.bar-outer {
|
height: 11px;
|
background-color: #eeeef1;
|
overflow: hidden;
|
position: relative;
|
width: 70%;
|
vertical-align: middle;
|
margin-right: 6px;
|
.bar-inner {
|
opacity: 0.5;
|
|
position: absolute;
|
left: 0;
|
top: 0;
|
height: 100%;
|
background-color: #bfccf6;
|
text-align: right;
|
border-radius: 6px;
|
line-height: 1;
|
white-space: nowrap;
|
transition: width 0.6s ease;
|
}
|
}
|
.percent-text {
|
font-size: 14px;
|
}
|
}
|
}
|
}
|
.card-item:hover {
|
box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.4);
|
}
|
.el-col-lg-5 {
|
width: 20%;
|
}
|
}
|
|
.detail-page {
|
.detail-top {
|
height: 50px;
|
padding: 0 20px;
|
background-color: #fff;
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
border-radius: 5px;
|
.detail-title {
|
font-size: 16px;
|
font-weight: 600;
|
}
|
.device-time {
|
font-size: 14px;
|
}
|
.btn-group {
|
width: 270px;
|
display: flex;
|
justify-content: space-between;
|
align-items: center;
|
}
|
}
|
.basic-info-title {
|
text-align: left;
|
padding: 8px 15px;
|
font-size: 14px;
|
display: flex;
|
justify-content: space-between;
|
.small-title {
|
font-size: 16px;
|
line-height: 28px;
|
}
|
.el-select {
|
width: 140px;
|
}
|
}
|
.detail-info {
|
width: 100%;
|
height: 300px;
|
display: flex;
|
justify-content: space-between;
|
margin-top: 10px;
|
.basic-info {
|
height: 300px;
|
width: 60%;
|
background-color: #fff;
|
margin-right: 10px;
|
}
|
|
.info-content {
|
padding: 15px 50px;
|
.single-content {
|
margin-bottom: 10px;
|
.head-title {
|
text-align: left;
|
margin-bottom: 10px;
|
}
|
.bar-content {
|
display: flex;
|
justify-content: space-between;
|
background-color: #f7f9fa;
|
margin-bottom: 4px;
|
padding: 2px 10px;
|
height: 20px;
|
color: #a1a1a1;
|
align-items: center;
|
}
|
}
|
}
|
.info-right {
|
height: 300px;
|
width: 40%;
|
.performance {
|
height: 170px;
|
background-color: #fff;
|
.performance-content {
|
margin-top: 20px;
|
display: flex;
|
justify-content: space-evenly;
|
}
|
.names {
|
margin-top: 10px;
|
display: flex;
|
justify-content: space-evenly;
|
.name {
|
width: 70px;
|
text-align: center;
|
}
|
}
|
}
|
.version {
|
margin-top: 10px;
|
height: 120px;
|
background-color: #fff;
|
.check-new {
|
.text {
|
margin-right: 10px;
|
}
|
align-items: center;
|
display: flex;
|
justify-content: space-between;
|
padding: 0 10px;
|
}
|
}
|
}
|
}
|
.count-list {
|
margin-top: 10px;
|
background-color: #fff;
|
display: flex;
|
justify-content: space-evenly;
|
align-items: center;
|
padding: 15px;
|
|
.count-item {
|
width: 25%;
|
height: 55px;
|
border-right: 1px solid rgba(177, 179, 181, 1);
|
.desc {
|
height: 20px;
|
line-height: 20px;
|
font-size: 14px;
|
color: rgba(0, 0, 0, 0.447058);
|
}
|
.num {
|
height: 35px;
|
line-height: 35px;
|
font-size: 24px;
|
}
|
}
|
.count-item:last-child {
|
border: none;
|
}
|
}
|
.list-display {
|
.el-col-lg-5 {
|
width: 20%;
|
}
|
}
|
.item-card {
|
border: 1px solid rgba(233, 233, 233, 1);
|
height: 145px;
|
position: relative;
|
margin-bottom: 15px;
|
svg {
|
position: absolute;
|
top: 50%;
|
left: 50%;
|
transform: translate(-50%, -50%);
|
}
|
.iconupdate {
|
color: #01e667;
|
position: absolute;
|
top: 8px;
|
right: 8px;
|
font-size: 25px;
|
}
|
|
.up {
|
height: 70px;
|
display: flex;
|
background-color: rgba(247, 249, 250, 1);
|
.img-wrap {
|
width: 70px;
|
height: 100%;
|
background-color: cornsilk;
|
}
|
.right-desc {
|
display: flex;
|
align-items: center;
|
padding: 10px;
|
.card-title {
|
font-size: 14px;
|
font-weight: 600;
|
margin-bottom: 5px;
|
}
|
.tag-btn {
|
background-color: cornflowerblue;
|
color: white;
|
border-radius: 15px;
|
width: 55px;
|
height: 18px;
|
line-height: 18px;
|
}
|
}
|
}
|
.down {
|
height: 75px;
|
display: flex;
|
flex-direction: column;
|
justify-content: center;
|
|
.down-bar {
|
height: 16px;
|
padding: 2px 15px;
|
|
text-align: left;
|
}
|
}
|
}
|
.item-card:hover {
|
.card-mask {
|
display: block;
|
}
|
}
|
.skd-list {
|
min-height: 300px;
|
background-color: #fff;
|
margin: 10px 0;
|
}
|
.app-list {
|
min-height: 300px;
|
background-color: #fff;
|
margin: 10px 0;
|
}
|
}
|
}
|
.inner-dial {
|
.el-dialog__body {
|
text-align: left;
|
padding: 10px 50px;
|
.code-text {
|
margin: 10px 0;
|
}
|
.err-pw {
|
color: red;
|
margin-left: 10px;
|
}
|
}
|
.el-dialog__header {
|
padding: 10px 20px;
|
border-bottom: 1px solid #eee;
|
}
|
.el-dialog__title {
|
font-size: 16px;
|
}
|
}
|
.device-dial {
|
.el-dialog__body {
|
padding: 10px 20px 15px 20px;
|
}
|
}
|
.el-dialog {
|
.el-dialog__header {
|
padding: 10px 20px;
|
text-align: left;
|
.el-dialog__headerbtn {
|
top: 13px;
|
}
|
.el-dialog__headerbtn .el-dialog__close {
|
color: #909399;
|
}
|
}
|
}
|
.heigher-index {
|
position: absolute;
|
top: 0;
|
z-index: 10;
|
width: 100%;
|
height: 100%;
|
}
|
|
.el-divider--horizontal {
|
margin: 0;
|
}
|
.btn {
|
height: 25px;
|
width: 80px;
|
font-size: 13px;
|
display: flex;
|
align-items: center;
|
justify-content: center;
|
background-color: rgba(229, 240, 255, 1);
|
border: 1px solid rgba(215, 215, 215, 1);
|
cursor: pointer;
|
border-radius: 4px;
|
}
|
.card-mask {
|
position: absolute;
|
top: 0;
|
left: 0;
|
width: 100%;
|
height: 100%;
|
background: rgba(0, 0, 0, 0.5);
|
backdrop-filter: blur(0.5px) brightness(100%);
|
text-align: center;
|
z-index: 1;
|
display: none;
|
// svg {
|
// position: absolute;
|
// top: 49%;
|
// left: 50%;
|
// transform: translate(-50%, -50%);
|
// z-index: 33;
|
// }
|
.left-top {
|
position: absolute;
|
left: 10px;
|
top: 6px;
|
|
font-size: 14px;
|
color: #fff;
|
text-align: left;
|
}
|
.btns {
|
position: absolute;
|
bottom: 12px;
|
right: 10px;
|
.el-button--small {
|
padding: 7px 13px;
|
font-size: 14px;
|
}
|
}
|
}
|
.input-with-select .el-input-group__prepend {
|
background-color: #fff;
|
}
|
</style>
|