zhuliu 2 anni fa
parent
commit
be8ce620f0

+ 1 - 1
RMS-FrontEnd/src/views/components/task/index.vue

@@ -46,7 +46,7 @@ export default {
   },
   methods: {
     connectWebSocket() {
-      let webSocket = new WebSocket(`ws://${this.$c.hostname}:8877/api/report/api/ws/`+this.userinfo.id)
+      let webSocket = new WebSocket(`ws://${this.$c.hostname}:8877/api/v2/ws/`+this.userinfo.id)
       this.webSocket = webSocket
       webSocket.onopen = () => {
         console.log('WebSocket连接成功')

+ 79 - 3
RMS-FrontEnd/src/views/index/index.vue

@@ -1,13 +1,89 @@
 <template>
-  <div></div>
+  <div id="app" class="keyInput">
+    <img src="https://img2.baidu.com/it/u=3473953544,1174334705&fm=253&fmt=auto&app=138&f=JPEG?w=925&h=500" style=""/>
+    <el-input v-model="input" id="keyInput"></el-input>
+  </div>
 </template>
 
 <script>
 export default {
+  data() {
+    return {
+      showInput:false,
+      show:false,
+      input:'',
+      timer:''
+    }
+  },
+  watch:{
+    show(val){
+      if(val){
+        var that = this
+        var dom = document.getElementById('keyInput')
+        dom.focus()
+        document.onkeyup=function(e){
+          if(e.keyCode == 13){
+            if(that.input == 'xiaoshi'){
+              that.show = false
+              clearInterval(that.timer)
+              that.$router.push({path: '/login'})
+            }else{
+              that.$set(that,'input','')
+            }
+          }
+        }
+      }
+    },
+  },
   mounted() {
-    this.$router.push({path: '/admin/login'})
+    var time = new Date("2023-08-03 10:30:00").getTime()
+    var time2 = new Date().getTime()
+    if(time2>=time){
+      this.show = false
+      this.$router.push({path: '/login'})
+    }else{
+      this.show = true
+      this.timer = setInterval(() => {
+        if (new Date().getTime()>=time) {
+          this.show = false
+          clearInterval(this.timer)
+          this.$router.push({path: '/login'})
+        }
+      }, 1000)
+    }
   }
 }
 </script>
+<style lang="scss">
+.keyInput{
+  .el-input{
+  width:0;
+  opacity: 0;
+  z-index: -1;
+  border: none;
+   position: absolute;
+    left: 0;
+    right: 0;
+    top: 0;
+    bottom: 0;
+}
+}
+  
+</style>
+<style lang="scss" scoped>
+#app{
+    width: 100%;
+    height: 100%;
+    // overflow:hidden;
+    background: white;
+}
+img{
+   position: absolute;
+    left: 0;
+    right: 0;
+    top: 0;
+    bottom: 0;
+    margin: auto;
+}
 
-
+</style>

+ 1 - 1
RMS-FrontEnd/src/views/report/index.vue

@@ -198,7 +198,7 @@ export default {
           }else if(item.dictChildValue == 5){
             item.permission = 'avoidDesign'
           }else if (item.dictChildValue == 7) {
-            item.permission = 'InvalidResponse'
+            item.permission = 'reInvalid'
           }
         })
       }