zhangqiOMG 2 years ago
parent
commit
afe37d0ee9

+ 0 - 23
bin/vite

@@ -1,23 +0,0 @@
-#!/usr/bin/env node
-
-const path = require('path')
-const spawn = require('cross-spawn')
-const configPath = require.resolve('vue-cli-plugin-vite/config/index.ts')
-const cwd = path.resolve(__dirname, '../')
-
-const params = [
-  `${process.env.BUILD ? 'build' : ''}`,
-  process.env.VITE_DEBUG ? '--debug' : '',
-  '--config',
-  `${configPath}`,
-].filter(Boolean)
-
-console.log(`running: vite ${params.join(' ')}`)
-const serveService = spawn('vite', params, {
-  cwd,
-  stdio: 'inherit',
-})
-
-serveService.on('close', (code) => {
-  process.exit(code)
-})

+ 2 - 2
src/HManagement/archives_sc/list/modules/add.vue

@@ -88,8 +88,8 @@ export default {
         "sat_courseware_classid": '',
         "notes": "",
         "canfiledownload": 1,
-        "begdate": "2022-05-16 15:01:42",
-        "enddate": "2022-05-16 15:01:42",
+        "begdate":(new Date()).toLocaleDateString(),
+        "enddate":(new Date()).toLocaleDateString(),
         "tag":[]
       }
     }

+ 2 - 2
src/HManagement/submit/list/modules/submit_add.vue

@@ -19,8 +19,8 @@ export default {
         "isattrequired":1,
         "onceonly":1,
         "sat_submiteditmodelid":"0",
-        "begdate":"2022-05-17",
-        "enddate":"2022-05-18"
+        "begdate":(new Date()).toLocaleDateString(),
+        "enddate":(new Date()).toLocaleDateString()
       }
     }
   },

+ 5 - 2
src/components/layout/index.vue

@@ -14,7 +14,7 @@
           <p>消息</p>
         </div>
         <div class="item" :class="item.systemmoduleid === act_id?'active':''" v-for="item in shortcutlist" :key="item.systemmoduleid" @click="redictToModules(item)">
-          <p class="close-shortcut" @click.stop="deleteShortcut(item)"><i class="el-icon-error"></i></p>
+          <p v-if="item.issystem === 0" class="close-shortcut" @click.stop="deleteShortcut(item)"><i class="el-icon-error"></i></p>
           <img width="30" src="../../assets/nav_icon/work_station.svg" alt="">
           <p>{{item.systemmodulename}}</p>
         </div>
@@ -43,17 +43,20 @@
         </el-container>
       </el-container>
     </el-container>
+    <socket-message></socket-message>
   </div>
 </template>
 
 <script>
 import myheader from './modules/header.vue'
 import myaside from './modules/aside.vue'
