|
@ -28,7 +28,6 @@ provide<(methods: Home.GrandsonMethods) => void>('registerGrandsonMethods', (met |
|
|
// 状态管理 |
|
|
// 状态管理 |
|
|
const router = useRouter() |
|
|
const router = useRouter() |
|
|
const formulaStore = useFormulaStore() |
|
|
const formulaStore = useFormulaStore() |
|
|
const deviceStore = useDeviceStore() |
|
|
|
|
|
const homeStore = useHomeStore() |
|
|
const homeStore = useHomeStore() |
|
|
|
|
|
|
|
|
// 组件状态 |
|
|
// 组件状态 |
|
@ -156,53 +155,35 @@ const onCloseConfig = () => { |
|
|
const onCloseRuntime = () => { |
|
|
const onCloseRuntime = () => { |
|
|
disinfectRuntimeVisible.value = false |
|
|
disinfectRuntimeVisible.value = false |
|
|
} |
|
|
} |
|
|
const settingWidth = computed(() => { |
|
|
|
|
|
if (__DEVICE_TYPE__ === deviceStore.deviceTypeMap.LargeSpaceDM_B) { |
|
|
|
|
|
return '12rem' |
|
|
|
|
|
} |
|
|
|
|
|
return '7.5rem' |
|
|
|
|
|
}) |
|
|
|
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<template> |
|
|
<template> |
|
|
<div class="home-start-opt"> |
|
|
|
|
|
<div class="home-opt-flex"> |
|
|
|
|
|
<div class="home-opt-ml"> |
|
|
|
|
|
<BtButton |
|
|
|
|
|
button-text="查看图表" |
|
|
|
|
|
text-size="1.3rem" |
|
|
|
|
|
border-radius="5px" |
|
|
|
|
|
:width="settingWidth" |
|
|
|
|
|
height="3rem" |
|
|
|
|
|
text-color="#1989fa" |
|
|
|
|
|
:disabled="deviceState" |
|
|
|
|
|
@click="onShowChart" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="home-opt-ml"> |
|
|
|
|
|
<BtButton |
|
|
|
|
|
v-if="deviceState" |
|
|
|
|
|
button-text="消毒设置" |
|
|
|
|
|
text-size="1.3rem" |
|
|
|
|
|
border-radius="5px" |
|
|
|
|
|
:width="settingWidth" |
|
|
|
|
|
text-color="#1989fa" |
|
|
|
|
|
height="3rem" |
|
|
|
|
|
@click="onDisinfectConfig()" |
|
|
|
|
|
/> |
|
|
|
|
|
<BtButton |
|
|
|
|
|
v-else |
|
|
|
|
|
button-text="运行参数" |
|
|
|
|
|
text-size="1.3rem" |
|
|
|
|
|
border-radius="5px" |
|
|
|
|
|
:width="settingWidth" |
|
|
|
|
|
text-color="#1989fa" |
|
|
|
|
|
height="3rem" |
|
|
|
|
|
@click="onDisinfectRuntime()" |
|
|
|
|
|
/> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<el-button type="primary" :disabled="deviceState" @click="onShowChart"> |
|
|
|
|
|
查看图表 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button v-if="deviceState" style="margin: 0" @click="onDisinfectConfig()"> |
|
|
|
|
|
消毒设置 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<el-button v-else style="margin: 0" @click="onDisinfectRuntime()"> |
|
|
|
|
|
运行参数 |
|
|
|
|
|
</el-button> |
|
|
|
|
|
<!-- <div class="home-start-opt"> --> |
|
|
|
|
|
<!-- <div class="home-opt-flex"> --> |
|
|
|
|
|
<!-- <div class="home-opt-ml"> --> |
|
|
|
|
|
<!-- <el-button type="primary" :disabled="deviceState" @click="onShowChart"> --> |
|
|
|
|
|
<!-- 查看图表 --> |
|
|
|
|
|
<!-- </el-button> --> |
|
|
|
|
|
<!-- </div> --> |
|
|
|
|
|
<!-- <div class="home-opt-ml"> --> |
|
|
|
|
|
<!-- <el-button v-if="deviceState" @click="onDisinfectConfig()"> --> |
|
|
|
|
|
<!-- 消毒设置 --> |
|
|
|
|
|
<!-- </el-button> --> |
|
|
|
|
|
<!-- <el-button v-else @click="onDisinfectRuntime()"> --> |
|
|
|
|
|
<!-- 运行参数 --> |
|
|
|
|
|
<!-- </el-button> --> |
|
|
|
|
|
<!-- </div> --> |
|
|
|
|
|
<!-- </div> --> |
|
|
|
|
|
<!-- </div> --> |
|
|
<!-- 消毒设置 --> |
|
|
<!-- 消毒设置 --> |
|
|
<ft-dialog v-model="disinfectConfigVisible" title="消毒设置" width="80vw"> |
|
|
<ft-dialog v-model="disinfectConfigVisible" title="消毒设置" width="80vw"> |
|
|
<div style="height: 80vh; overflow: auto"> |
|
|
<div style="height: 80vh; overflow: auto"> |
|
@ -287,7 +268,7 @@ const settingWidth = computed(() => { |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
.home-start-opt { |
|
|
.home-start-opt { |
|
|
margin: 0.5rem; |
|
|
|
|
|
|
|
|
//margin: 0.5rem; |
|
|
} |
|
|
} |
|
|
.home-opt-flex { |
|
|
.home-opt-flex { |
|
|
display: flex; |
|
|
display: flex; |
|
|