|
@ -1,19 +1,6 @@ |
|
|
<template> |
|
|
<template> |
|
|
<div class="update_device_container"> |
|
|
<div class="update_device_container"> |
|
|
<div class="row_wrap"> |
|
|
<div class="row_wrap"> |
|
|
<p class="title">注射蠕动泵速率(g/min)</p> |
|
|
|
|
|
<p class="num"> |
|
|
|
|
|
<van-field |
|
|
|
|
|
type="number" |
|
|
|
|
|
v-model="sprayLiquidConfigVal" |
|
|
|
|
|
:clickable="true" |
|
|
|
|
|
:formatter="formatter7" |
|
|
|
|
|
readonly |
|
|
|
|
|
@click.stop="hideClickKey(2)" |
|
|
|
|
|
/> |
|
|
|
|
|
</p> |
|
|
|
|
|
</div> |
|
|
|
|
|
<div class="row_wrap"> |
|
|
|
|
|
<p class="title">消毒停止过氧化氢浓度(ppm)</p> |
|
|
<p class="title">消毒停止过氧化氢浓度(ppm)</p> |
|
|
<p class="num"> |
|
|
<p class="num"> |
|
|
<van-field |
|
|
<van-field |
|
@ -91,6 +78,19 @@ |
|
|
/> |
|
|
/> |
|
|
</p> |
|
|
</p> |
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<div class="row_wrap"> |
|
|
|
|
|
<p class="title">注射蠕动泵速率(g/min)</p> |
|
|
|
|
|
<p class="num"> |
|
|
|
|
|
<van-field |
|
|
|
|
|
type="number" |
|
|
|
|
|
v-model="sprayLiquidConfigVal" |
|
|
|
|
|
:clickable="true" |
|
|
|
|
|
:formatter="formatter7" |
|
|
|
|
|
readonly |
|
|
|
|
|
@click.stop="hideClickKey(2)" |
|
|
|
|
|
/> |
|
|
|
|
|
</p> |
|
|
|
|
|
</div> |
|
|
<div class="row_wrap" @click="showLogPicker"> |
|
|
<div class="row_wrap" @click="showLogPicker"> |
|
|
<p class="title">Log等级</p> |
|
|
<p class="title">Log等级</p> |
|
|
<div class="num"> |
|
|
<div class="num"> |
|
@ -221,7 +221,11 @@ |
|
|
<div class="btn ml" @click="hiddleSettingModal">返回</div> |
|
|
<div class="btn ml" @click="hiddleSettingModal">返回</div> |
|
|
</div> |
|
|
</div> |
|
|
<div class="key_wrap" v-show="showkeyboard" id="keyboard_formula"> |
|
|
<div class="key_wrap" v-show="showkeyboard" id="keyboard_formula"> |
|
|
<SimpleKeyboard @onChange="onChange" :input="formula_id" /> |
|
|
|
|
|
|
|
|
<SimpleKeyboard |
|
|
|
|
|
@onKeyPress="onKeyPress" |
|
|
|
|
|
@onChange="onChange" |
|
|
|
|
|
:input="formula_id" |
|
|
|
|
|
/> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</template> |
|
|
</template> |
|
@ -277,13 +281,19 @@ const logVisible = ref(false) |
|
|
const logVal = ref(props.formulaInfo.loglevel) |
|
|
const logVal = ref(props.formulaInfo.loglevel) |
|
|
const formula_id = ref(props.formulaInfo.formula_id) |
|
|
const formula_id = ref(props.formulaInfo.formula_id) |
|
|
|
|
|
|
|
|
watch(formula_id, (newValue, oldValue) => { |
|
|
|
|
|
if (newValue != '') { |
|
|
|
|
|
// webSocketStore.sendCommandMsg( |
|
|
|
|
|
// updateFormulaJSON('formula_id', newValue, props.formulaInfo.id), |
|
|
|
|
|
// ) |
|
|
|
|
|
|
|
|
// watch(formula_id, (newValue, oldValue) => { |
|
|
|
|
|
// if (newValue != '') { |
|
|
|
|
|
// // webSocketStore.sendCommandMsg( |
|
|
|
|
|
// // updateFormulaJSON('formula_id', newValue, props.formulaInfo.id), |
|
|
|
|
|
// // ) |
|
|
|
|
|
// } |
|
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
|
|
const onKeyPress = button => { |
|
|
|
|
|
if (button == '{bksp}') { |
|
|
|
|
|
formula_id.value = formula_id.value.substr(0, formula_id.value.length - 1) |
|
|
} |
|
|
} |
|
|
}) |
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const save = () => { |
|
|
const save = () => { |
|
|
if (formula_id.value == '') { |
|
|
if (formula_id.value == '') { |
|
|