src/api/fysp/evaluateApi.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/api/index.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/assets/styles/layout.scss | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/HomeView.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/views/inspection/WorkStream.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/api/fysp/evaluateApi.js
¶Ô±ÈÐÂÎļþ @@ -0,0 +1,10 @@ import { $fysp } from '../index' export default { /** * è·åèªå¨è¯ä¼°åå²è®°å½ */ fetchAutoEvaluation(param) { return $fysp.post(`evaluation/auto/record`, param).then((res) => res.data) } } src/api/index.js
@@ -1,13 +1,13 @@ import axios from 'axios' import { ElMessage } from 'element-plus' const debug = true const debug = false var IP = '47.100.191.150' var PORT = '9005' if (debug) { IP = '192.168.0.138' PORT = '8082' PORT = '8080' } let ws = `${IP}:${PORT}` src/assets/styles/layout.scss
@@ -1,5 +1,5 @@ :root { --fy-header-height: 40px; --fy-header-height: 0px; --fy-body-height: calc(100vh - var(--fy-header-height)); } src/views/HomeView.vue
@@ -1,5 +1,5 @@ <template> <core-header></core-header> <!-- <core-header></core-header> --> <div class="fy-body"> <router-view></router-view> </div> src/views/inspection/WorkStream.vue
@@ -79,7 +79,9 @@ if (socket) { socket.close() } socket = new WebSocket(`ws://192.168.0.138:8082/workstream`) const url = 'ws://' + ws + '/workstream' // socket = new WebSocket(`ws://192.168.0.138:8080/workstream`) socket = new WebSocket(url) // 䏿å¡å¨å»ºç«è¿æ¥ï¼åéæ¶æ¯å°æå¡å¨ socket.onopen = () => { console.log('connect: ') @@ -110,16 +112,16 @@ } onMounted(() => { handleLink() // setInterval(() => { // streams.push({ // time: dayjs().format('YYYY-MM-DD HH:mm:ss'), // user: users[parseInt(Math.random() * users.length)], // obj: objs[parseInt(Math.random() * objs.length)], // event: events[parseInt(Math.random() * events.length)] // }) // scrollToBottom() // }, 10000) // handleLink() setInterval(() => { streams.push({ time: dayjs().format('YYYY-MM-DD HH:mm:ss'), userName: users[parseInt(Math.random() * users.length)], obj: objs[parseInt(Math.random() * objs.length)], event: events[parseInt(Math.random() * events.length)] }) scrollToBottom() }, 5000) }) onUnmounted(() => { socket.close()