2020-12-07 09:14:30 +00:00
|
|
|
const asArray = function(arr) {
|
|
|
|
return Array.isArray(arr) ? arr : arr.toArray();
|
|
|
|
};
|
|
|
|
export default {
|
2020-12-18 10:38:15 +00:00
|
|
|
Name: (item, value) => item.Name,
|
|
|
|
Node: (item, value) => item.Node,
|
|
|
|
Service: (item, value) => item.ServiceName,
|
|
|
|
CheckID: (item, value) => item.CheckID || '',
|
|
|
|
ID: (item, value) => item.Service.ID || '',
|
|
|
|
Notes: (item, value) => item.Notes,
|
|
|
|
Output: (item, value) => item.Output,
|
|
|
|
ServiceTags: (item, value) => asArray(item.ServiceTags || []),
|
2020-12-07 09:14:30 +00:00
|
|
|
};
|