diff --git a/pages/index.vue b/pages/index.vue
index 31a4944..54b3d0f 100644
--- a/pages/index.vue
+++ b/pages/index.vue
@@ -114,6 +114,7 @@
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pages/work/bmszl/index.vue b/pages/work/bmszl/index.vue
index d15a3ab..e66cfeb 100644
--- a/pages/work/bmszl/index.vue
+++ b/pages/work/bmszl/index.vue
@@ -2,47 +2,64 @@
-
-
+ class="common-collapse-item" :class="{
+ 'timing-collapse-item':!['0','2'].includes(item.workStatus),
+ 'warning-collapse-item':item.workStatus === '2',
+ 'running-collapse-item':item.workStatus === '0'
+ }">
+
+
+
+
+ {{workStatusOptions[item.workStatus] || '暂无数据'}}
+ {{item.deviceName}}
+
+
+
+
+
+
工作状态
- {{workStatusOptions[item.workStatus]}}
+ {{workStatusOptions[item.workStatus] || '-'}}
与PCS通信
{{communicationStatusOptions[item.pcsCommunicationStatus]}}
+ class="text">{{communicationStatusOptions[item.pcsCommunicationStatus] || '-'}}
与EMS通信
{{communicationStatusOptions[item.emsCommunicationStatus]}}
+ class="text">{{communicationStatusOptions[item.emsCommunicationStatus] || '-'}}
-
-
-
-
- {{infoDataItem.label}}
- {{item[infoDataItem.attr] | formatNumber}}
-
-
+
+
+
+
+ {{infoDataItem.label}}
+
+
+ {{item[infoDataItem.attr] | formatNumber}}
+
-
-
+
+
-
-
+
+
+
簇号
@@ -193,60 +210,4 @@
})
}
}
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/pages/work/db/index.vue b/pages/work/db/index.vue
index 01785aa..afa99f9 100644
--- a/pages/work/db/index.vue
+++ b/pages/work/db/index.vue
@@ -1,43 +1,42 @@
-
-
+
+
-
- {{index+1}}#{{item.deviceName || ''}}
-
- {{communicationStatusOptions[item.emsCommunicationStatus] || ''}}
- 数据更新时间:{{item.dataUpdateTime || ''}}
+
+
+ {{communicationStatusOptions[item.emsCommunicationStatus] || '暂无数据'}}
+
+ {{item.deviceName}}
-
-
-
-
+
+
+
+
{{tempDataItem.name}}
- {{item[tempDataItem.attr]}}
+
+
+ {{item[tempDataItem.attr] | formatNumber}}
-
-
-
-
-
-
-
+
+
+
+
+
+ 未知的电表数据
-
+
+ 暂无数据
+
@@ -167,131 +166,13 @@
}
}
-
\ No newline at end of file
diff --git a/pages/work/dtdc/Chart.vue b/pages/work/dtdc/Chart.vue
deleted file mode 100644
index d41c22f..0000000
--- a/pages/work/dtdc/Chart.vue
+++ /dev/null
@@ -1,186 +0,0 @@
-
-
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/pages/work/dtdc/index.vue b/pages/work/dtdc/index.vue
index c989869..3373500 100644
--- a/pages/work/dtdc/index.vue
+++ b/pages/work/dtdc/index.vue
@@ -1,7 +1,7 @@
-
+
暂无数据
@@ -10,7 +10,7 @@
@@ -19,16 +19,17 @@
簇号
-
- {{item.clusterDeviceId}}
+
+ {{item.clusterDeviceId || '-'}}
电压(V)
-
- {{item.voltage}}
+
+
+ {{item.voltage | formatNumber}}
@@ -36,9 +37,10 @@
温度(℃)
-
-
- {{item.temperature}}
+
+
+ {{item.temperature | formatNumber}}
@@ -46,16 +48,20 @@
SOC(%)
-
- {{item.soc}}
+
+
+ {{item.soc | formatNumber}}
+
SOH(%)
-
- {{item.soh}}
+
+
+ {{item.soh | formatNumber}}
+
@@ -382,21 +388,18 @@
\ No newline at end of file
diff --git a/static/images/ems/pcs/jrcdl.jpg b/static/images/ems/pcs/jrcdl.jpg
new file mode 100644
index 0000000..2d36b14
Binary files /dev/null and b/static/images/ems/pcs/jrcdl.jpg differ
diff --git a/static/images/ems/pcs/jrfdl.jpg b/static/images/ems/pcs/jrfdl.jpg
new file mode 100644
index 0000000..5c2c3e3
Binary files /dev/null and b/static/images/ems/pcs/jrfdl.jpg differ
diff --git a/static/images/ems/pcs/soc.jpg b/static/images/ems/pcs/soc.jpg
new file mode 100644
index 0000000..0942044
Binary files /dev/null and b/static/images/ems/pcs/soc.jpg differ
diff --git a/static/images/ems/pcs/soh.jpg b/static/images/ems/pcs/soh.jpg
new file mode 100644
index 0000000..dd94940
Binary files /dev/null and b/static/images/ems/pcs/soh.jpg differ
diff --git a/static/images/ems/pcs/sswggl.jpg b/static/images/ems/pcs/sswggl.jpg
new file mode 100644
index 0000000..d9465d2
Binary files /dev/null and b/static/images/ems/pcs/sswggl.jpg differ
diff --git a/static/images/ems/pcs/ssyggl.jpg b/static/images/ems/pcs/ssyggl.jpg
new file mode 100644
index 0000000..0e1cc01
Binary files /dev/null and b/static/images/ems/pcs/ssyggl.jpg differ
diff --git a/static/scss/global.scss b/static/scss/global.scss
index 9d693d6..c145170 100644
--- a/static/scss/global.scss
+++ b/static/scss/global.scss
@@ -98,4 +98,249 @@
line-height: 100px;
height: 100px;
font-size: 18px;
+}
+// 九宫格
+.grid-item-box {
+ flex: 1;
+ // position: relative;
+ /* #ifndef APP-NVUE */
+ display: flex;
+ /* #endif */
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: 20rpx;
+ background-color: #fff;
+
+ .title {
+ font-size: 26rpx;
+ color: #666;
+ }
+
+ .text {
+ margin-top: 20rpx;
+ font-size: 32rpx;
+ font-weight: 500;
+ color: #666;
+ overflow-wrap: anywhere;
+ }
+
+}
+// 设备详情页面 状态公共样式
+.common-collapse-item{
+ .content{
+ background: linear-gradient(to bottom, #22bb5873, #45db7a26);
+ padding: 1rpx 0 1rpx 0;
+ }
+ // 标题
+ .title-wrapper{
+ // 设备状态栏
+ padding:20rpx 30rpx;
+ font-size: 28rpx;
+ line-height: 30rpx;
+ font-weight: 700;
+ color: #000000;
+ .top{
+ .status{
+ display: inline-block;
+ vertical-align: middle;
+ color:#fff;
+ padding:4rpx 10rpx;
+ margin-right: 10rpx;
+ font-size: 22rpx;
+ border-radius: 10rpx;
+ }
+ .name{
+ display: inline-block;
+ vertical-align: middle;
+ }
+ }
+ }
+ // 设备状态卡片
+ .status-card-group{
+ &.no-wrapper-padding{
+ .uni-group__content{
+ padding:0;
+ }
+ }
+ .uni-group__content{
+ padding-top:0;
+ padding-bottom:0;
+ }
+ // 设备状态九宫格
+ .grid-item-box{
+ background-color: transparent;
+ .title{
+ color:#333;
+ }
+ .text{
+ color:#000;
+ font-weight: bolder;
+ &.work-status-color{
+ color:#000;
+ }
+ }
+
+ }
+ }
+ // 设备数据卡片
+ .data-card-group{
+ .uni-group__content{
+ padding-top:0;
+ padding-bottom:0;
+ }
+ // 数据列表
+ .data-row{
+ font-size: 26rpx;
+ line-height: 36rpx;
+ color: #000;
+ padding:24rpx 0;
+ &:not(:last-child){
+ border-bottom: 1px solid #ebedf0;
+ }
+ .title{
+ color:#333;
+ text-align: left;
+ }
+ .value{
+ text-align: right;
+ }
+ }
+ }
+ // 子设备表格卡片
+ .child-card-group{
+ .child-table{
+ .uni-table-th{
+ color:#333;
+ }
+ .uni-table-td{
+ color:#000;
+ }
+ .table--border{
+ border-color:#ebedf0;
+ }
+ }
+ }
+ // 支路卡片
+ .branch-card-group{
+ .uni-group__title {
+ background-color: #959595;
+ height: 70rpx;
+ .uni-group__title-text {
+ color: #fff;
+ font-size:26rpx;
+ line-height: 30rpx;
+ }
+ }
+ .uni-group__content {
+ padding: 0;
+ .title{
+ color:#333;
+ }
+ .text{
+ color:#000;
+ font-weight: normal;
+ }
+ }
+ &.uni-group--card:last-child {
+ margin-bottom: 50rpx;
+ }
+ }
+}
+//运行中
+.running-collapse-item{
+ // 标题
+ .title-wrapper{
+ .top{
+ .status{
+ background-color: #30be95;
+ }
+ }
+ }
+ .content{
+ background: linear-gradient(to bottom, #22bb5873, #45db7a26);
+ }
+ // 状态九宫格
+ .status-card-group{
+ .grid-item-box{
+ .text{
+ &.work-status-color{
+ color:#30be95;
+ }
+ }
+
+ }
+ }
+ //支路设备
+ .branch-card-group{
+ .uni-group__title {
+ background-color: #30be95;
+ }
+ }
+}
+
+//故障
+.warning-collapse-item{
+ // 标题
+ .title-wrapper{
+ .top{
+ .status{
+ background-color: #ed7876;
+ }
+ }
+ }
+ .content{
+ background: linear-gradient(to bottom, #f5604e73, #f5604e26);
+ }
+ // 状态九宫格
+ .status-card-group{
+ .grid-item-box{
+ .text{
+ &.work-status-color{
+ color:#ed7876;
+ }
+ }
+
+ }
+ }
+ //支路设备
+ .branch-card-group{
+ .uni-group__title {
+ background-color: #ed7876;
+ }
+ }
+
+}
+// 停机
+.timing-collapse-item{
+ // 标题
+ .title-wrapper{
+ .top{
+ .status{
+ background-color: #000;
+ }
+ }
+ }
+ .content{
+ background: linear-gradient(to bottom, #8c8c8c73, #8c8c8c26);
+ }
+ // 状态九宫格
+ .status-card-group{
+ .grid-item-box{
+ .text{
+ &.work-status-color{
+ color:#000;
+ }
+ }
+
+ }
+ }
+ //支路设备
+ .branch-card-group{
+ .uni-group__title {
+ background-color: #000;
+ }
+ }
+
+
}
\ No newline at end of file