diff --git a/pages/home/control/automatic.vue b/pages/home/control/automatic.vue index c7ce711..3ca3ea3 100644 --- a/pages/home/control/automatic.vue +++ b/pages/home/control/automatic.vue @@ -524,9 +524,26 @@ export default { getAgriTerm() { getAgriTerm(this.imei).then(response => { if (response.code === 200) { - this.termList = response.data; } + if (this.termList && this.termList.length>0) { + return; + } + this.termList = []; + for (const [index,value] of this.filmRollerList.entries()) { + this.termList.push({ + terms: [], + config: { + refTemp: '请选择', + refTempCode: null, + autoTotalLen: null, + manualTotalLen: null, + reservedLen: null, + roller: `jm${index+1}`, + imei: this.value + } + }) + } }).catch(err => { }).finally(() => { @@ -946,7 +963,7 @@ export default { } else { uni.showModal({ title: '操作提示:', - content: '', + content: '确定保存自动化条件?', cancelText: '取消', confirmText: '确定', success: (res) => {