|
|
@ -46,7 +46,7 @@ |
|
|
|
<div |
|
|
|
class="echarts_box" |
|
|
|
id="bin" |
|
|
|
v-if="operatorStore.disinfectStatus || localStorage.getItem('bin')" |
|
|
|
v-if="operatorStore.disinfectStatus || binLocal" |
|
|
|
></div> |
|
|
|
</div> |
|
|
|
<div class="single_wrap"> |
|
|
@ -54,7 +54,7 @@ |
|
|
|
<div |
|
|
|
class="echarts_box" |
|
|
|
id="envir1" |
|
|
|
v-if="operatorStore.disinfectStatus || localStorage.getItem('envir1')" |
|
|
|
v-if="operatorStore.disinfectStatus || envir1Local" |
|
|
|
></div> |
|
|
|
</div> |
|
|
|
<div class="single_wrap"> |
|
|
@ -62,7 +62,7 @@ |
|
|
|
<div |
|
|
|
class="echarts_box" |
|
|
|
id="envir2" |
|
|
|
v-if="operatorStore.disinfectStatus || localStorage.getItem('envir2')" |
|
|
|
v-if="operatorStore.disinfectStatus || envir2Local" |
|
|
|
></div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -80,12 +80,24 @@ import { |
|
|
|
continueDisinfectionJSON, |
|
|
|
pauseDisinfectionJSON, |
|
|
|
} from '@/mock/command' |
|
|
|
import { onMounted, onUnmounted, ref } from 'vue' |
|
|
|
import { onMounted, onUnmounted, ref, computed } from 'vue' |
|
|
|
import * as echarts from 'echarts' |
|
|
|
import { storeToRefs } from 'pinia' |
|
|
|
|
|
|
|
const echartsStore = useEchartsStore() |
|
|
|
|
|
|
|
const binLocal = computed(() => { |
|
|
|
return localStorage.getItem('bin') |
|
|
|
}) |
|
|
|
|
|
|
|
const envir1Local = computed(() => { |
|
|
|
return localStorage.getItem('envir1') |
|
|
|
}) |
|
|
|
|
|
|
|
const envir2Local = computed(() => { |
|
|
|
return localStorage.getItem('envir2') |
|
|
|
}) |
|
|
|
|
|
|
|
const binOption = ref({ |
|
|
|
tooltip: { |
|
|
|
trigger: 'axis', |
|
|
|