提交: 项目详情页 布局调整 优化
This commit is contained in:
parent
8b2caa0333
commit
63ef4fe2ea
|
@ -11,7 +11,7 @@
|
||||||
<link rel="stylesheet" href="//at.alicdn.com/t/font_2506643_9w119og75cs.css">
|
<link rel="stylesheet" href="//at.alicdn.com/t/font_2506643_9w119og75cs.css">
|
||||||
|
|
||||||
|
|
||||||
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_2506643_xttpv6d8dy.css">
|
<link rel="stylesheet" href="//at.alicdn.com/t/c/font_2506643_51mhr4b9ys6.css">
|
||||||
|
|
||||||
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.15&key=4b483d227a9c7dd12e46faae5a8c8af8"></script>
|
<script type="text/javascript" src="http://webapi.amap.com/maps?v=1.4.15&key=4b483d227a9c7dd12e46faae5a8c8af8"></script>
|
||||||
<script src="<%= BASE_URL %>js/config.js"></script>
|
<script src="<%= BASE_URL %>js/config.js"></script>
|
||||||
|
|
|
@ -10,7 +10,7 @@ let prodApi = window.dasConfig.ip || '/prod-api';
|
||||||
let wsProtocol = 'ws://';
|
let wsProtocol = 'ws://';
|
||||||
let iotWebSocketAlarmBaseUrl = ''
|
let iotWebSocketAlarmBaseUrl = ''
|
||||||
let bigWebSocketUrl = ''
|
let bigWebSocketUrl = ''
|
||||||
let port = '8899'
|
let port = '32024'
|
||||||
let webSocketProjectGatewayUrl = ''
|
let webSocketProjectGatewayUrl = ''
|
||||||
let hrefHostUrl = '';
|
let hrefHostUrl = '';
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ let httpProtocol = 'http';
|
||||||
|
|
||||||
if (env.NODE_ENV == 'development') {
|
if (env.NODE_ENV == 'development') {
|
||||||
flowIotUrl = 'http://127.0.0.1:1880/#flow/'
|
flowIotUrl = 'http://127.0.0.1:1880/#flow/'
|
||||||
hrefHost = "192.168.10.241"
|
hrefHost = "power-tcore.histron.cn"
|
||||||
} else if(env.NODE_ENV == 'production') {
|
} else if(env.NODE_ENV == 'production') {
|
||||||
// if (hrefHost.indexOf('.gkiiot.com') >= 0) {
|
// if (hrefHost.indexOf('.gkiiot.com') >= 0) {
|
||||||
// iotHost = 'iot.gkiiot.com'
|
// iotHost = 'iot.gkiiot.com'
|
||||||
|
|
|
@ -1,29 +1,128 @@
|
||||||
<template>
|
<template>
|
||||||
<div class="device-select-nav">
|
<div class="device-select-nav">
|
||||||
<div class="layout-select-wrap" v-if="childDeviceList.length > 0">
|
<div class="layout-select-wrap" v-if="childDeviceList.length > 0">
|
||||||
<el-button
|
<!-- <div
|
||||||
plain
|
class="but"
|
||||||
size="mini"
|
|
||||||
:disabled="tSelectLabelList.length <= 0"
|
:disabled="tSelectLabelList.length <= 0"
|
||||||
@click="handleChildStatus('true')"
|
@click="handleChildStatus('true')"
|
||||||
>合闸</el-button
|
|
||||||
>
|
>
|
||||||
|
<i class="iconfont iconT icon-c"></i>
|
||||||
|
|
||||||
|
<span class="but-title">合闸</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div
|
||||||
|
class="but"
|
||||||
|
:disabled="tSelectLabelList.length <= 0"
|
||||||
|
@click="handleChildStatus('true')"
|
||||||
|
>
|
||||||
|
<i class="iconfont iconF icon-c"></i>
|
||||||
|
|
||||||
|
<span class="but-title">分闸</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="but" @click="handleAllStatus('true')">
|
||||||
|
<i class="iconfont iconhezha icon-c"></i>
|
||||||
|
|
||||||
|
<span class="but-title">一键合闸</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="but" @click="handleAllStatus('false')">
|
||||||
|
<i class="iconfont iconfenzha icon-c"></i>
|
||||||
|
|
||||||
|
<span class="but-title">一键分闸</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="but" @click="handleAllSelect('true')">
|
||||||
|
<i class="iconfont iconquanxuan icon-c"></i>
|
||||||
|
<span class="but-title">{{
|
||||||
|
childDeviceList.length > tSelectList.length ? "全选" : "取消"
|
||||||
|
}}</span>
|
||||||
|
</div> -->
|
||||||
|
|
||||||
<el-button
|
<el-button
|
||||||
plain
|
plain
|
||||||
size="mini"
|
size="mini"
|
||||||
|
type="info"
|
||||||
|
:disabled="tSelectLabelList.length <= 0"
|
||||||
|
@click="handleChildStatus('true')"
|
||||||
|
>
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<icon class="iconfont iconT but-icon" />
|
||||||
|
合闸
|
||||||
|
</div>
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
plain
|
||||||
|
size="mini"
|
||||||
|
type="info"
|
||||||
:disabled="tSelectLabelList.length <= 0"
|
:disabled="tSelectLabelList.length <= 0"
|
||||||
@click="handleChildStatus('false')"
|
@click="handleChildStatus('false')"
|
||||||
>分闸</el-button
|
|
||||||
>
|
>
|
||||||
<el-button plain size="mini" @click="handleAllStatus('true')"
|
<div
|
||||||
>一键合闸</el-button
|
style="
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<icon class="iconfont iconF but-icon" />
|
||||||
|
分闸
|
||||||
|
</div>
|
||||||
|
</el-button>
|
||||||
|
<el-button plain type="info" size="mini" @click="handleAllStatus('true')">
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<icon class="iconfont iconhezha but-icon" />
|
||||||
|
一键合闸
|
||||||
|
</div>
|
||||||
|
</el-button>
|
||||||
|
<el-button
|
||||||
|
plain
|
||||||
|
type="info"
|
||||||
|
size="mini"
|
||||||
|
@click="handleAllStatus('false')"
|
||||||
>
|
>
|
||||||
<el-button plain size="mini" @click="handleAllStatus('false')"
|
<div
|
||||||
>一键分闸</el-button
|
style="
|
||||||
>
|
width: 100%;
|
||||||
<el-button plain size="mini" @click="handleAllSelect()"
|
display: flex;
|
||||||
>{{ childDeviceList.length > tSelectList.length ? '全选' : '取消' }}</el-button
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<icon class="iconfont iconfenzha but-icon" />
|
||||||
|
一键分闸
|
||||||
|
</div></el-button
|
||||||
>
|
>
|
||||||
|
<el-button plain size="mini" type="info" @click="handleAllSelect()">
|
||||||
|
<div
|
||||||
|
style="
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<icon class="iconfont iconquanxuan but-icon" />
|
||||||
|
{{ childDeviceList.length > tSelectList.length ? "全选" : "取消" }}
|
||||||
|
</div>
|
||||||
|
</el-button>
|
||||||
|
|
||||||
<span class="title-span">已选择设备:</span>
|
<span class="title-span">已选择设备:</span>
|
||||||
<span v-if="tSelectLabelList.length <= 0">当前未选择设备</span>
|
<span v-if="tSelectLabelList.length <= 0">当前未选择设备</span>
|
||||||
<el-tag
|
<el-tag
|
||||||
|
@ -41,7 +140,8 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="layout-device-list">
|
<div class="layout-device-list">
|
||||||
<el-card
|
<el-card
|
||||||
:body-style="{ padding: '0px', width: '220px' }"
|
@click.native="viewDeviceChange(deviceInfo.deviceId)"
|
||||||
|
:body-style="{ padding: '0px', width: '220px' , 'boxShadow': '0 1px 5px 0 #2530341a' }"
|
||||||
:style="
|
:style="
|
||||||
deviceInfo.deviceId === checkobxDeviceId
|
deviceInfo.deviceId === checkobxDeviceId
|
||||||
? 'border: 1px solid #1890ff; margin: 5px; width: 220px; flex-shrink: 0;'
|
? 'border: 1px solid #1890ff; margin: 5px; width: 220px; flex-shrink: 0;'
|
||||||
|
@ -55,25 +155,30 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: flex-end;
|
||||||
|
padding: 0 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
padding-top: 5px;
|
padding-top: 5px;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: baseline;
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
<!-- <div
|
<span
|
||||||
style="width: 60px; display: flex; justify-content: center"
|
class="dev-info-title"
|
||||||
v-if="deviceInfo.stype === 'LAN' || deviceInfo.stype === 'lan'"
|
style="
|
||||||
|
font-weight: 400;
|
||||||
|
height: 30px;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 30px;
|
||||||
|
white-space: nowrap;
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
"
|
||||||
|
:title="deviceInfo.deviceName"
|
||||||
|
>{{ deviceInfo.deviceName }}</span
|
||||||
>
|
>
|
||||||
<i
|
|
||||||
:class="`iconfont ${statusFormat(deviceInfo.stype)}`"
|
|
||||||
style="color: black; font-size: 20px"
|
|
||||||
></i>
|
|
||||||
</div> -->
|
|
||||||
<div style="width: 60px; display: flex; justify-content: center">
|
<div style="width: 60px; display: flex; justify-content: center">
|
||||||
<!-- <i
|
|
||||||
:class="`iconfont ${statusFormat(deviceInfo.stype)}`"
|
|
||||||
style="color: black; font-size: 20px"
|
|
||||||
v-if="deviceInfo.stype === 'WIFI' || deviceInfo.stype === 'wifi'"
|
|
||||||
></i> -->
|
|
||||||
<i
|
<i
|
||||||
:class="signalType(deviceInfo.stype)"
|
:class="signalType(deviceInfo.stype)"
|
||||||
style="color: black; font-size: 20px"
|
style="color: black; font-size: 20px"
|
||||||
|
@ -83,41 +188,28 @@
|
||||||
:intensityNumber="deviceInfo.signal"
|
:intensityNumber="deviceInfo.signal"
|
||||||
></signal-intensity>
|
></signal-intensity>
|
||||||
</div>
|
</div>
|
||||||
<i
|
<!-- <i
|
||||||
v-if="deviceInfo.deviceId === checkobxDeviceId"
|
v-if="deviceInfo.deviceId === checkobxDeviceId"
|
||||||
class="el-icon-s-claim"
|
class="el-icon-s-claim"
|
||||||
style="font-size: 25px; color: #1890ff"
|
style="font-size: 25px; color: #1890ff"
|
||||||
></i>
|
></i> -->
|
||||||
</div>
|
</div>
|
||||||
<div class="dev-info">
|
<div class="dev-info">
|
||||||
<span class="dev-info-title" :title="deviceInfo.deviceName">{{
|
<div
|
||||||
deviceInfo.deviceName
|
:class="
|
||||||
}}</span>
|
deviceInfo['deviceState'] == 'ONLINE'
|
||||||
<div class="dev-info-state">
|
? 'dev-info-state'
|
||||||
<el-tag type="success" v-if="deviceInfo.deviceState === 'ONLINE'"
|
: 'dev-info-state off-line'
|
||||||
>在线</el-tag
|
"
|
||||||
>
|
>
|
||||||
<el-tag
|
<icon
|
||||||
type="danger"
|
v-if="deviceInfo['deviceState'] == 'ONLINE'"
|
||||||
v-else-if="deviceInfo.deviceState === 'OFFLINE'"
|
class="iconfont iconSYS_STA_1"
|
||||||
>离线</el-tag
|
/>
|
||||||
>
|
<icon v-else class="iconfont iconlixian" />
|
||||||
<el-tag
|
<span style="margin-left: 1px">{{
|
||||||
type="danger"
|
deviceInfo["deviceState"] == "ONLINE" ? "在线" : "离线"
|
||||||
v-else-if="deviceInfo.deviceState === 'OUTLINE'"
|
}}</span>
|
||||||
>脱线</el-tag
|
|
||||||
>
|
|
||||||
<el-tag
|
|
||||||
type="info"
|
|
||||||
v-else-if="deviceInfo.deviceState === 'UNACTIVE'"
|
|
||||||
>未激活</el-tag
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
size="mini"
|
|
||||||
@click="viewDeviceChange(deviceInfo.deviceId)"
|
|
||||||
>查看</el-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -125,10 +217,11 @@
|
||||||
|
|
||||||
<el-card
|
<el-card
|
||||||
:body-style="{ padding: '0px', width: '220px' }"
|
:body-style="{ padding: '0px', width: '220px' }"
|
||||||
|
@click.native="viewDeviceChange(item.deviceId)"
|
||||||
:style="
|
:style="
|
||||||
item.deviceId === checkobxDeviceId
|
item.deviceId === checkobxDeviceId
|
||||||
? 'border: 1px solid #1890ff; margin: 5px; width: 220px; flex-shrink: 0;'
|
? 'border: 1px solid #1890ff; margin: 5px; width: 220px; flex-shrink: 0; boxShadow: 0 1px 5px 0 #2530341a;'
|
||||||
: ' margin: 5px; width: 220px; flex-shrink: 0;'
|
: ' margin: 5px; width: 220px; flex-shrink: 0; boxShadow: 0 1px 5px 0 #2530341a;'
|
||||||
"
|
"
|
||||||
v-for="item in childDeviceList"
|
v-for="item in childDeviceList"
|
||||||
:key="item.deviceId"
|
:key="item.deviceId"
|
||||||
|
@ -139,14 +232,31 @@
|
||||||
height: 25px;
|
height: 25px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: flex-end;
|
justify-content: space-between;
|
||||||
|
padding: 0 10px;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
padding-top: 5px;
|
padding-top: 15px;
|
||||||
|
align-items: center;
|
||||||
"
|
"
|
||||||
>
|
>
|
||||||
|
<span
|
||||||
|
class="dev-info-title"
|
||||||
|
style="
|
||||||
|
font-weight: 400;
|
||||||
|
height: 30px;
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: 30px;
|
||||||
|
white-space: nowrap;
|
||||||
|
display: inline-block;
|
||||||
|
width: 100%;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
"
|
||||||
|
:title="item.deviceName"
|
||||||
|
>{{ item.deviceName }}</span
|
||||||
|
>
|
||||||
<div
|
<div
|
||||||
@click="handleCheckbox(item)"
|
@click.stop="handleCheckbox(item)"
|
||||||
:style="item.deviceId === checkobxDeviceId ? 'right: 159px;' : ''"
|
|
||||||
:class="
|
:class="
|
||||||
tSelectList.indexOf(item.deviceId) >= 0
|
tSelectList.indexOf(item.deviceId) >= 0
|
||||||
? 'checkbox-i selected-c'
|
? 'checkbox-i selected-c'
|
||||||
|
@ -158,87 +268,48 @@
|
||||||
class="el-icon-check"
|
class="el-icon-check"
|
||||||
></i>
|
></i>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div style="
|
|
||||||
width: 60px;
|
|
||||||
display: flex;
|
|
||||||
justify-content: center;
|
|
||||||
">
|
|
||||||
<i :class="signalType(item.stype)" style="color: black; font-size: 20px;" ></i>
|
|
||||||
<signal-intensity :intensityNumber="item.signal" ></signal-intensity>
|
|
||||||
</div> -->
|
|
||||||
<i
|
|
||||||
v-if="item.deviceId === checkobxDeviceId"
|
|
||||||
class="el-icon-s-claim"
|
|
||||||
style="font-size: 25px; color: #1890ff"
|
|
||||||
></i>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="dev-info">
|
<div class="dev-info">
|
||||||
<span class="dev-info-title" :title="item.deviceName">{{
|
|
||||||
item.deviceName
|
|
||||||
}}</span>
|
|
||||||
<div
|
<div
|
||||||
class="dev-info-state"
|
:class="
|
||||||
v-show="item.deviceId !== checkobxDeviceId"
|
deviceInfo['deviceState'] == 'ONLINE'
|
||||||
|
? 'dev-info-state'
|
||||||
|
: 'dev-info-state off-line'
|
||||||
|
"
|
||||||
|
style="width: 60px"
|
||||||
>
|
>
|
||||||
<el-tag type="success" v-if="item.deviceState === 'ONLINE'"
|
<icon
|
||||||
>在线</el-tag
|
v-if="deviceInfo['deviceState'] == 'ONLINE'"
|
||||||
>
|
class="iconfont iconSYS_STA_1"
|
||||||
<el-tag type="danger" v-else-if="item.deviceState === 'OFFLINE'"
|
/>
|
||||||
>离线</el-tag
|
<icon v-else class="iconfont iconlixian" />
|
||||||
>
|
<span style="margin-left: 1px; margin-top: 1px">{{
|
||||||
<el-tag type="danger" v-else-if="item.deviceState === 'OUTLINE'"
|
deviceInfo["deviceState"] == "ONLINE" ? "在线" : "离线"
|
||||||
>脱线</el-tag
|
}}</span>
|
||||||
>
|
|
||||||
<el-tag type="info" v-else-if="item.deviceState === 'UNACTIVE'"
|
|
||||||
>未激活</el-tag
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
type="primary"
|
|
||||||
size="mini"
|
|
||||||
@click="viewDeviceChange(item.deviceId)"
|
|
||||||
>查看</el-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
class="dev-info-state"
|
style="
|
||||||
v-show="item.deviceId === checkobxDeviceId"
|
width: 60px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
font-size: 14px;
|
||||||
|
"
|
||||||
>
|
>
|
||||||
<el-switch
|
<icon
|
||||||
size="mini"
|
v-if="item['switch'] == '1'"
|
||||||
v-model="item.switch"
|
class="iconfont iconT"
|
||||||
active-text="开启"
|
style="color: #76bbff; font-size: 16px"
|
||||||
disabled
|
/>
|
||||||
inactive-text="关闭"
|
<icon
|
||||||
active-value="1"
|
|
||||||
inactive-value="0"
|
|
||||||
active-color="#13ce66"
|
|
||||||
inactive-color="#dcdfe6"
|
|
||||||
class="switch-wrap"
|
|
||||||
>
|
|
||||||
</el-switch>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
v-if="item.switch === '1'"
|
|
||||||
:disabled="item.deviceId !== checkobxDeviceId"
|
|
||||||
@click="submitChildStatus('false', item)"
|
|
||||||
type="success"
|
|
||||||
>关闭</el-button
|
|
||||||
>
|
|
||||||
<el-button
|
|
||||||
size="mini"
|
|
||||||
v-else
|
v-else
|
||||||
:disabled="item.deviceId !== checkobxDeviceId"
|
class="iconfont iconF"
|
||||||
@click="submitChildStatus('true', item)"
|
style="font-size: 16px; color: #878686"
|
||||||
type="danger"
|
/>
|
||||||
>开启</el-button
|
|
||||||
>
|
|
||||||
|
|
||||||
<el-button
|
<span style="margin-left: 1px; margin-top: 1px; color: #878686">{{
|
||||||
type="primary"
|
item["switch"] == "1" ? "合闸" : "分闸"
|
||||||
size="mini"
|
}}</span>
|
||||||
@click="viewDeviceChange(item.deviceId)"
|
|
||||||
>查看</el-button
|
|
||||||
>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -261,7 +332,6 @@ import {
|
||||||
} from "@/config/env";
|
} from "@/config/env";
|
||||||
import SignalIntensity from "./signalIntensity";
|
import SignalIntensity from "./signalIntensity";
|
||||||
import EWebSocket from "@/components/EWebSocket/src/basic/index";
|
import EWebSocket from "@/components/EWebSocket/src/basic/index";
|
||||||
import objectAssign from "object-assign";
|
|
||||||
export default {
|
export default {
|
||||||
name: "DeviceSelectNav",
|
name: "DeviceSelectNav",
|
||||||
components: {
|
components: {
|
||||||
|
@ -345,7 +415,7 @@ export default {
|
||||||
},${str}`;
|
},${str}`;
|
||||||
},
|
},
|
||||||
wsMessage(e) {
|
wsMessage(e) {
|
||||||
if (e['deviceState']) {
|
if (e["deviceState"] || (e["switch"] !== null && e["switch"] !== undefined)) {
|
||||||
this.handleDeviceInfo(e);
|
this.handleDeviceInfo(e);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -395,6 +465,7 @@ export default {
|
||||||
|
|
||||||
// 点击子设备 线路开关
|
// 点击子设备 线路开关
|
||||||
handleChildStatus(type) {
|
handleChildStatus(type) {
|
||||||
|
// if (this.tSelectLabelList.legnth > 0) {
|
||||||
this.$prompt("请输入登录密码", "提示", {
|
this.$prompt("请输入登录密码", "提示", {
|
||||||
confirmButtonText: "确定",
|
confirmButtonText: "确定",
|
||||||
cancelButtonText: "取消",
|
cancelButtonText: "取消",
|
||||||
|
@ -429,6 +500,7 @@ export default {
|
||||||
this.msgSuccess("修改成功");
|
this.msgSuccess("修改成功");
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
// }
|
||||||
},
|
},
|
||||||
selectDevClose(e) {
|
selectDevClose(e) {
|
||||||
console.log(e);
|
console.log(e);
|
||||||
|
@ -631,11 +703,11 @@ export default {
|
||||||
|
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
.device-select-nav {
|
.device-select-nav {
|
||||||
min-height: 180px;
|
min-height: 130px;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
background-color: #e4eaf3;
|
background-color: #e4eaf300;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
.layout-select-wrap {
|
.layout-select-wrap {
|
||||||
|
@ -645,19 +717,62 @@ export default {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
border: 1px solid #1890ff;
|
// border: 1px solid #1890ff;
|
||||||
margin: 10px 5px;
|
margin: 0 5px 5px 0;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
background-color: #1890ff17;
|
background-color: #1890ff00;
|
||||||
margin-bottom: 5px;
|
|
||||||
.title-span {
|
.title-span {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.but {
|
||||||
|
width: 90px;
|
||||||
|
height: 30px;
|
||||||
|
background: #f4f5f7;
|
||||||
|
border-radius: 5px;
|
||||||
|
color: #6b778c;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
margin-right: 10px;
|
||||||
|
.icon-c {
|
||||||
|
font-size: 18px;
|
||||||
|
margin-top: 2px;
|
||||||
|
}
|
||||||
|
.but-title {
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: "Source Han Sans CN";
|
||||||
|
font-weight: 600;
|
||||||
|
margin-left: 5px;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.but:hover {
|
||||||
|
background: #1890ff;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.el-button {
|
||||||
|
border: 0px;
|
||||||
|
color: #6b778c;
|
||||||
|
font-weight: 600;
|
||||||
|
background: #e6e6e6d9;
|
||||||
|
}
|
||||||
|
.el-button--info.is-plain.is-disabled {
|
||||||
|
color: #bcbec2;
|
||||||
|
}
|
||||||
|
.but-icon {
|
||||||
|
margin-right: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
}
|
||||||
|
.el-button:hover {
|
||||||
|
background: #1890ff !important;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
.layout-device-list {
|
.layout-device-list {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
height: 130px;
|
height: 90px;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -674,8 +789,8 @@ export default {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: flex-end;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
justify-content: space-between;
|
||||||
.dev-info-title {
|
.dev-info-title {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -690,13 +805,18 @@ export default {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.dev-info-state {
|
.dev-info-state {
|
||||||
width: 100%;
|
width: 60px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 16px;
|
font-size: 14px;
|
||||||
justify-content: space-between;
|
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #00c805;
|
||||||
|
justify-content: start;
|
||||||
|
|
||||||
/* switch按钮样式 */
|
/* switch按钮样式 */
|
||||||
.switch-wrap .el-switch__label {
|
.switch-wrap .el-switch__label {
|
||||||
|
@ -731,6 +851,9 @@ export default {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.off-line {
|
||||||
|
color: #da2710;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.nav-c-dev {
|
.nav-c-dev {
|
||||||
|
@ -749,7 +872,7 @@ export default {
|
||||||
height: 20px;
|
height: 20px;
|
||||||
border-radius: 3px;
|
border-radius: 3px;
|
||||||
position: relative;
|
position: relative;
|
||||||
right: 184px;
|
// right: 184px;
|
||||||
font-size: 17px;
|
font-size: 17px;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
@ -764,8 +887,9 @@ export default {
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
justify-content: flex-end;
|
justify-content: space-between;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
.dev-info-title {
|
.dev-info-title {
|
||||||
display: block;
|
display: block;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -780,13 +904,18 @@ export default {
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
}
|
}
|
||||||
.dev-info-state {
|
.dev-info-state {
|
||||||
width: 100%;
|
width: 60px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
font-size: 16px;
|
|
||||||
justify-content: space-between;
|
justify-content: flex-start;
|
||||||
|
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: Source Han Sans CN;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #00c805;
|
||||||
|
|
||||||
/* switch按钮样式 */
|
/* switch按钮样式 */
|
||||||
.switch-wrap .el-switch__label {
|
.switch-wrap .el-switch__label {
|
||||||
|
@ -821,6 +950,9 @@ export default {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.off-line {
|
||||||
|
color: #da2710;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,6 @@
|
||||||
<el-tabs
|
<el-tabs
|
||||||
v-model="activeName"
|
v-model="activeName"
|
||||||
:class="breadcrumbList.length > 1 ? 'children-wrap' : ''"
|
:class="breadcrumbList.length > 1 ? 'children-wrap' : ''"
|
||||||
type="border-card"
|
|
||||||
>
|
>
|
||||||
<el-tab-pane label="运行状态" name="runingState">
|
<el-tab-pane label="运行状态" name="runingState">
|
||||||
<div class="tabs-body protocol-wrap">
|
<div class="tabs-body protocol-wrap">
|
||||||
|
@ -358,7 +357,7 @@ export default {
|
||||||
width: 25px;
|
width: 25px;
|
||||||
height: 20px;
|
height: 20px;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
background: #f26a6a;
|
background: #0d8afd;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
border-radius: 5px;
|
border-radius: 5px;
|
||||||
|
@ -376,7 +375,7 @@ export default {
|
||||||
position: relative;
|
position: relative;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
.el-tabs__content {
|
.el-tabs__content {
|
||||||
height: calc(100vh - 381px);
|
height: calc(100vh - 321px);
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
}
|
}
|
||||||
.el-tabs__header {
|
.el-tabs__header {
|
||||||
|
@ -393,8 +392,8 @@ export default {
|
||||||
.el-tabs__nav-scroll {
|
.el-tabs__nav-scroll {
|
||||||
height: 65px;
|
height: 65px;
|
||||||
padding-top: 25px;
|
padding-top: 25px;
|
||||||
padding-left: 15px;
|
padding-left: 5px;
|
||||||
background: #e4eaf3;
|
// background: #e4eaf3;
|
||||||
}
|
}
|
||||||
.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
|
.el-tabs--border-card > .el-tabs__header .el-tabs__item.is-active {
|
||||||
background: #fff;
|
background: #fff;
|
||||||
|
|
|
@ -348,6 +348,7 @@ export default {
|
||||||
border: 1px solid #b7b4b4;
|
border: 1px solid #b7b4b4;
|
||||||
margin-left: -1px;
|
margin-left: -1px;
|
||||||
margin-top: -1px;
|
margin-top: -1px;
|
||||||
|
border-color:#e0e0e0;
|
||||||
.title-top {
|
.title-top {
|
||||||
height: 30px;
|
height: 30px;
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|
Loading…
Reference in New Issue