diff --git a/pages/home/control/automatic.vue b/pages/home/control/automatic.vue index 33a0c84..54eb6a4 100644 --- a/pages/home/control/automatic.vue +++ b/pages/home/control/automatic.vue @@ -823,6 +823,11 @@ export default { // this.termList[index]['config']= { ...config }; this.termList[index]['terms'] = JSON.parse(JSON.stringify(temps)); this.termList[index]['config']= JSON.parse(JSON.stringify(config)); + var terms = this.termList[index]['terms']; + terms.map(item => { + item.id = generateUniqueId(); + item.roller = `jm${index+1}`; + }) this.termList[index]['config'].roller = `jm${index+1}` } } @@ -929,7 +934,6 @@ export default { * @param index 条件 */ openSlider(tag, index) { - console.info(tag,index) var fillerTerm = this.termList[this.current]['terms'][index]; if (tag === 'temp') { this.slider = { @@ -1039,7 +1043,9 @@ export default { const rollerParam = termMap[index]['config']; // 参数设置 const filmRoller = this.filmRollerList[index]; if (!rollerParam) { - this.$tn.message.toast('参数设置失败,请下拉刷新后重试!') + this.$tn.message.toast( + '参数设置失败,请下拉刷新后重试!', + false, null, 'none', 3000) return; } else if (rule.validate(rollerParam, term)) { rollerList.push(filmRoller); diff --git a/pages/home/control/index.vue b/pages/home/control/index.vue index 05e59ce..b0be9f5 100644 --- a/pages/home/control/index.vue +++ b/pages/home/control/index.vue @@ -470,6 +470,7 @@ export default { var arr = ['jbk', "jbg", "jm1k", "jm1g", "jm2k", "jm2g", "jm3k", "jm3g","jlk","jlg"] const allKeysNumeric = Object.keys(msgData).some(key => arr.includes(key)); if (allKeysNumeric) { + //todo // this.status = {...msgData} Object.keys(msgData).forEach(key => { const value = msgData[key];