Browse Source

消毒中设置

master
maochaoying 2 years ago
parent
commit
ce619fbe79
  1. 19
      src/components/DisinfectionSetting.vue
  2. 3
      src/components/Setting/components/Device.vue
  3. 16
      src/pages/Home.vue
  4. 2
      src/store/modules/user.js

19
src/components/DisinfectionSetting.vue

@ -0,0 +1,19 @@
<template>
<div class="disinfection_setting_container">
<Device />
</div>
</template>
<script setup>
import Device from 'cpns/Setting/components/Device'
</script>
<style lang="scss" scoped>
.disinfection_setting_container {
margin-bottom: 19px;
height: 580px;
box-sizing: border-box;
background: #ffffff;
border-radius: 16px;
}
</style>

3
src/components/Setting/components/Device.vue

@ -529,12 +529,11 @@ const setSprayLiquidVal = () => {
padding: 20px;
display: grid;
overflow: scroll;
grid-template-rows: repeat(2, 1fr);
grid-template-columns: repeat(1, 1fr);
row-gap: 20px;
padding-bottom: 20px;
.row_wrap {
width: 726px;
// width: 726px;
height: 80px;
border-radius: 14px;
background: #f6f6f6;

16
src/pages/Home.vue

@ -112,10 +112,7 @@
activeTab == 5 ? 'tab_btn style-btn active_btn' : 'style-btn tab_btn'
"
@click="changeTab(5)"
v-if="
userStore.loginUserPermission != 3 &&
operatorStore.disinfectStatus != 1
"
v-if="userStore.loginUserPermission != 3"
>
<svg
xmlns="http://www.w3.org/2000/svg"
@ -170,15 +167,17 @@
:hideKeyBoard="hideKeyBoard"
:input="input"
/>
<!-- <Progress
<Progress
v-if="activeTab == 1 && !showOpertor"
:changeShowOperator="changeShowOperator"
/> -->
<Progress :changeShowOperator="changeShowOperator" />
/>
<LiquidHandle v-if="activeTab == 2" :tabType="1" />
<LiquidHandle v-if="activeTab == 3" :tabType="2" />
<Test v-if="activeTab == 4" />
<Setting v-if="activeTab == 5" />
<Setting v-if="activeTab == 5 && operatorStore.disinfectStatus != 1" />
<DisinfectionSetting
v-if="activeTab == 5 && operatorStore.disinfectStatus == 1"
/>
<Audit v-if="activeTab == 6" />
<div class="other_info">
<p class="ip">IP {{ settingStore.deviceIp }}</p>
@ -278,6 +277,7 @@ import SimpleKeyboard from 'cpns/SimpleKeyboard'
import moment from 'moment'
import Operator from 'cpns/Operator'
import Audit from 'cpns/Audit'
import DisinfectionSetting from 'cpns/DisinfectionSetting'
import Progress from 'cpns/Progress'
import LiquidHandle from 'cpns/LiquidHandle'
import Setting from 'cpns/Setting'

2
src/store/modules/user.js

@ -7,7 +7,7 @@ export const useUserStore = defineStore({
allUserList: [],
operUser: '',
loginUser: '',
loginUserPermission: 3,
loginUserPermission: 2,
}
},
// actions

Loading…
Cancel
Save