diff --git a/src/pages/Index/History.vue b/src/pages/Index/History.vue index 31ee328..463f037 100644 --- a/src/pages/Index/History.vue +++ b/src/pages/Index/History.vue @@ -145,7 +145,7 @@ import { exportRecordsToLIS, } from '../../services/Index/index' import HistoryMessage from './components/History/HistoryMessage.vue' -import type { ResultItem, TableItem } from '../../types/Index' +import type { TableItem } from '../../types/Index' import WarnSvg from '@/assets/Index/History/warn.svg' import PrintSvg from '@/assets/Index/History/print.svg' import ErrorSvg from '@/assets/Warn.svg' @@ -155,19 +155,6 @@ import { useSettingTestTubeStore } from '@/store' const settingTubeStore = useSettingTestTubeStore() -const showResult = (t: ResultItem) => { - if (t.status !== 'SUCCESS') { - return '错误' - } - const unit1 = t.resultConverters[0] - return ( - t.subProjName + - ' ' + - (t.result * unit1.A + unit1.B).toFixed(2) + - ' ' + - unit1.uintstr - ) -} // 添加表格引用 const historyTableRef = ref() diff --git a/src/pages/Index/Index.vue b/src/pages/Index/Index.vue index 681f872..5680cc7 100644 --- a/src/pages/Index/Index.vue +++ b/src/pages/Index/Index.vue @@ -78,12 +78,18 @@ - -
- -
{{ username || '未登录' }}
+ +
+ +
+ {{ + deviceStore.contextState.loginFlag + ? deviceStore.contextState.loginUser.account + : '未登录' + }}
-