From 20b0ce2db27b64a60de60aee05dedd448099e330 Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期一, 08 七月 2024 10:12:16 +0800
Subject: [PATCH] xiugai

---
 src/views/newHome/index.vue |   57 +++++++++++++++++++++++++++++++++++++++++++--------------
 1 files changed, 43 insertions(+), 14 deletions(-)

diff --git a/src/views/newHome/index.vue b/src/views/newHome/index.vue
index f944810..e2d09ca 100644
--- a/src/views/newHome/index.vue
+++ b/src/views/newHome/index.vue
@@ -21,7 +21,7 @@
         <div class="leftCont"></div>
         <div class="topCont">
             <div class="topInfo">
-                <div class="topTit">新疆国泰新华<br />安全风险预警监测系统(试运行)</div>
+                <div class="topTit">新疆国泰新华<br />安全风险预警监测系统</div>
                 <div class="topTime">
                     <div class="time">
                         {{ time }}
@@ -92,6 +92,16 @@
                   </div>
                   <img class="bgImg" src="../../assets/newMenu/card-12.png" />
                 </div>
+                <div class="grid-content cont-bg-2" v-throttle @click="render('12')">
+                  <div class="toplayer">
+                    <img class="iconImg" src="../../assets/newMenu/icon14.png" />
+                    <div>
+                      <div class="itemTit">监管数据融合互通系统</div>
+                      <div class="enTit">Regulatory Data Integration and Interoperability System</div>
+                    </div>
+                  </div>
+                  <img class="bgImg" src="../../assets/newMenu/card-14.png" />
+                </div>
                 <div class="grid-content cont-bg-2" v-throttle @click="render('7')">
                     <div class="toplayer">
                         <img class="iconImg" src="../../assets/newMenu/icon5.png" />
@@ -136,8 +146,10 @@
                     <div class="toplayer">
                         <img class="iconImg" src="../../assets/newMenu/icon9.png" />
                         <div>
-                            <div class="itemTit">智能安全危险化学品全生命周期管控系统</div>
-                            <div class="enTit">Intelligent Security Hazardous Chemicals Life Cycle Safety Management System </div>
+<!--                            <div class="itemTit">智能安全危险化学品全生命周期管控系统</div>-->
+<!--                            <div class="enTit">Intelligent Security Hazardous Chemicals Life Cycle Safety Management System</div>-->
+                            <div class="itemTit">安全教育考试系统</div>
+                            <div class="enTit">Safety Education Examination System</div>
                         </div>
                     </div>
                     <img class="bgImg" src="../../assets/newMenu/card-10.png" />
@@ -183,7 +195,7 @@
 </template>
 
 <script lang="ts">
-import { toRefs, reactive, computed, defineComponent, onMounted } from 'vue';
+import {toRefs, reactive, computed, defineComponent, onMounted, onUnmounted} from 'vue';
 import { storeToRefs } from 'pinia';
 import { useThemeConfig } from '/@/stores/themeConfig';
 import logoMini from '/@/assets/logo-mini.svg';
@@ -216,6 +228,7 @@
     date: string;
     weekDay: string;
     dayTime: string;
+    timer: null | any
 }
 
 export default defineComponent({
@@ -250,7 +263,8 @@
             date: '',
             weekDay: '',
             dayTime: '',
-            isScreenfull: false
+            isScreenfull: false,
+              timer: null
         });
 
         const userName = computed(() =>{
@@ -346,21 +360,27 @@
             });
         };
         // 去风险大屏
-        const toRiskPlatform = () => {
+        const toRiskPlatform = async() => {
             // router.push({
             //     name: "warningScreen"
             // });
-            window.open('http://39.104.85.193:8585/');
+          const routePath = '/warningScreen';
+          const resolvedRoute = router.resolve(routePath);
+          const fullPath = resolvedRoute.href
+          window.open(fullPath, '_blank');
+          // window.open(fullPath, '_blank');
+
+            // window.open('http://39.104.85.193:8585/');
         };
 
         const toDoublePrevent = () => {
-           window.open('http://121.239.169.27:6801');
+           window.open('http://117.190.40.54:6801/login');
         };
         const toSmartFactory = () =>{
-          window.open('http://10.211.134.139:5522/#/login');
+          window.open('http://117.190.40.54:5522/#/login');
         }
         const toManLocation = () =>{
-          window.open('http://10.211.134.138:8081/GUOTAI');
+          window.open('http://117.190.40.54:8081/location_system_5.4.9/login/login.html?company=GUOTAI&version=5.4.9');
         }
         const throttle = (renderMenu: any, delay: number) => {
             let flag = true;
@@ -383,6 +403,7 @@
 
         //调用菜单方法
         const renderMenu = throttle(() => {
+          // debugger
             renderFun();
         }, 2000);
 
@@ -410,7 +431,8 @@
         };
 
         const renderToNew = () => {
-            window.open('http://222.92.213.22:18001/smartlab/', '_blank');
+            // window.open('http://222.92.213.22:18001/smartlab/', '_blank');
+          window.open('http://106.15.95.149:8005/nanoweb/foreground/', '_blank');
         };
         // //点击进入特殊作业
         // const toSpecialWorkSys = () => {
@@ -421,12 +443,17 @@
             state.once += 1;
             NextLoading.done();
             getDateTime();
-            setInterval(() => {
+            state.timer = setInterval(() => {
                 getDateTime();
-            }, 1000);
+            }, 30000);
             // loginBg();
             // loginApp()
-        });
+        })
+
+      onUnmounted(() => {
+        clearInterval(state.timer)
+      });
+
         return {
             render,
             userName,
@@ -582,6 +609,7 @@
         display: grid;
         grid-gap: 15px;
         grid-template-columns: repeat(3, 1fr);
+        grid-template-rows: repeat(5, 120px);
         grid-auto-flow: row;
         justify-content: center;
 
@@ -674,6 +702,7 @@
         display: grid;
         grid-gap: 10px;
         grid-template-columns: repeat(3, 1fr);
+        grid-template-rows: repeat(5, 96px);
         grid-auto-flow: row;
         justify-content: center;
 

--
Gitblit v1.9.2