Browse Source

密封测试单位错误

master
sige 1 year ago
parent
commit
f988545cd0
  1. 12
      publish.ps1
  2. 2
      src/components/SealTest.vue
  3. 42
      src/components/Setting/components/Device.vue

12
publish.ps1

@ -1,3 +1,14 @@
Param(
[String]$Exec="Deplay"
)
if ( $Exec -eq "DevDisable" ) {
ssh root:zwsd@192.168.8.12 "rm /var/zapp_flag/chrome_in_test_mode";
ssh root:zwsd@192.168.8.12 "reboot"
} elseif ( $Exec -eq "DevEnable" ) {
ssh root:zwsd@192.168.8.12 "touch /var/zapp_flag/chrome_in_test_mode";
ssh root:zwsd@192.168.8.12 "reboot"
} elseif ( $Exec -eq "Deplay" ) {
# build project # build project
yarn build yarn build
# rename dist to current time, like 20221215121300 # rename dist to current time, like 20221215121300
@ -18,3 +29,4 @@ ssh root:zwsd@192.168.8.12 "cd /frontend && rm -f app.zip"
Remove-Item -Path ./app.zip Remove-Item -Path ./app.zip
# remove folder # remove folder
Remove-Item -Path ./$now -Recurse Remove-Item -Path ./$now -Recurse
}

2
src/components/SealTest.vue

@ -405,7 +405,7 @@ onMounted(() => {
valueAnimation: true, valueAnimation: true,
fontSize: 40, fontSize: 40,
color: '#3442aa', color: '#3442aa',
formatter: '{value} Pa',
formatter: '{value} kp',
offsetCenter: [0, '70%'], offsetCenter: [0, '70%'],
}, },
data: [ data: [

42
src/components/Setting/components/Device.vue

@ -238,6 +238,7 @@ import {
setSettingValJSON, setSettingValJSON,
changeDisinfectionParameterJSON, changeDisinfectionParameterJSON,
updateSettingInRunInfectionJSON, updateSettingInRunInfectionJSON,
getAllSettingJSON,
} from '@/mock/command' } from '@/mock/command'
@ -812,45 +813,8 @@ async function actionDefaultSetting() {
} }
if ( !props.runInfection ) { if ( !props.runInfection ) {
// (g/min)
settingStore.changeSprayLiquidConfigVal(0);
await webSocketStore.call('setSettingVal',{settingName:'injection_pump_speed', settingVal:0});
// (ppm)
settingStore.updateStopedGs(0);
await webSocketStore.call('setSettingVal',{settingName:'stoped_gs', settingVal:0});
// (ppm)
settingStore.updateContinuedGs(0);
await webSocketStore.call('setSettingVal',{settingName:'continued_gs', settingVal:0});
// 湿(%RH)
settingStore.updateStopedHumi(0);
await webSocketStore.call('setSettingVal',{settingName:'stoped_humi', settingVal:0});
// 湿(%RH)
settingStore.updateContinuedHumi(0);
await webSocketStore.call('setSettingVal',{settingName:'continued_humi', settingVal:0});
// (%RS)
settingStore.updateStopedSatur(0);
await webSocketStore.call('setSettingVal',{settingName:'stoped_satur', settingVal:0});
// (%RS)
settingStore.updateContinuedSatur(0);
await webSocketStore.call('setSettingVal',{settingName:'continued_satur', settingVal:0});
//
settingStore.updateProportionalValveDefaultValue(0);
await webSocketStore.call('setSettingVal',{settingName:'proportional_valve_default_value', settingVal:0});
// 湿(%RH)
settingStore.updateMaxHumidity(0);
await webSocketStore.call('setSettingVal',{settingName:'max_humidity', settingVal:0});
// (s)
settingStore.updatePre_heat_time_s(0);
await webSocketStore.call('setSettingVal',{settingName:'pre_heat_time_s', settingVal:0});
await webSocketStore.call('factoryResetSettings');
webSocketStore.sendCommandMsg(getAllSettingJSON);
} }
showSuccessToast('设置成功') showSuccessToast('设置成功')
} }

Loading…
Cancel
Save