This commit is contained in:
3321822538@qq.com 2024-04-15 18:36:14 +08:00
parent cb648020fe
commit 892b741346

View File

@ -1473,10 +1473,17 @@ export default {
this.form.regularWateringJsonObj.sprayTime = this.form.regularWateringJsonObj.sprayTime =
this.form.sprayTimeMin * 60 + this.form.sprayTimeSec; this.form.sprayTimeMin * 60 + this.form.sprayTimeSec;
// this.form.pulseModeParam = JSON.stringify(this.form.pulseModeParamObj); // this.form.pulseModeParam = JSON.stringify(this.form.pulseModeParamObj);
console.log(JSON.stringify(this.form.pulseModeParamObj.jg_sec)); // console.log(JSON.stringify(this.form.pulseModeParamObj.jg_sec));
this.form.pulseModeParamObj.jg_sec = this.convertSecondsToString(JSON.stringify(this.form.pulseModeParamObj.jg_sec)) if(JSON.stringify(this.form.pulseModeParamObj.sprayTime) && JSON.stringify(this.form.pulseModeParamObj.intervalTime)){
this.form.pulseModeParamObj.jg_sec = this.convertSecondsToString(JSON.stringify(this.form.pulseModeParamObj.sprayTime))
this.form.pulseModeParamObj.js_sec = this.convertSecondsToString(JSON.stringify(this.form.pulseModeParamObj.intervalTime))
this.form.pulseModeParam = JSON.stringify(this.form.pulseModeParamObj)
}else{
this.form.pulseModeParamObj.jg_sec = this.convertSecondsToString(JSON.stringify(this.form.pulseModeParamObj.jg_sec))
this.form.pulseModeParamObj.js_sec = this.convertSecondsToString(JSON.stringify(this.form.pulseModeParamObj.js_sec)) this.form.pulseModeParamObj.js_sec = this.convertSecondsToString(JSON.stringify(this.form.pulseModeParamObj.js_sec))
this.form.pulseModeParam = JSON.stringify(this.form.pulseModeParamObj) this.form.pulseModeParam = JSON.stringify(this.form.pulseModeParamObj)
}
this.form.regularWateringJson = JSON.stringify( this.form.regularWateringJson = JSON.stringify(
this.form.regularWateringJsonObj this.form.regularWateringJsonObj