mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-25 07:23:59 +00:00
Merge branch 'dillon/34.4-jenkins-vapor' into vapor/development
This commit is contained in:
@@ -111,11 +111,16 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
submitSearch(){
|
||||
if(!this.validate()){ return; }
|
||||
if(window.LARAVEL_VAPOR_ENABLED){
|
||||
this.submit(this.route('documents.download')+'?type='+this.parameters.type+'&startDate='+this.parameters.startDate+'&endDate='+this.parameters.endDate+'&supplier='+this.parameters.supplier, 'get', this.section, false, false);
|
||||
let type = this.parameters.type;
|
||||
let startDate = this.parameters.startDate;
|
||||
let endDate = this.parameters.endDate;
|
||||
let supplier = this.parameters.supplier;
|
||||
this.parameters = null;
|
||||
this.submit(this.route('documents.download')+'?type='+type+'&startDate='+startDate+'&endDate='+endDate+'&supplier='+supplier, 'get', this.section, false, false);
|
||||
}
|
||||
else{
|
||||
if(!this.validate()){ return; }
|
||||
window.open(route('documents.download')+'?type='+this.parameters.type+'&startDate='+this.parameters.startDate+'&endDate='+this.parameters.endDate+'&supplier='+this.parameters.supplier, '_blank');
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user