sige 1 year ago
parent
commit
c26c40483f
  1. BIN
      src/assets/img/liquid/form.png
  2. 8
      src/components/LiquidHandle.vue

BIN
src/assets/img/liquid/form.png

Before

Width: 340  |  Height: 221  |  Size: 10 KiB

After

Width: 340  |  Height: 221  |  Size: 7.8 KiB

8
src/components/LiquidHandle.vue

@ -62,7 +62,7 @@
class="liquid_column"
:style="{
'--height': `${
((disinfectantCapacity <= 0 ? 0 : disinfectantCapacity) / 2300) *
((disinfectantCapacity <= 0 ? 0 : disinfectantCapacity) / 2800) *
472
}px`,
}"
@ -202,8 +202,8 @@ onUnmounted(() => {
const formatter = value => {
if (parseInt(value) > 2300) {
return '2300'
if (parseInt(value) > 2800) {
return '2800'
}
if (parseInt(value) <= 0) {
return '0'
@ -216,7 +216,7 @@ const formatter = value => {
const startAdd = () => {
let value = parseInt(addLiquidVal.value);
if ( 0 === value || value > 2300 ) {
if ( 0 === value || value > 2800 ) {
console.warn(`加液量不合法 : ${value}`);
return;
}

Loading…
Cancel
Save