Lines 94-100
export default {
Link Here
|
94 |
this.params, |
94 |
this.params, |
95 |
this.data_type |
95 |
this.data_type |
96 |
), |
96 |
), |
97 |
options: { embed: this.embed }, |
97 |
options: { |
|
|
98 |
embed: this.embed, |
99 |
dom: '<"top pager"<"table_entries"ilp>>tr<"bottom pager"ip>', |
100 |
}, |
98 |
url: () => this.tableURL(this.year, this.params), |
101 |
url: () => this.tableURL(this.year, this.params), |
99 |
table_settings: this.report_type.includes("monthly") |
102 |
table_settings: this.report_type.includes("monthly") |
100 |
? this.monthly_usage_table_settings |
103 |
? this.monthly_usage_table_settings |
Lines 130-137
export default {
Link Here
|
130 |
data_type.charAt(0).toUpperCase() + data_type.slice(1) |
133 |
data_type.charAt(0).toUpperCase() + data_type.slice(1) |
131 |
), |
134 |
), |
132 |
data: data_type, |
135 |
data: data_type, |
133 |
searchable: true, |
136 |
searchable: false, |
134 |
orderable: true, |
137 |
orderable: false, |
135 |
}) |
138 |
}) |
136 |
|
139 |
|
137 |
// Add metric type to each row |
140 |
// Add metric type to each row |
Lines 141-148
export default {
Link Here
|
141 |
column_set.push({ |
144 |
column_set.push({ |
142 |
title: __("YOP"), |
145 |
title: __("YOP"), |
143 |
data: "yop", |
146 |
data: "yop", |
144 |
searchable: true, |
147 |
searchable: false, |
145 |
orderable: true, |
148 |
orderable: false, |
146 |
}) |
149 |
}) |
147 |
} |
150 |
} |
148 |
// Add access type if it is required |
151 |
// Add access type if it is required |
Lines 150-166
export default {
Link Here
|
150 |
column_set.push({ |
153 |
column_set.push({ |
151 |
title: __("Access type"), |
154 |
title: __("Access type"), |
152 |
data: "access_type", |
155 |
data: "access_type", |
153 |
searchable: true, |
156 |
searchable: false, |
154 |
orderable: true, |
157 |
orderable: false, |
155 |
}) |
158 |
}) |
156 |
} |
159 |
} |
157 |
column_set.push({ |
160 |
column_set.push({ |
158 |
title: __("Metric"), |
161 |
title: __("Metric"), |
|
|
162 |
data: "metric_type", |
159 |
render: function (data, type, row, meta) { |
163 |
render: function (data, type, row, meta) { |
160 |
return row.metric_type |
164 |
return row.metric_type |
161 |
}, |
165 |
}, |
162 |
searchable: true, |
166 |
searchable: false, |
163 |
orderable: true, |
167 |
orderable: false, |
164 |
}) |
168 |
}) |
165 |
} |
169 |
} |
166 |
|
170 |
|
Lines 168-181
export default {
Link Here
|
168 |
column_set.unshift({ |
172 |
column_set.unshift({ |
169 |
title: __("Data provider"), |
173 |
title: __("Data provider"), |
170 |
data: "name", |
174 |
data: "name", |
171 |
searchable: true, |
175 |
searchable: false, |
172 |
orderable: true, |
176 |
orderable: false, |
173 |
}) |
177 |
}) |
174 |
column_set.push({ |
178 |
column_set.push({ |
175 |
title: __("Period total"), |
179 |
title: __("Period total"), |
176 |
data: "provider_rollup_total", |
180 |
data: "provider_rollup_total", |
177 |
searchable: true, |
181 |
searchable: false, |
178 |
orderable: true, |
182 |
orderable: false, |
179 |
}) |
183 |
}) |
180 |
return column_set |
184 |
return column_set |
181 |
} |
185 |
} |
Lines 196-203
export default {
Link Here
|
196 |
: "-" |
200 |
: "-" |
197 |
return usage |
201 |
return usage |
198 |
}, |
202 |
}, |
199 |
searchable: true, |
203 |
searchable: false, |
200 |
orderable: true, |
204 |
orderable: false, |
201 |
}) |
205 |
}) |
202 |
}) |
206 |
}) |
203 |
} else { |
207 |
} else { |
Lines 232-239
export default {
Link Here
|
232 |
: "-" |
236 |
: "-" |
233 |
return usage |
237 |
return usage |
234 |
}, |
238 |
}, |
235 |
searchable: true, |
239 |
searchable: false, |
236 |
orderable: true, |
240 |
orderable: false, |
237 |
}) |
241 |
}) |
238 |
} |
242 |
} |
239 |
}) |
243 |
}) |
Lines 255-262
export default {
Link Here
|
255 |
: "-" |
259 |
: "-" |
256 |
return usage |
260 |
return usage |
257 |
}, |
261 |
}, |
258 |
searchable: true, |
262 |
searchable: false, |
259 |
orderable: true, |
263 |
orderable: false, |
260 |
}) |
264 |
}) |
261 |
}) |
265 |
}) |
262 |
} |
266 |
} |
Lines 268-275
export default {
Link Here
|
268 |
column_set.push({ |
272 |
column_set.push({ |
269 |
title: __("YOP"), |
273 |
title: __("YOP"), |
270 |
data: "yop", |
274 |
data: "yop", |
271 |
searchable: true, |
275 |
searchable: false, |
272 |
orderable: true, |
276 |
orderable: false, |
273 |
}) |
277 |
}) |
274 |
} |
278 |
} |
275 |
metric_types.forEach(metric => { |
279 |
metric_types.forEach(metric => { |
Lines 331-338
export default {
Link Here
|
331 |
column_set.push({ |
335 |
column_set.push({ |
332 |
title: __("Period total"), |
336 |
title: __("Period total"), |
333 |
data: "usage_total", |
337 |
data: "usage_total", |
334 |
searchable: true, |
338 |
searchable: false, |
335 |
orderable: true, |
339 |
orderable: false, |
336 |
}) |
340 |
}) |
337 |
} |
341 |
} |
338 |
return column_set |
342 |
return column_set |