| | |
| | | const data = JSON.stringify(this.options); |
| | | this.initOptions = JSON.parse(data); |
| | | //console.log(this.initOptions); |
| | | //console.log(this.initOptions); |
| | | if(this.initOptions.length > 0){ |
| | | this.initOptions.forEach((item,index) => { |
| | | if(item.fieldType==='combox') { |
| | | let enumCach = JSON.parse(localStorage.getItem(item.comboxKey)); |
| | |
| | | } |
| | | this.searchFormArrays.push(add) |
| | | }); |
| | | } |
| | | //console.log(this.initOptions); |
| | | //console.log(this.searchFormArrays); |
| | | } |
| | |
| | | resetInput(){ |
| | | const data = JSON.stringify(this.options); |
| | | this.initOptions = JSON.parse(data); |
| | | if(this.initOptions.length > 0){ |
| | | let array = []; |
| | | this.initOptions.forEach((item,index) => { |
| | | let add = { |
| | |
| | | array.push(add) |
| | | }); |
| | | this.searchFormArrays = array; |
| | | } |
| | | //console.log(this.initOptions); |
| | | //console.log(this.searchFormArrays); |
| | | }, |