|
@@ -26,9 +26,34 @@ define(function (require) {
|
|
$grid = $(this);
|
|
$grid = $(this);
|
|
queryGrid1();
|
|
queryGrid1();
|
|
},
|
|
},
|
|
|
|
+ toolbar: {
|
|
|
|
+ xtype: 'toolbar',
|
|
|
|
+ title: '历史上报',
|
|
|
|
+ items: [
|
|
|
|
+ {
|
|
|
|
+ text: '出行轨迹', iconCls: 'fa fa-search', onClick: function () {
|
|
|
|
+ var row = $grid.rowData();
|
|
|
|
+ if ( row == null || row == undefined || row.userId == null || row.userId == "") {
|
|
|
|
+ $.yvan.msg('请选择数据');
|
|
|
|
+ return
|
|
|
|
+ }
|
|
|
|
+ const reportDate = $.fn.fmatter.tsymd(row.reportDate);
|
|
|
|
+ $.yvan.showDialog(this,
|
|
|
|
+ require('/app/whepi/lingyun/dialogDetailLog.js')({
|
|
|
|
+ userId: row.userId,
|
|
|
|
+ linkman: context.linkman,
|
|
|
|
+ reportDate: reportDate,
|
|
|
|
+ confirm: function () {
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ );
|
|
|
|
+ }
|
|
|
|
+ },
|
|
|
|
+ ]
|
|
|
|
+ },
|
|
xtype: 'grid',
|
|
xtype: 'grid',
|
|
- idField: "userId",
|
|
|
|
- pagination: false,
|
|
|
|
|
|
+ idField: "reportDate",
|
|
|
|
+ pagination: true,
|
|
columns: [[
|
|
columns: [[
|
|
{field: 'reportDate', title: '上报时间', align: 'left', formatter: 'tsymd'},
|
|
{field: 'reportDate', title: '上报时间', align: 'left', formatter: 'tsymd'},
|
|
{field: 'userId', title: '用户ID', hidden: true},
|
|
{field: 'userId', title: '用户ID', hidden: true},
|
|
@@ -112,11 +137,11 @@ define(function (require) {
|
|
buttons: [
|
|
buttons: [
|
|
{
|
|
{
|
|
text: "关闭", iconCls: "fa fa-times", onClick: function () {
|
|
text: "关闭", iconCls: "fa fa-times", onClick: function () {
|
|
- $dlg.dialog('close');
|
|
|
|
|
|
+ // $dlg.dialog('close');
|
|
|
|
+ $dlg.window('close');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
]
|
|
- }
|
|
|
|
- ;
|
|
|
|
|
|
+ };
|
|
};
|
|
};
|
|
});
|
|
});
|