绘制电脑治理信息页面
This commit is contained in:
@@ -1,13 +1,6 @@
|
||||
<template>
|
||||
<uni-card
|
||||
:title="device.equipmentName"
|
||||
:sub-title="device.mac"
|
||||
:extra="device.isPrimaryUser == 1 ? '主设备' : '分享设备'"
|
||||
padding="0"
|
||||
@click="jump(device)"
|
||||
class="boxClick"
|
||||
:thumbnail="deviceIcon(device.runStatus)"
|
||||
>
|
||||
<uni-card :title="device.equipmentName" :sub-title="device.mac" :extra="device.isPrimaryUser == 1 ? '主设备' : '分享设备'"
|
||||
padding="0" @click="jump(device)" class="boxClick" :thumbnail="deviceIcon(device.runStatus)">
|
||||
<template v-slot:title>
|
||||
<!-- 卡片标题 -->
|
||||
<view class="uni-card__header" @click="jump(device)">
|
||||
@@ -25,35 +18,38 @@
|
||||
:color="device.runStatus == 1 ? '#ff3b30' : '#10B981'"
|
||||
:size="device.devType == 'Direct_Connected_Device' ? '35' : '40'"
|
||||
></uni-icons> -->
|
||||
<Cn-icon-device
|
||||
:devType="device.devType"
|
||||
:runStatus="device.runStatus"
|
||||
:alarmStatus="device.isAlarm ? 1 : 0"
|
||||
></Cn-icon-device>
|
||||
<Cn-icon-device :devType="device.devType" :runStatus="device.runStatus"
|
||||
:alarmStatus="device.isAlarm ? 1 : 0"></Cn-icon-device>
|
||||
</view>
|
||||
</view>
|
||||
<view class="uni-card__header-content">
|
||||
<text class="uni-card__header-content-title uni-ellipsis">
|
||||
{{ device.equipmentName }}
|
||||
</text>
|
||||
<text class="uni-card__header-content-subtitle uni-ellipsis">
|
||||
<!-- {{ device.mac }}-->
|
||||
</text>
|
||||
<!-- <text class="uni-card__header-content-subtitle uni-ellipsis">
|
||||
{{ device.mac }}
|
||||
</text> -->
|
||||
<view class="event-desc mt10 mb8">
|
||||
<text>
|
||||
工程名称:{{ device.engineeringName }}
|
||||
</text>
|
||||
<text>
|
||||
项目名称:{{ device.projectName }}
|
||||
</text>
|
||||
</view>
|
||||
|
||||
<view class="tagBox">
|
||||
<text class="event-tag" :class="device.runStatus == 1 ? 'lx-tag' : 'zx-tag'">
|
||||
{{ device.runStatus == 1 ? '离线' : '在线' }}
|
||||
</text>
|
||||
<text
|
||||
class="event-tag"
|
||||
:class="device.devType == 'Direct_Connected_Device' ? 'zl-tag' : 'jc-tag'"
|
||||
>
|
||||
<text class="event-tag"
|
||||
:class="device.devType == 'Direct_Connected_Device' ? 'zl-tag' : 'jc-tag'">
|
||||
{{ device.devType == 'Direct_Connected_Device' ? '治理设备' : '监测设备' }}
|
||||
</text>
|
||||
<text class="event-tag" :class="device.isPrimaryUser == 1 ? 'z-tag' : 'fx-tag'">
|
||||
{{ device.isPrimaryUser == 1 ? '我的设备' : '他人设备' }}
|
||||
</text>
|
||||
</view
|
||||
>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="uni-card__header-extra" style="position: relative" @click.stop>
|
||||
@@ -63,8 +59,8 @@
|
||||
</view>
|
||||
<!-- <slot name="title"></slot> -->
|
||||
</template>
|
||||
<view class="device-body">
|
||||
<view class="device-body-item">
|
||||
<!-- <view class="device-body">
|
||||
<view class="device-body-item">
|
||||
<text>工程名称</text>
|
||||
<text>{{ device.engineeringName }}</text>
|
||||
</view>
|
||||
@@ -75,8 +71,8 @@
|
||||
<view class="device-body-item mt6" v-if="device.process == 2 || device.process == 3">
|
||||
<text>调试阶段</text>
|
||||
<text>{{ device.process == 2 ? '功能调试' : '出厂调试' }}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view> -->
|
||||
<view class="pinToTop" v-if="device.isTop == 1"> 置顶</view>
|
||||
</uni-card>
|
||||
</template>
|
||||
@@ -166,10 +162,10 @@ export default {
|
||||
|
||||
/deep/ .uni-card__header {
|
||||
display: flex;
|
||||
border-bottom: 2rpx #ebeef5 solid;
|
||||
// border-bottom: 2rpx #ebeef5 solid;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
padding: 20rpx 20rpx 10rpx 0;
|
||||
padding: 20rpx 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
}
|
||||
@@ -279,4 +275,16 @@ export default {
|
||||
transform: rotate(45deg) translate(50rpx, -10rpx);
|
||||
transform-origin: top right;
|
||||
}
|
||||
|
||||
.event-desc {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 8rpx;
|
||||
}
|
||||
|
||||
.event-desc text {
|
||||
font-size: 28rpx;
|
||||
color: #666666;
|
||||
line-height: 1.2;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user