Browse Source

command

master
maochaoying 2 years ago
parent
commit
06d14b11ba
  1. 50
      src/mock/command.js

50
src/mock/command.js

@ -247,3 +247,53 @@ export const getAllFormulaJSON = {
command: 'getAllFormula',
messageId: 'getAllFormula',
}
// 更新配方字段
export const updateFormulaJSON = (column, val, id) => {
return {
command: 'updateFormula',
messageId: 'updateFormula',
column,
val,
id,
}
}
// 删除配方
export const delFormulaJSON = id => {
return {
command: 'delFormula',
messageId: 'delFormula',
id,
}
}
// 添加配方 是不是少了log
export const addFormulaJSON = (
formula_id,
stoped_gs,
continued_gs,
stoped_satur,
continued_satur,
stoped_humi,
continued_humi,
injection_pump_speed,
) => {
return {
command: 'addFormula',
messageId: 'addFormula',
formula_id,
stoped_gs,
continued_gs,
stoped_satur,
continued_satur,
stoped_humi,
continued_humi,
injection_pump_speed,
}
}
// 执行配方
export const startFormulaJSON = id => {
return { command: 'startFormula', messageId: 'startFormula', id }
}
Loading…
Cancel
Save