From 5aa99c119f387d6f32a58dfc7190351f6f92ecf6 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 18 九月 2023 21:07:46 +0800
Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes

---
 CanadaMes-ui/src/views/home/index.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/CanadaMes-ui/src/views/home/index.vue b/CanadaMes-ui/src/views/home/index.vue
index 59e3a03..d1c95f8 100644
--- a/CanadaMes-ui/src/views/home/index.vue
+++ b/CanadaMes-ui/src/views/home/index.vue
@@ -188,6 +188,7 @@
             <div class="box" @click="dialogFormVisible2 = true">
                 <div class="text">
                     <!-- Alarm: -->
+                    {{ this.text }}
                     <label v-for="item in this.alarm" :key="item['id']">
                         {{ item['content'] }}
                     </label>
@@ -415,7 +416,8 @@
             cage: 0,
             carlist: [],
             loadglassheight: 0,
-            password: 1
+            password: 1,
+            text: ""
         };
     },
     created() {
@@ -462,6 +464,10 @@
                     this.tasklist2 = obj.tasklist2[0];
                     this.alarm = obj.alarmmg[0];
                     this.loadglassheight = obj.loadglassheight;
+
+                    if (obj.dbconnected == "false") {
+                        this.text = this.$t('DataBase Connection failed');
+                    }
                     SelectCageInfo(this.cage).then(res => {
                         this.cageinfo = res.data.cageinfo;
                     });
@@ -619,7 +625,6 @@
                     message: this.$t('Operation canceled')
                 });
             });
-
         },
         showcageinfo(cage) {
             this.cage = cage;

--
Gitblit v1.8.0