jiminglei 2 years ago
parent cfcd92533a
commit 3da9c076ed
  1. 76
      psdc-ui/src/views/system/cl/index.vue

@ -397,9 +397,9 @@ function submitForm() {
// for(let i in deviceInfo.controlKey){ // for(let i in deviceInfo.controlKey){
// deviceInfo.controlKey[i].value='' // deviceInfo.controlKey[i].value=''
// } // }
deviceInfo.controlKey.map(item => { // deviceInfo.controlKey.map(item => {
item.value = ''; // item.value = '';
}); // });
}); });
console.log(timingForm) console.log(timingForm)
postNew(timingForm).then((res)=>{ postNew(timingForm).then((res)=>{
@ -431,9 +431,9 @@ function cancel() {
tempItem.tempList = deviceInfo.controlKey; tempItem.tempList = deviceInfo.controlKey;
} }
tempCheckedSblb.push(tempItem); tempCheckedSblb.push(tempItem);
deviceInfo.controlKey.map(item => { // deviceInfo.controlKey.map(item => {
item.value = ''; // item.value = '';
}); // });
}); });
timingForm.sceneName='', timingForm.sceneName='',
timingForm.sceneRemark='', timingForm.sceneRemark='',
@ -495,22 +495,22 @@ function submitForm1() {
timingForm1.sceneRemark='' timingForm1.sceneRemark=''
timingForm1.sceneCode='' timingForm1.sceneCode=''
timingForm1.deviceVos=[] timingForm1.deviceVos=[]
data.sblb.map(item => { // data.sblb.map(item => {
item.controlKey.map(temp => { // item.controlKey.map(temp => {
temp.value = ''; // temp.value = '';
}); // });
}); // });
getTb({ // getTb({
"sceneCode": data.sceneCode, // "sceneCode": data.sceneCode,
//
"pageNum": currentPage.value, // "pageNum": currentPage.value,
//
"pageSize": pageSize.value // "pageSize": pageSize.value
}).then((res)=>{ // }).then((res)=>{
console.log(res) // console.log(res)
data.timingList=res.rows // data.timingList=res.rows
data.total=res.total // data.total=res.total
}) // })
// for(let i in data.sblb) { // for(let i in data.sblb) {
// data.sblb[i].temp = '' // data.sblb[i].temp = ''
// data.sblb[i].intemp = '' // data.sblb[i].intemp = ''
@ -523,22 +523,22 @@ function cancel1() {
timingForm1.sceneRemark='' timingForm1.sceneRemark=''
timingForm1.sceneCode='' timingForm1.sceneCode=''
timingForm1.deviceVos=[] timingForm1.deviceVos=[]
data.sblb.map(item => { // data.sblb.map(item => {
item.controlKey.map(temp => { // item.controlKey.map(temp => {
temp.value = ''; // temp.value = '';
}); // });
}); // });
getTb({ // getTb({
"sceneCode": data.sceneCode, // "sceneCode": data.sceneCode,
//
"pageNum": currentPage.value, // "pageNum": currentPage.value,
//
"pageSize": pageSize.value // "pageSize": pageSize.value
}).then((res)=>{ // }).then((res)=>{
console.log(res) // console.log(res)
data.timingList=res.rows // data.timingList=res.rows
data.total=res.total // data.total=res.total
}) // })
// data.sblb.map(item => { // data.sblb.map(item => {
// item.controlKey.map(temp => { // item.controlKey.map(temp => {
// temp.value = ''; // temp.value = '';

Loading…
Cancel
Save