Browse Source

fix: 预充参数修改

master
guoapeng 5 months ago
parent
commit
1f5e02cddf
  1. 2
      src/services/globalCmd/globalCmd.ts
  2. 2
      src/views/PreSpray.vue

2
src/services/globalCmd/globalCmd.ts

@ -92,7 +92,7 @@ export function startWash(params: { type: WashType }) {
export function stopWash(params: Record<string, any>) { export function stopWash(params: Record<string, any>) {
return httpRequest<BaseResponse>({ url: "/api/cmd/stopWash", params, method: "POST" }); return httpRequest<BaseResponse>({ url: "/api/cmd/stopWash", params, method: "POST" });
} }
export function startPrefill(params: { speed: number }) {
export function startPrefill(params: { rotationSpeed: number }) {
return httpRequest<BaseResponse>({ url: "/api/cmd/startPrefill", params: { params }, method: "POST" }); return httpRequest<BaseResponse>({ url: "/api/cmd/startPrefill", params: { params }, method: "POST" });
} }
export function stopPrefill(params: Record<string, any>) { export function stopPrefill(params: Record<string, any>) {

2
src/views/PreSpray.vue

@ -218,7 +218,7 @@ function onStartPrefill() {
ElMessage.error("请输入预充速度"); ElMessage.error("请输入预充速度");
return; return;
} }
startPrefill({ speed: prefillSpeed.value }).then(res => {
startPrefill({ rotationSpeed: prefillSpeed.value }).then(res => {
if (res.success) { if (res.success) {
ElMessage.success("已经开始预充"); ElMessage.success("已经开始预充");
} else { } else {

Loading…
Cancel
Save