From 9832c3d8d6abd411e4747d6040719c50e66e2064 Mon Sep 17 00:00:00 2001
From: Administrator <admin>
Date: Fri, 19 Mar 2021 10:55:23 +0800
Subject: [PATCH] 体温跳转

---
 src/router/views/index.js           |   13 ++++++
 src/views/healthcode/healthcode.vue |   49 ++++++++++++------------
 src/views/home/home.vue             |    7 ++-
 3 files changed, 42 insertions(+), 27 deletions(-)

diff --git a/src/router/views/index.js b/src/router/views/index.js
index ce0382e..4294b24 100644
--- a/src/router/views/index.js
+++ b/src/router/views/index.js
@@ -222,6 +222,19 @@
             component: () =>
                 import ( /* webpackChunkName: "views" */ '@/views/healthcode/healthcode')
         }]
+    }, {
+        path: '/animalHeat',
+        component: Layout,
+        redirect: '/animalHeat/animalHeatPage',
+        children: [{
+            path: 'animalHeatPage',
+            name: '体温检测',
+            meta: {
+                i18n: 'animalHeat'
+            },
+            component: () =>
+                import ( /* webpackChunkName: "views" */ '@/views/animalHeat/animalHeat')
+        }]
     }
 
 
diff --git a/src/views/healthcode/healthcode.vue b/src/views/healthcode/healthcode.vue
index 3f0d846..97dfb95 100644
--- a/src/views/healthcode/healthcode.vue
+++ b/src/views/healthcode/healthcode.vue
@@ -75,26 +75,11 @@
             },
             {
               label: "检测时间",
-              prop: "createTime"
+              prop: "dtime"
             },
             {
-              label: "体温",
-              prop: "tempRed"
-            },
-            {
-              label: '图片',
-              prop: 'picture',
-              type: 'upload',
-              width: 300,
-              listType: 'picture-img',
-              span: 24,
-              propsHttp: {
-                res: 'data'
-              },
-              canvasOption: {
-                text: 'avue',
-                ratio: 0.1
-              }
+              label: '性别',
+              prop: 'sex'
             },
             {
               label: "检测时间",
@@ -118,21 +103,37 @@
               ]
             },
             {
-              label: "体温状态",
+              label: "行政区",
+              searchSpan: 4,
+              prop: "addvcd",
+              search: true,
+              type: "tree",
+              dicUrl: "/api/blade-jfpts/district/district/selectd",
+              props: {
+                label: "addvnm",
+                value: "addvcds"
+              }
+            },
+            {
+              label: "健康码颜色",
               search: true,
               searchLabelWidth: 120,
-              prop: "status",
+              prop: "type",
               searchSpan: 5,
               width:110,
               type: "select",
               dicData: [
                 {
-                  label: "正常",
-                  value: 0
+                  label: "绿色",
+                  value: 1
                 },
                 {
-                  label: "异常",
-                  value: 1
+                  label: "黄色",
+                  value: 2
+                },
+                {
+                  label: "红色",
+                  value: 3
                 }
               ],
             }
diff --git a/src/views/home/home.vue b/src/views/home/home.vue
index 4b02c53..b90d02e 100644
--- a/src/views/home/home.vue
+++ b/src/views/home/home.vue
@@ -24,13 +24,14 @@
       }
     },
     mounted() {
-      window.handleStart = this.handleStart;
+      window.handleStartAnimalHeat = this.handleStartAnimalHeat;
       window.handleStartHealthcode = this.handleStartHealthcode;
     },
     methods: {
-      handleStart() {
+      handleStartAnimalHeat(data) {
         this.$router.push({
-          path: `/real/history/000000000003`
+          path: `/animalHeat/animalHeatPage`,
+          query: data
         });
       },
       handleStartHealthcode(data){

--
Gitblit v1.9.3