Yue преди 2 години
родител
ревизия
923f25095a

+ 8 - 0
src/router/statictRouter.ts

@@ -74,6 +74,14 @@ export const staticRotuer: Array<RouteRecordRaw> = [
           breadcrumbs: ["综合分析", "清洗分析", "逾期报警", "清洗报警详情"],
           breadcrumbs: ["综合分析", "清洗分析", "逾期报警", "清洗报警详情"],
         },
         },
       },
       },
+      {
+        path: "/analysisInfo/weekCleanList",
+        component: () => import("@/views/analysisInfo/weekCleanList.vue"),
+        meta: {
+          pageTitle: "清洗报警详情",
+          breadcrumbs: ["综合分析", "清洗分析", "清洗情况"],
+        },
+      },
     ],
     ],
   },
   },
   {
   {

+ 1 - 1
src/views/analysisInfo/_Overdue.vue

@@ -263,7 +263,7 @@ onMounted(init)
       </el-form>
       </el-form>
     </template>
     </template>
     <template #name="{ row }">
     <template #name="{ row }">
-      <span class="text-primary" @click="jump(row)" style="cursor: pointer">{{ row["company_name"] }}</span>
+      <span class="text-primary" @click="jump(row)" style="cursor: pointer">{{ row["name"] }}</span>
     </template>
     </template>
 
 
     <template #action="{ row }">
     <template #action="{ row }">

+ 2 - 1
src/views/analysisInfo/_WeekClean.vue

@@ -48,6 +48,7 @@ const queryParams = ref<any>({
 const cols = ref([
 const cols = ref([
   {
   {
     name: "序号",
     name: "序号",
+    width: 60,
     field: configs.TABLE_INDEX_FIELD,
     field: configs.TABLE_INDEX_FIELD,
   },
   },
   {
   {
@@ -135,7 +136,7 @@ function exported() {
 }
 }
 const detail = function (row: any) {
 const detail = function (row: any) {
   router.push({
   router.push({
-    path: "/DataBoard/index/cleanList",
+    path: "/analysisInfo/weekCleanList",
     query: {
     query: {
       back: 1,
       back: 1,
       company_id: row.company_id,
       company_id: row.company_id,

+ 90 - 0
src/views/analysisInfo/weekCleanList.vue

@@ -0,0 +1,90 @@
+<script setup lang="ts">
+import moment from "moment"
+import { ref, computed, onMounted } from "vue"
+import { useRoute } from "vue-router"
+import configs from "@/core/config/Index"
+const route = useRoute()
+const cols = ref([
+  {
+    name: "序号",
+    width: 60,
+    field: configs.TABLE_INDEX_FIELD,
+  },
+  {
+    name: "净化器名称",
+    field: "monitor_name",
+  },
+  {
+    name: "净化效能",
+    field: "clean_name",
+  },
+  {
+    name: "天数",
+    field: "day_condition",
+  },
+  {
+    name: "开机小时",
+    field: "hour_condition",
+  },
+  {
+    name: "最后清洗时间",
+    field: "last_clean_time",
+  },
+  {
+    name: "经过天数",
+    field: "run_day",
+  },
+  {
+    name: "开机小时数",
+    field: "run_hour",
+  },
+  {
+    name: "剩余天数",
+    field: "surplus_day",
+  },
+  {
+    name: "剩余小时数",
+    field: "surplus_hour",
+  },
+])
+const queryParams = ref({
+  company_id: route.query.company_id,
+})
+</script>
+
+<template>
+  <VbDataTable
+    url="sys/purifierCondition/getPurifierList"
+    :header="cols"
+    :query-params="queryParams"
+    method="post"
+    :has-checkbox="false"
+    :pagination="false"
+  >
+    <template #tableHeader>
+      <thead>
+        <tr class="text-center">
+          <th class="bg-light-primary" rowspan="2" style="vertical-align: middle">序号</th>
+          <th class="bg-light-primary" rowspan="2" style="vertical-align: middle">净化器名称</th>
+          <th class="bg-light-primary" rowspan="2" style="vertical-align: middle">净化效能</th>
+          <th class="bg-light-primary" colspan="2">清洗周期</th>
+          <th class="bg-light-primary" rowspan="2" style="vertical-align: middle">最后清洗时间</th>
+          <th class="bg-light-primary" colspan="2">上次清洗至今</th>
+          <th class="bg-light-primary" colspan="2">距下次清洗</th>
+        </tr>
+        <tr class="text-center">
+          <th class="bg-light-primary">天数</th>
+          <th class="bg-light-primary">开机小时</th>
+          <th class="bg-light-primary">经过天数</th>
+          <th class="bg-light-primary">开机小时数</th>
+          <th class="bg-light-primary">剩余天数</th>
+          <th class="bg-light-primary">剩余小时数</th>
+        </tr>
+      </thead>
+    </template>
+
+    <template #last_clean_time="{ row }">
+      {{ moment(row.last_clean_time, "YYYYMMDDHHmmss").format("YYYY-MM-DD") }}
+    </template>
+  </VbDataTable>
+</template>

+ 1 - 0
src/views/purify/washInfo_details.vue

@@ -42,6 +42,7 @@ function reset() {
 const col2s = ref([
 const col2s = ref([
   {
   {
     name: "序号",
     name: "序号",
+    width: 60,
     field: configs.TABLE_INDEX_FIELD,
     field: configs.TABLE_INDEX_FIELD,
   },
   },
   {
   {