|
@ -97,6 +97,13 @@ |
|
|
/> |
|
|
/> |
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="row_wrap"> |
|
|
|
|
|
<p class="title">恢复默认设置</p> |
|
|
|
|
|
<p class="num"> |
|
|
|
|
|
<div class="btn" style="font-size: 1rem;margin-right: 50px;" @click="actionDefaultSetting">恢复</div> |
|
|
|
|
|
</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
<van-number-keyboard |
|
|
<van-number-keyboard |
|
|
v-model="addLiquidConfigVal" |
|
|
v-model="addLiquidConfigVal" |
|
|
:title="addLiquidConfigVal" |
|
|
:title="addLiquidConfigVal" |
|
@ -209,10 +216,15 @@ import Down from '@/assets/img/arrow/down.png' |
|
|
import Top from '@/assets/img/arrow/top.png' |
|
|
import Top from '@/assets/img/arrow/top.png' |
|
|
import { |
|
|
import { |
|
|
setSettingValJSON, |
|
|
setSettingValJSON, |
|
|
|
|
|
getAllSettingJSON, |
|
|
changeDisinfectionParameterJSON, |
|
|
changeDisinfectionParameterJSON, |
|
|
updateSettingInRunInfectionJSON, |
|
|
updateSettingInRunInfectionJSON, |
|
|
} from '@/mock/command' |
|
|
} from '@/mock/command' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import MyModal from '../../../utils/MyModal' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const topContainer = () => { |
|
|
const topContainer = () => { |
|
|
const ele = document.getElementById('set_device_container') |
|
|
const ele = document.getElementById('set_device_container') |
|
|
ele.scrollTop = ele.scrollTop - 100 < 100 ? 0 : ele.scrollTop - 100 |
|
|
ele.scrollTop = ele.scrollTop - 100 < 100 ? 0 : ele.scrollTop - 100 |
|
@ -721,6 +733,20 @@ const setSprayLiquidVal = () => { |
|
|
} |
|
|
} |
|
|
showSuccessToast('设置成功') |
|
|
showSuccessToast('设置成功') |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 恢复到默认设置 |
|
|
|
|
|
async function actionDefaultSetting() { |
|
|
|
|
|
let isConfirmed = await MyModal.confirm('是否恢复到默认设置?'); |
|
|
|
|
|
if (!isConfirmed) { |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if ( !props.runInfection ) { |
|
|
|
|
|
await webSocketStore.call('factoryResetSettings'); |
|
|
|
|
|
webSocketStore.sendCommandMsg(getAllSettingJSON); |
|
|
|
|
|
} |
|
|
|
|
|
showSuccessToast('设置成功') |
|
|
|
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
<style lang="scss" scoped> |
|
|