This commit is contained in:
parent
ee92ec42f7
commit
f4e0d04b64
|
@ -2,6 +2,5 @@ const Vue = require('vue');
|
|||
const strftime = require('strftime');
|
||||
|
||||
Vue.filter('date', function(value, specifiers) {
|
||||
console.log(value);
|
||||
return strftime(specifiers, value);
|
||||
});
|
||||
|
|
|
@ -6,9 +6,18 @@ const reportFooter = new Component('report-footer');
|
|||
module.exports = {
|
||||
name: 'campaign-metrics',
|
||||
async serverPrefetch() {
|
||||
// // te delete once form inputs get date ranges
|
||||
this.from = new Date();
|
||||
this.from.setMonth(0);
|
||||
this.from.setDate(1);
|
||||
this.to = new Date();
|
||||
this.to.setMonth(11);
|
||||
this.to.setDate(31);
|
||||
// this.clientId = 101;
|
||||
// // end of delete
|
||||
|
||||
this.client = await this.fetchClient(this.clientId);
|
||||
|
||||
console.log(this.from, this.to);
|
||||
this.sales = await this.fetchSales(this.clientId, this.from, this.to);
|
||||
|
||||
if (!this.client)
|
||||
|
|
Loading…
Reference in New Issue