Преглед изворни кода

Merge branch 'master' of http://1.94.244.160:3000/shuzhihua/pms-iot-vue

Zimo пре 1 дан
родитељ
комит
15f28962ca

+ 1 - 1
src/views/pms/qhse/certificate.vue

@@ -259,7 +259,7 @@
         >证书已过期红色预警</div
       >
       <div
-        class="bg-[#fdf6ec] flex-1 text-[#e6a23c] text-center flex items-center px-3 py-2 text-sm rounded-md"
+        class="bg-[#fdf6ec] flex-1 text-[#e6a23c] text-center flex items-center justify-center px-3 py-2 text-sm rounded-md"
         ><el-icon class="stats-card__icon" :size="28"> <Icon icon="ep:bell-filled" /> </el-icon
         >证书60天橙色预警</div
       >

+ 12 - 16
src/views/pms/qhse/deviceCert/index.vue

@@ -182,22 +182,18 @@
       </div>
     </div>
 
-    <div class="bg-white dark:bg-[#1d1e1f] shadow rounded-lg p-3 min-w-0 mt-2">
-      <el-alert title="应检设备证书已过期红色预警" type="error" show-icon :closable="false">
-        <template #icon>
-          <Bell />
-        </template>
-      </el-alert>
-      <el-alert
-        title="应检设备证书90天橙色预警"
-        type="warning"
-        show-icon
-        :closable="false"
-        style="margin-top: 5px">
-        <template #icon>
-          <Bell />
-        </template>
-      </el-alert>
+    <div
+      class="bg-white dark:bg-[#1d1e1f] shadow rounded-lg p-3 min-w-0 flex gap-4 justify-between">
+      <div
+        class="bg-[#fef0f0] text-[#f57979] px-3 flex-1 flex items-center justify-center text-center py-2 text-sm rounded-md"
+        ><el-icon class="stats-card__icon" :size="28"> <Icon icon="ep:info-filled" /> </el-icon
+        >应检设备证书已过期红色预警</div
+      >
+      <div
+        class="bg-[#fdf6ec] flex-1 text-[#e6a23c] text-center flex items-center justify-center px-3 py-2 text-sm rounded-md"
+        ><el-icon class="stats-card__icon" :size="28"> <Icon icon="ep:bell-filled" /> </el-icon
+        >应检设备证书90天橙色预警</div
+      >
     </div>
   </div>
 

+ 42 - 18
src/views/pms/stat/rykb/ryProductionBriefs.vue

@@ -178,9 +178,9 @@ onMounted(() => {
 
 <template>
   <div
-    class="panel device-list-panel production-brief-panel w-full flex flex-col"
+    class="panel device-list-panel production-brief-panel w-full min-h-0 flex flex-col"
     :class="{ 'production-brief-panel--full': props.pageMode === 'full' }">
-    <div class="panel-title flex items-center justify-between">
+    <div class="panel-title device-list-panel__title flex items-center justify-between">
       <div class="kb-panel-title-text flex items-center">
         <div class="icon-decorator">
           <span></span>
@@ -188,25 +188,28 @@ onMounted(() => {
         </div>
         生产简报
       </div>
-      <div class="production-brief-panel__picker">
+      <div class="device-list-panel__picker">
         <el-date-picker
           v-model="selectedDate"
           value-format="YYYY-MM-DD"
           type="date"
           placeholder="选择日期"
           :clearable="false"
-          class="production-brief-panel__picker-input"
+          class="device-list-panel__picker-input"
           @change="handleDateChange" />
       </div>
     </div>
-    <div class="device-list-panel__body flex-1 min-h-0">
+    <div class="device-list-panel__body flex flex-col flex-1 min-h-0">
       <el-table
         v-loading="loading"
         :data="tableData"
         :height="tableHeight"
         :span-method="tableSpanMethod"
+        element-loading-text="加载中..."
+        element-loading-background="rgb(222 236 252 / 72%)"
+        border
         class="device-list-table production-brief-table"
-        :class="{ 'production-brief-table--full': props.pageMode === 'full' }">
+        :class="{ 'device-list-table--full': props.pageMode === 'full' }">
         <el-table-column prop="projectClassification" label="公司" min-width="72" align="center" />
         <el-table-column prop="projectName" label="项目" min-width="150" align="center" />
         <el-table-column prop="deptName" label="队伍" min-width="94" align="center" />
@@ -222,7 +225,11 @@ onMounted(() => {
           prop="constructionBrief"
           label="当日生产简况"
           min-width="160"
-          align="center" />
+          align="center">
+          <template #default="{ row }">
+            <div class="production-brief-table__summary">{{ row.constructionBrief || '--' }}</div>
+          </template>
+        </el-table-column>
 
         <el-table-column label="当日进尺(m)/当日井次" min-width="150" align="center">
           <template #default="{ row }">
@@ -260,17 +267,13 @@ onMounted(() => {
 
 .device-list-panel.production-brief-panel--full {
   height: 100%;
+  min-height: 0;
   margin-top: 0;
 }
 
-.production-brief-panel__picker {
-  display: flex;
-  width: calc(120px * var(--kb-scale, 1));
-  align-items: center;
-}
-
-.production-brief-panel__picker-input {
-  width: calc(120px * var(--kb-scale, 1)) !important;
+.device-list-panel__picker,
+.device-list-panel__picker-input {
+  width: calc(160px * var(--kb-scale, 1)) !important;
 
   :deep(.el-input__wrapper) {
     min-height: calc(28px * var(--kb-scale, 1));
@@ -293,26 +296,47 @@ onMounted(() => {
   :deep(.el-table__header-wrapper th.el-table__cell) {
     font-size: calc(16px * var(--kb-scale, 1));
     line-height: 1.2;
+    color: #10233c !important;
+    background: #b5cde7 !important;
+    border-color: #fff !important;
   }
 
   :deep(.el-table__body td.el-table__cell) {
+    height: calc(58px * var(--kb-scale, 1));
     padding: calc(7px * var(--kb-scale, 1)) 0;
     font-size: calc(14px * var(--kb-scale, 1));
+    color: #07192c !important;
+    background: #89b3de !important;
+    border-color: #fff !important;
+  }
+
+  :deep(.el-table__body tr:nth-child(2n) td.el-table__cell) {
+    background: #b8cee5 !important;
+  }
+
+  :deep(.el-table__row:hover > td.el-table__cell) {
+    background: #75a5d6 !important;
   }
 }
 
-.production-brief-table--full {
+.production-brief-table__summary {
+  line-height: 1.5;
+  white-space: pre-wrap;
+  overflow-wrap: anywhere;
+}
+
+.device-list-table--full {
   :deep(.el-scrollbar__view) {
     display: block;
     height: 100%;
   }
 
   :deep(.el-table__body) {
-    height: 100%;
+    height: auto;
   }
 
   :deep(.el-table__body tbody) {
-    height: 100%;
+    height: auto;
   }
 }
 </style>