Enhance Job and SubJob models with additional properties and filters
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
All checks were successful
farmcontrol/farmcontrol-ui/pipeline/head This commit looks good
- Updated Job model to include 'startedAt' and 'finishedAt' in columns and filters, improving data tracking. - Modified SubJob model to replace specific job and printer IDs with their respective objects in filters, and added 'startedAt' and 'finishedAt' to filters and sorters for better data management.
This commit is contained in:
parent
0e238f9455
commit
30e7aa2cf9
@ -102,17 +102,36 @@ export const Job = {
|
|||||||
content: () => createElement(JobInfo)
|
content: () => createElement(JobInfo)
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
columns: ['_reference', 'quantity', 'state', 'gcodeFile', 'createdAt'],
|
columns: [
|
||||||
|
'_reference',
|
||||||
|
'quantity',
|
||||||
|
'state',
|
||||||
|
'gcodeFile',
|
||||||
|
'startedAt',
|
||||||
|
'finishedAt',
|
||||||
|
'createdAt',
|
||||||
|
'updatedAt'
|
||||||
|
],
|
||||||
filters: [
|
filters: [
|
||||||
'state',
|
'state',
|
||||||
'gcodeFile._id',
|
'gcodeFile',
|
||||||
'quantity',
|
'quantity',
|
||||||
'_id',
|
'_id',
|
||||||
'_reference',
|
'_reference',
|
||||||
'createdAt',
|
'createdAt',
|
||||||
'updatedAt'
|
'updatedAt',
|
||||||
|
'startedAt',
|
||||||
|
'finishedAt'
|
||||||
|
],
|
||||||
|
sorters: [
|
||||||
|
'createdAt',
|
||||||
|
'state',
|
||||||
|
'quantity',
|
||||||
|
'gcodeFile',
|
||||||
|
'updatedAt',
|
||||||
|
'startedAt',
|
||||||
|
'finishedAt'
|
||||||
],
|
],
|
||||||
sorters: ['createdAt', 'state', 'quantity', 'gcodeFile', 'updatedAt'],
|
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
name: '_id',
|
name: '_id',
|
||||||
|
|||||||
@ -54,14 +54,24 @@ export const SubJob = {
|
|||||||
],
|
],
|
||||||
filters: [
|
filters: [
|
||||||
'_id',
|
'_id',
|
||||||
'job._id',
|
'job',
|
||||||
'printer._id',
|
'printer',
|
||||||
'_reference',
|
'_reference',
|
||||||
'state',
|
'state',
|
||||||
'createdAt',
|
'createdAt',
|
||||||
'updatedAt'
|
'updatedAt',
|
||||||
|
'startedAt',
|
||||||
|
'finishedAt'
|
||||||
|
],
|
||||||
|
sorters: [
|
||||||
|
'createdAt',
|
||||||
|
'state',
|
||||||
|
'updatedAt',
|
||||||
|
'startedAt',
|
||||||
|
'finishedAt',
|
||||||
|
'job',
|
||||||
|
'printer'
|
||||||
],
|
],
|
||||||
sorters: ['createdAt', 'state', 'updatedAt'],
|
|
||||||
group: ['job'],
|
group: ['job'],
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user