Эх сурвалжийг харах

fix: 调整瑞恒看板注气统计与表格样式

- 项目部统计表格改为蓝色斑马格样式,贴合看板展示效果
- 瑞恒汇总当日注气量改为查询前一天数据
Zimo 21 цаг өмнө
parent
commit
b676e064eb

+ 1 - 1
.env.local

@@ -4,7 +4,7 @@ NODE_ENV=development
 VITE_DEV=true
 
 # 请求路径  http://192.168.188.200:48080  https://iot.deepoil.cc  http://172.26.0.56:48080
-VITE_BASE_URL='http://192.168.188.200:48080'
+VITE_BASE_URL='https://iot.deepoil.cc:5443'
 
 # 文件上传类型:server - 后端上传, client - 前端直连上传,仅支持 S3 服务
 VITE_UPLOAD_TYPE=server

+ 22 - 0
src/views/pms/stat/rhkb/deviceList.vue

@@ -238,6 +238,28 @@ onMounted(() => {
   }
 }
 
+.device-list-table {
+  :deep(.el-table__header-wrapper th.el-table__cell) {
+    color: #10233c;
+    background: #b5cde7;
+    border-color: rgb(255 255 255 / 62%);
+  }
+
+  :deep(.el-table__body td.el-table__cell) {
+    color: #07192c;
+    background: #89b3de;
+    border-color: rgb(255 255 255 / 62%);
+  }
+
+  :deep(.el-table__body tr:nth-child(2n) td.el-table__cell) {
+    background: #b8cee5;
+  }
+
+  :deep(.el-table__row:hover > td.el-table__cell) {
+    background: #75a5d6 !important;
+  }
+}
+
 .device-list-table__multi-value {
   display: flex;
   flex-direction: column;

+ 4 - 1
src/views/pms/stat/rhkb/rhsummary.vue

@@ -225,7 +225,10 @@ async function loadGasCards() {
   try {
     const [todayRes, yearRes] = await Promise.all([
       IotStatApi.getRhZqlTotal({
-        createTime: getCreateTimeRange(dayjs().startOf('day'), dayjs().endOf('day'))
+        createTime: getCreateTimeRange(
+          dayjs().subtract(1, 'day').startOf('day'),
+          dayjs().subtract(1, 'day').endOf('day')
+        )
       }),
       IotStatApi.getRhZqlTotal({
         createTime: getCreateTimeRange(dayjs().startOf('year'), dayjs().endOf('day'))