Show last 180 days status
This commit is contained in:
parent
a0b29fbf0f
commit
95d490d049
|
@ -51,7 +51,7 @@ class PrinterController {
|
||||||
|
|
||||||
static async show(req: Request, res: Response) {
|
static async show(req: Request, res: Response) {
|
||||||
const { serialNumber } = req.params
|
const { serialNumber } = req.params
|
||||||
const { days = 60 } = req.query
|
const { days = 180 } = req.query
|
||||||
|
|
||||||
const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days))
|
const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days))
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ class PrinterStatusController {
|
||||||
static async status(req: Request, res: Response) {
|
static async status(req: Request, res: Response) {
|
||||||
const { printerId } = req.params
|
const { printerId } = req.params
|
||||||
|
|
||||||
const { days = 60 } = req.query
|
const { days = 180 } = req.query
|
||||||
|
|
||||||
const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days))
|
const gte = new Date(Date.now() - 1000 * 60 * 60 * 24 * Number(days))
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ const chartOptions = ref({
|
||||||
colors: ['#000000', '#00BCD4', '#E91E63', '#FDD835'],
|
colors: ['#000000', '#00BCD4', '#E91E63', '#FDD835'],
|
||||||
|
|
||||||
stroke: {
|
stroke: {
|
||||||
curve: 'stepline',
|
curve: 'smooth',
|
||||||
width: 4
|
width: 4
|
||||||
},
|
},
|
||||||
grid: {
|
grid: {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user