Browse Source

恢复log可点击弹窗

master
王梦远 2 weeks ago
parent
commit
cd67d0ff1c
  1. 13
      src/components/home/HomeLogLevel.vue

13
src/components/home/HomeLogLevel.vue

@ -38,6 +38,9 @@ const handleConfirm = (value: any) => {
const handleCancel = () => {
isModalOpen.value = false
}
const openModal = () => {
isModalOpen.value = true
}
const operationState = computed(() => {
return homeStore.disinfectionState.state === 'idle' || homeStore.disinfectionState.state === 'finished'
@ -47,7 +50,15 @@ const operationState = computed(() => {
<template>
<div class="home-right-level">
消毒等级
<el-input v-model="loglevel" class="input" placeholder="请选择" style="height: 4rem" readonly>
<el-input
v-model="loglevel"
v-prevent-keyboard
class="input"
placeholder="请选择"
style="height: 4rem"
readonly
@focus="openModal"
>
<template #append>
<bt-button type="primary" button-text="Log" text-color="#ffffff" height="4rem" text-size="16px" />
</template>

Loading…
Cancel
Save