diff --git a/psdc-ui/src/views/system/cl/index.vue b/psdc-ui/src/views/system/cl/index.vue index 8957e08..63ed462 100644 --- a/psdc-ui/src/views/system/cl/index.vue +++ b/psdc-ui/src/views/system/cl/index.vue @@ -394,9 +394,12 @@ function submitForm() { } tempCheckedSblb.push(tempItem); timingForm.deviceVos=tempCheckedSblb - for(let i in deviceInfo.controlKey){ - deviceInfo.controlKey[i].value='' - } + // for(let i in deviceInfo.controlKey){ + // deviceInfo.controlKey[i].value='' + // } + deviceInfo.controlKey.map(item => { + item.value = ''; + }); }); console.log(timingForm) postNew(timingForm).then((res)=>{ @@ -428,9 +431,9 @@ function cancel() { tempItem.tempList = deviceInfo.controlKey; } tempCheckedSblb.push(tempItem); - // deviceInfo.intemp='' - // deviceInfo.outtemp='' - // deviceInfo.temp='' + deviceInfo.controlKey.map(item => { + item.value = ''; + }); }); timingForm.sceneName='', timingForm.sceneRemark='', @@ -444,7 +447,7 @@ function cancel() { function handleXg(dat) { open1.value = true; title1.value = "修改策略"; - console.log(dat) + console.log('101111',dat) var arr = [] for(let i in dat.deviceVos){ arr.push(dat.deviceVos[i].deviceId) @@ -492,6 +495,22 @@ function submitForm1() { timingForm1.sceneRemark='' timingForm1.sceneCode='' timingForm1.deviceVos=[] + data.sblb.map(item => { + item.controlKey.map(temp => { + temp.value = ''; + }); + }); + getTb({ + "sceneCode": data.sceneCode, + + "pageNum": currentPage.value, + + "pageSize": pageSize.value + }).then((res)=>{ + console.log(res) + data.timingList=res.rows + data.total=res.total + }) // for(let i in data.sblb) { // data.sblb[i].temp = '' // data.sblb[i].intemp = '' @@ -504,11 +523,27 @@ function cancel1() { timingForm1.sceneRemark='' timingForm1.sceneCode='' timingForm1.deviceVos=[] -for(let i=0 ;i { + item.controlKey.map(temp => { + temp.value = ''; + }); + }); + getTb({ + "sceneCode": data.sceneCode, + + "pageNum": currentPage.value, + + "pageSize": pageSize.value + }).then((res)=>{ + console.log(res) + data.timingList=res.rows + data.total=res.total + }) + // data.sblb.map(item => { + // item.controlKey.map(temp => { + // temp.value = ''; + // }); + // }); };