|
@@ -1,7 +1,11 @@
|
|
<template>
|
|
<template>
|
|
<view v-if="merchantList.length>1">
|
|
<view v-if="merchantList.length>1">
|
|
<uni-collapse :accordion="true">
|
|
<uni-collapse :accordion="true">
|
|
- <view v-for="(merchant,index) in merchantList" :key="merchant.id" >
|
|
|
|
|
|
+ <view class="titleFlag">
|
|
|
|
+ <image class="img" src="../../static/img/red.png" ></image> <font class="wenziT">红色代表机器报警</font>
|
|
|
|
+ <image class="img" src="../../static/img/green.png"></image> <font class="wenziT">绿色代表机器正常</font>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="titlelist" v-for="(merchant,index) in merchantList" :key="merchant.id" >
|
|
<uni-collapse-item :title="getMerchantTitle(merchant)" :open="index===0">
|
|
<uni-collapse-item :title="getMerchantTitle(merchant)" :open="index===0">
|
|
<view style="padding: 20upx;background-color: aliceblue;">
|
|
<view style="padding: 20upx;background-color: aliceblue;">
|
|
<view v-if="merchant.equipmentList.length==0" style="text-align: center;">暂无数据</view>
|
|
<view v-if="merchant.equipmentList.length==0" style="text-align: center;">暂无数据</view>
|
|
@@ -37,7 +41,11 @@
|
|
</view>
|
|
</view>
|
|
<view v-else>
|
|
<view v-else>
|
|
<uni-collapse :show-animation="true">
|
|
<uni-collapse :show-animation="true">
|
|
- <view style="position: relative;" v-for="equipment in merchantList[0].equipmentList" :key="equipment.id">
|
|
|
|
|
|
+ <view class="titleFlag">
|
|
|
|
+ <image class="img" src="../../static/img/red.png" ></image> <font class="wenziT">红色代表机器报警</font>
|
|
|
|
+ <image class="img" src="../../static/img/green.png"></image> <font class="wenziT">绿色代表机器正常</font>
|
|
|
|
+ </view>
|
|
|
|
+ <view class="titlelist" style="position: relative;" v-for="equipment in merchantList[0].equipmentList" :key="equipment.id">
|
|
<span class="status-css" :class="equipment.hasTodayAlarm===true?statusError : statusNormal"></span>
|
|
<span class="status-css" :class="equipment.hasTodayAlarm===true?statusError : statusNormal"></span>
|
|
<uni-collapse-item :title="getEquipmentTitle(equipment)">
|
|
<uni-collapse-item :title="getEquipmentTitle(equipment)">
|
|
<view style="padding: 20upx;background-color: antiquewhite;">
|
|
<view style="padding: 20upx;background-color: antiquewhite;">
|
|
@@ -129,7 +137,14 @@
|
|
|
|
|
|
<style>
|
|
<style>
|
|
.status-css {
|
|
.status-css {
|
|
- position: absolute;width: 30upx;height: 30upx;right: 86upx;top: 30upx;border-radius: 30upx;
|
|
|
|
|
|
+ position: absolute;
|
|
|
|
+ width: 30upx;
|
|
|
|
+ height: 30upx;
|
|
|
|
+ right: 86upx;
|
|
|
|
+ top: 30upx;
|
|
|
|
+ border-radius: 30upx;
|
|
|
|
+ color: "#596D83";
|
|
|
|
+ font-size: 12upx;
|
|
}
|
|
}
|
|
.status-error {
|
|
.status-error {
|
|
background-color: #dd524d
|
|
background-color: #dd524d
|
|
@@ -140,4 +155,27 @@
|
|
.baojing{
|
|
.baojing{
|
|
padding-left: 120upx;
|
|
padding-left: 120upx;
|
|
}
|
|
}
|
|
|
|
+ .titleFlag{
|
|
|
|
+ height: 56upx;
|
|
|
|
+ background-color: #F8F8F8;
|
|
|
|
+ color: #8C959F;
|
|
|
|
+ font-size: 22upx;
|
|
|
|
+ display: flex;
|
|
|
|
+ flex-direction: row;
|
|
|
|
+ }
|
|
|
|
+ .img{
|
|
|
|
+ padding-top: 20upx;
|
|
|
|
+ padding-left: 30upx;
|
|
|
|
+ width: 15upx;
|
|
|
|
+ height: 15upx;
|
|
|
|
+ }
|
|
|
|
+ .wenziT{
|
|
|
|
+ padding-top: 10upx;
|
|
|
|
+ padding-left: 10upx;
|
|
|
|
+ }
|
|
|
|
+ .titlelist{
|
|
|
|
+ color:#363D44;
|
|
|
|
+ font-size: 16upx;
|
|
|
|
+ font-family: "PingFang-SC-Medium";
|
|
|
|
+ }
|
|
</style>
|
|
</style>
|