+import socketMessage from '@/components/socketMessage/index.vue'
 import {mapGetters} from 'vuex'
 export default {
   components:{
     myheader,
-    myaside
+    myaside,
+    socketMessage
   },
   computed:{
     ...mapGetters({

+ 92 - 0
src/components/socketMessage/index.vue

@@ -0,0 +1,92 @@
+<template>
+<div>
+  <div class="box">
+  </div>
+</div>
+</template>
+<script>
+  export default {
+    components:{
+    },
+    data () {
+      return {
+        id:'',
+        path:"ws://121.37.152.76:8080/yos/webSocket/"
+      }
+    },
+    created () {
+      let token = JSON.parse(sessionStorage.getItem('active_account')).token
+      this.path = this.path + token
+      console.log(this.path)
+    },
+    mounted () {
+      this.init()
+    },
+    methods:{
+      onCloseThemeChat () {
+      },
+      onTypeChange (val) {
+      },
+      onThemeChat (bool) {
+      },
+      onChange (type) {
+      },
+      init: function () {
+          if(typeof(WebSocket) === "undefined"){
+              alert("您的浏览器不支持socket")
+          }else{
+              // 实例化socket
+              this.socket = new WebSocket(this.path)
+              // 监听socket连接
+              this.socket.onopen = this.open
+              // 监听socket错误信息
+              this.socket.onerror = this.error
+              // 监听socket消息
+              this.socket.onmessage = this.getMessage
+              this.contectIsLive()
+          }
+      },
+      open: function (val) {
+          console.log("socket连接成功",val)
+      },
+      error: function () {
+          console.log("连接错误")
+      },
+      getMessage: function (msg) {
+        console.log(msg)
+        alert(msg)
+      },
+      send: function (type,val,timsubjectid) {
+      },
+      close: function () {
+        console.log("socket已经关闭")
+      },
+      // 心跳链接
+      contectIsLive () {
+        const params = 'isalive'
+        this.realTimeClData = setInterval(() => {
+          console.log('监测连接')
+          this.socket.send(JSON.stringify(params))
+        }, 1000);
+      }
+    },
+    destroyed () {
+      // 销毁监听
+      this.socket.onclose = this.close
+    },
+    beforeDestroy () {
+      clearInterval(this.realTimeClData);
+    }
+  }
+</script>
+<style>
+.box{
+    font-size: 62.5%;
+
+}
+</style>
+<style scoped>
+.box{
+  display: flex;
+}
+</style>

+ 0 - 0
src/router/SLManagement.js


+ 1 - 1
src/router/SManagement.js

@@ -104,7 +104,7 @@ const SManagement = [{
   name: 'usercenter',
   meta: {
     title: '个人中心',
-    ast_nav: true
+    ast_nav: false
   },
   component: () => import(/* webpackChunkName: "about" */ '@/SManagement/user/user-info/UserInfo')
 },

+ 1 - 0
src/store/index.js

@@ -101,6 +101,7 @@ export default new Vuex.Store({
       res.data.forEach(e=>{
         modules.forEach(mod=>{
           if (mod.systemmoduleid === e.systemmoduleid) {
+            mod.issystem = e.issystem
             arr.push(mod)
           }
         })

BIN
yos.zip


+ 1 - 0
yos/css/250.39364e34.css

@@ -0,0 +1 @@
+.title[data-v-0e4e8f4b]{height:20px;line-height:20px;font-size:14px;text-indent:7px;font-weight:700;color:#333;margin-bottom:20px;border-left:4px solid #3874f6}.mb-40[data-v-0e4e8f4b]{margin-bottom:40px}

+ 1 - 0
yos/css/380.39364e34.css

@@ -0,0 +1 @@
+.title[data-v-0e4e8f4b]{height:20px;line-height:20px;font-size:14px;text-indent:7px;font-weight:700;color:#333;margin-bottom:20px;border-left:4px solid #3874f6}.mb-40[data-v-0e4e8f4b]{margin-bottom:40px}

File diff suppressed because it is too large
+ 0 - 0
yos/css/about.2274f4a3.css


File diff suppressed because it is too large
+ 0 - 0
yos/css/about.41face1a.css


File diff suppressed because it is too large
+ 0 - 0
yos/css/app.e111b42e.css


BIN
yos/favicon.ico


BIN
yos/fonts/element-icons.f1a45d74.ttf


BIN
yos/fonts/element-icons.ff18efd1.woff


BIN
yos/fonts/iconfont.25db8086.woff2


BIN
yos/fonts/iconfont.9fd356c2.woff


BIN
yos/fonts/iconfont.ba590032.ttf


BIN
yos/img/bg.e258adac.png


File diff suppressed because it is too large
+ 34 - 0
yos/img/iconfont.69177fb1.svg


BIN
yos/img/img.bd54e50f.png


+ 1 - 0
yos/img/more.58cd973b.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="22" height="22" viewBox="0 0 22 22"><defs><style>.a{fill:none;}.b{fill:#fff;}</style></defs><g transform="translate(-262.326 -384.891)"><rect class="a" width="22" height="22" transform="translate(262.326 384.891)"/><g transform="translate(63.177 -349.635)"><rect class="b" width="22" height="2" rx="1" transform="translate(199.149 735.525)"/><rect class="b" width="22" height="2" rx="1" transform="translate(199.149 744.166)"/><rect class="b" width="22" height="2" rx="1" transform="translate(199.149 752.806)"/></g></g></svg>

BIN
yos/img/text-img.06ebf1ba.png


+ 1 - 0
yos/img/work_station.550df9c4.svg

@@ -0,0 +1 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 30 30"><defs><style>.a{fill:none;}.b{fill:#fff;}</style></defs><g transform="translate(80 -466)"><rect class="a" width="30" height="30" transform="translate(-80 466)"/><path class="b" d="M86.087,724.24l-4.151,4.15a2.607,2.607,0,0,1-3.688,0L74.1,724.24a2.608,2.608,0,0,1,0-3.689l4.151-4.151a2.607,2.607,0,0,1,3.688,0l4.151,4.151a2.608,2.608,0,0,1,0,3.689Zm-16.757,17.4H63.46a2.608,2.608,0,0,1-2.609-2.609v-5.87a2.609,2.609,0,0,1,2.609-2.609h5.87a2.609,2.609,0,0,1,2.609,2.609v5.87a2.608,2.608,0,0,1-2.609,2.609Zm0-13.7H63.46a2.609,2.609,0,0,1-2.609-2.609v-5.87a2.608,2.608,0,0,1,2.609-2.609h5.87a2.609,2.609,0,0,1,2.609,2.609v5.87a2.609,2.609,0,0,1-2.609,2.609Zm7.827,2.609h5.87a2.609,2.609,0,0,1,2.609,2.609v5.87a2.608,2.608,0,0,1-2.609,2.609h-5.87a2.608,2.608,0,0,1-2.609-2.609v-5.87a2.609,2.609,0,0,1,2.609-2.609Zm0,0" transform="translate(-138.851 -247.636)"/></g></svg>

+ 1 - 1
yos/index.html

@@ -1 +1 @@
-<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>yos_manage</title><script defer="defer" type="module" src="js/chunk-vendors.8e4fd6d5.js"></script><script defer="defer" type="module" src="js/app.51336de6.js"></script><link href="css/app.9a01f9f4.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.3730eb53.js" nomodule></script><script defer="defer" src="js/app-legacy.7d76cd0b.js" nomodule></script></head><body><noscript><strong>We're sorry but yos_manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>
+<!doctype html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>yos_manage</title><script defer="defer" type="module" src="js/chunk-vendors.8e4fd6d5.js"></script><script defer="defer" type="module" src="js/app.7b8bf9e1.js"></script><link href="css/app.e111b42e.css" rel="stylesheet"><script defer="defer" src="js/chunk-vendors-legacy.22c7823f.js" nomodule></script><script defer="defer" src="js/app-legacy.8b16e74b.js" nomodule></script></head><body><noscript><strong>We're sorry but yos_manage doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div></body></html>

File diff suppressed because it is too large
+ 0 - 0
yos/js/250.1f6c23f6.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/380-legacy.2fdd55da.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/457.af51bf08.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/774.b58eb7ed.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/about-legacy.6b001edb.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/about.ed154ce4.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/app-legacy.7d76cd0b.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/app-legacy.8b16e74b.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/app.51336de6.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/app.7b8bf9e1.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/chunk-vendors-legacy.22c7823f.js


File diff suppressed because it is too large
+ 0 - 0
yos/js/chunk-vendors.8e4fd6d5.js


Some files were not shown because too many files changed in this diff