|
@ -247,3 +247,53 @@ export const getAllFormulaJSON = { |
|
|
command: 'getAllFormula', |
|
|
command: 'getAllFormula', |
|
|
messageId: '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 } |
|
|
|
|
|
} |