Browse Source

fix: 工艺空字段判断

master
guoapeng 1 month ago
parent
commit
7fe8cc1dff
  1. 7
      src/components/craft/AddCraft/index.vue

7
src/components/craft/AddCraft/index.vue

@ -87,15 +87,10 @@ const okHandle = async () => {
if (step.params.hours || step.params.minutes || step.params.seconds) {
step.params.second = (step.params.hours || 0) * 3600 + (step.params.minutes || 0) * 60 + (step.params.seconds || 0) || undefined
}
else {
step.params.second = undefined
}
console.log(step.params)
if (step.params.coolingHours || step.params.coolingMinutes || step.params.coolingSeconds) {
step.params.coolingSecond = (step.params.coolingHours || 0) * 3600 + (step.params.coolingMinutes || 0) * 60 + (step.params.coolingSeconds || 0) || undefined
}
else {
step.params.coolingSecond = undefined
}
}
step.params.description = `${index + 1}.`
switch (step.method) {

Loading…
Cancel
Save