Iview requested an error solution after clearing the Date-picker component

< A Date Picker- V-Model = "sel.bpub_date" type = "dateRange" Placement = "bottom-End" placeholder = "select date" style = "width: 200px" > </ a Date-Picker >

 

As shown in the figure above, the Date-picker component v-model is bound to sel.bpud_date, and after resetting this.sel.bpud_date=”, the date condition is sent to search and the date format is incorrect. The reason is that the date parameter of the ajax request is not passed to the background, causing the background processing to report an error.

The solution is as follows:

 this.sel.bpub_date[0]='';
 this.sel.bpub_date[1]='';

It can be solved: the date parameter of the ajax request is not passed to the background.

Similar Posts:

Leave a Reply

Your email address will not be published. Required fields are marked *