Updated models
This commit is contained in:
parent
2a18f3d697
commit
b71537dc64
@ -6,8 +6,16 @@ export const AuditLog = {
|
|||||||
prefix: 'ADL',
|
prefix: 'ADL',
|
||||||
icon: AuditLogIcon,
|
icon: AuditLogIcon,
|
||||||
actions: [],
|
actions: [],
|
||||||
columns: ['_id', 'owner', 'owner._id', 'parent._id', 'changes', 'createdAt'],
|
columns: [
|
||||||
filters: ['_id', 'owner._id', 'parent._id'],
|
'_id',
|
||||||
|
'owner',
|
||||||
|
'owner._id',
|
||||||
|
'parent._id',
|
||||||
|
'operation',
|
||||||
|
'changes',
|
||||||
|
'createdAt'
|
||||||
|
],
|
||||||
|
filters: ['_id', 'owner._id', 'parent._id', 'operation'],
|
||||||
sorters: ['createdAt'],
|
sorters: ['createdAt'],
|
||||||
properties: [
|
properties: [
|
||||||
{
|
{
|
||||||
@ -75,6 +83,12 @@ export const AuditLog = {
|
|||||||
showHyperlink: true,
|
showHyperlink: true,
|
||||||
showCopy: true
|
showCopy: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: 'operation',
|
||||||
|
label: 'Operation',
|
||||||
|
columnWidth: 120,
|
||||||
|
type: 'operation'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
name: 'changes',
|
name: 'changes',
|
||||||
label: 'Changes',
|
label: 'Changes',
|
||||||
|
|||||||
@ -1,7 +1,6 @@
|
|||||||
import JobIcon from '../../components/Icons/JobIcon'
|
import JobIcon from '../../components/Icons/JobIcon'
|
||||||
import InfoCircleIcon from '../../components/Icons/InfoCircleIcon'
|
import InfoCircleIcon from '../../components/Icons/InfoCircleIcon'
|
||||||
import ReloadIcon from '../../components/Icons/ReloadIcon'
|
import ReloadIcon from '../../components/Icons/ReloadIcon'
|
||||||
import EditIcon from '../../components/Icons/EditIcon'
|
|
||||||
|
|
||||||
export const Job = {
|
export const Job = {
|
||||||
name: 'job',
|
name: 'job',
|
||||||
@ -22,13 +21,6 @@ export const Job = {
|
|||||||
label: 'Reload',
|
label: 'Reload',
|
||||||
icon: ReloadIcon,
|
icon: ReloadIcon,
|
||||||
url: (_id) => `/dashboard/production/jobs/info?jobId=${_id}&action=reload`
|
url: (_id) => `/dashboard/production/jobs/info?jobId=${_id}&action=reload`
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'edit',
|
|
||||||
label: 'Edit',
|
|
||||||
row: true,
|
|
||||||
icon: EditIcon,
|
|
||||||
url: (_id) => `/dashboard/production/jobs/info?jobId=${_id}&action=edit`
|
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
columns: [
|
columns: [
|
||||||
@ -68,7 +60,7 @@ export const Job = {
|
|||||||
type: 'object',
|
type: 'object',
|
||||||
columnFixed: 'left',
|
columnFixed: 'left',
|
||||||
objectType: 'gcodeFile',
|
objectType: 'gcodeFile',
|
||||||
readOnly: true
|
required: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'gcodeFile._id',
|
name: 'gcodeFile._id',
|
||||||
@ -98,9 +90,10 @@ export const Job = {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'printers',
|
name: 'printers',
|
||||||
label: 'Assigned Printers',
|
label: 'Printers',
|
||||||
type: 'number',
|
type: 'objectList',
|
||||||
readOnly: true
|
objectType: 'printer',
|
||||||
|
required: true
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@ -16,5 +16,58 @@ export const Note = {
|
|||||||
url: (_id) => `/dashboard/management/notes/info?noteId=${_id}`
|
url: (_id) => `/dashboard/management/notes/info?noteId=${_id}`
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
url: () => `#`
|
properties: [
|
||||||
|
{
|
||||||
|
name: '_id',
|
||||||
|
label: 'ID',
|
||||||
|
type: 'id',
|
||||||
|
objectType: 'note',
|
||||||
|
showCopy: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'createdAt',
|
||||||
|
label: 'Created At',
|
||||||
|
type: 'dateTime',
|
||||||
|
readOnly: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'noteType',
|
||||||
|
label: 'Note Type',
|
||||||
|
type: 'object',
|
||||||
|
objectType: 'noteType',
|
||||||
|
showHyperlink: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'parent._id',
|
||||||
|
label: 'Parent ID',
|
||||||
|
type: 'id',
|
||||||
|
objectType: (objectData) => {
|
||||||
|
return objectData.parentType
|
||||||
|
},
|
||||||
|
showHyperlink: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'noteType._id',
|
||||||
|
label: 'Note Type ID',
|
||||||
|
type: 'id',
|
||||||
|
objectType: 'noteType'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'user._id',
|
||||||
|
label: 'User ID',
|
||||||
|
type: 'id',
|
||||||
|
objectType: 'user'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'content',
|
||||||
|
label: 'Content',
|
||||||
|
type: 'markdown'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'updatedAt',
|
||||||
|
label: 'Updated At',
|
||||||
|
type: 'dateTime',
|
||||||
|
readOnly: true
|
||||||
|
}
|
||||||
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user