aboutsummaryrefslogtreecommitdiff
path: root/web/app/view
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-11-18 18:33:58 +0500
committerAbyss777 <abyss@fox5.ru>2016-11-18 18:33:58 +0500
commit11826f4b3eac08ad4f52d8c3e6af2b8a0156daee (patch)
treead2e4689aa9d9e652addda75e8f658873b1a3c19 /web/app/view
parenta252dbe43512c75afd4a17075b834f767576fd28 (diff)
downloadetbsa-traccar-web-11826f4b3eac08ad4f52d8c3e6af2b8a0156daee.tar.gz
etbsa-traccar-web-11826f4b3eac08ad4f52d8c3e6af2b8a0156daee.tar.bz2
etbsa-traccar-web-11826f4b3eac08ad4f52d8c3e6af2b8a0156daee.zip
Add Device Name column to Route report
Diffstat (limited to 'web/app/view')
-rw-r--r--web/app/view/ReportController.js16
1 files changed, 7 insertions, 9 deletions
diff --git a/web/app/view/ReportController.js b/web/app/view/ReportController.js
index a8c5f4e..85cdb68 100644
--- a/web/app/view/ReportController.js
+++ b/web/app/view/ReportController.js
@@ -225,6 +225,10 @@ Ext.define('Traccar.view.ReportController', {
},
routeColumns: [{
+ text: Strings.reportDeviceName,
+ dataIndex: 'deviceId',
+ renderer: Traccar.AttributeFormatter.getFormatter('deviceName')
+ }, {
text: Strings.positionValid,
dataIndex: 'valid',
renderer: Traccar.AttributeFormatter.getFormatter('valid')
@@ -263,9 +267,7 @@ Ext.define('Traccar.view.ReportController', {
}, {
text: Strings.reportDeviceName,
dataIndex: 'deviceId',
- renderer: function (value) {
- return Ext.getStore('Devices').findRecord('id', value).get('name');
- }
+ renderer: Traccar.AttributeFormatter.getFormatter('deviceName')
}, {
text: Strings.sharedType,
dataIndex: 'type',
@@ -286,9 +288,7 @@ Ext.define('Traccar.view.ReportController', {
summaryColumns: [{
text: Strings.reportDeviceName,
dataIndex: 'deviceId',
- renderer: function (value) {
- return Ext.getStore('Devices').findRecord('id', value).get('name');
- }
+ renderer: Traccar.AttributeFormatter.getFormatter('deviceName')
}, {
text: Strings.sharedDistance,
dataIndex: 'distance',
@@ -310,9 +310,7 @@ Ext.define('Traccar.view.ReportController', {
tripsColumns: [{
text: Strings.reportDeviceName,
dataIndex: 'deviceId',
- renderer: function (value) {
- return Ext.getStore('Devices').findRecord('id', value).get('name');
- }
+ renderer: Traccar.AttributeFormatter.getFormatter('deviceName')
}, {
text: Strings.reportStartTime,
dataIndex: 'startTime',