|
|
@ -13,7 +13,7 @@ import { FtMessage } from 'libs/message' |
|
|
|
import { socket } from 'libs/socket' |
|
|
|
import { useHomeStore } from 'stores/homeStore' |
|
|
|
import { useSystemStore } from 'stores/systemStore' |
|
|
|
import { onMounted, ref, watch } from 'vue' |
|
|
|
import { computed, onMounted, onUnmounted, ref, watch } from 'vue' |
|
|
|
|
|
|
|
const option = ref({ |
|
|
|
grid: { |
|
|
@ -38,6 +38,16 @@ const option = ref({ |
|
|
|
], |
|
|
|
}) |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
socket.init(receiveMessage, 'log') |
|
|
|
}) |
|
|
|
onUnmounted(() => { |
|
|
|
socket.unregisterCallback(receiveMessage, 'log') |
|
|
|
}) |
|
|
|
const receiveMessage = async (data: any) => { |
|
|
|
homeStore.insertLog(data) |
|
|
|
} |
|
|
|
|
|
|
|
const chartBox = ref(null) |
|
|
|
|
|
|
|
const systemStore = useSystemStore() |
|
|
@ -129,13 +139,8 @@ const heatList = computed(() => { |
|
|
|
const titrationList = computed(() => { |
|
|
|
return systemStore.systemStatus.titrationModule |
|
|
|
}) |
|
|
|
onMounted(() => { |
|
|
|
socket.init(receiveMessage, 'log') |
|
|
|
}) |
|
|
|
const receiveMessage = async (data: any) => { |
|
|
|
homeStore.insertLog(data) |
|
|
|
} |
|
|
|
const list = homeStore.logList |
|
|
|
|
|
|
|
const list = computed(() => homeStore.logList) |
|
|
|
</script> |
|
|
|
|
|
|
|
<template lang="pug"> |
|
|
@ -164,6 +169,7 @@ const list = homeStore.logList |
|
|
|
template(#default) |
|
|
|
div.operation-box |
|
|
|
ft-button(type="primary" :click-handle="() => addTube(item + 16)") 放入试管 |
|
|
|
ft-button(type="primary" :click-handle="() => delTube(item+ 16)") 取出试管 |
|
|
|
//ft-button(type="primary" :click-handle="() => tubeMoveHandle(item + 16)") 移至加热位 |
|
|
|
ft-button(type="primary" :click-handle="() => tubeMoveHandle(item + 16)") 移至滴定位 |
|
|
|
template(#reference) |
|
|
|