|
@@ -7,8 +7,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
extend: {
|
|
|
index_url: 'imlogc2c/index' + location.search,
|
|
|
add_url: 'imlogc2c/add',
|
|
|
- edit_url: 'imlogc2c/edit',
|
|
|
- del_url: 'imlogc2c/del',
|
|
|
+// edit_url: 'imlogc2c/edit',
|
|
|
+// del_url: 'imlogc2c/del',
|
|
|
multi_url: 'imlogc2c/multi',
|
|
|
import_url: 'imlogc2c/import',
|
|
|
table: 'imlog_c2c',
|
|
@@ -28,15 +28,28 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'id', title: __('Id')},
|
|
|
{field: 'ClientIP', title: __('Clientip'), operate: 'LIKE'},
|
|
|
{field: 'From_Account', title: __('From_account')},
|
|
|
- {field: 'MsgBody', title: __('Msgbody')},
|
|
|
+ {field: 'fromuser.nickname', title: __('fromuser.nickname'), operate: 'LIKE'},
|
|
|
+// {field: 'MsgBody', title: __('Msgbody')},
|
|
|
{field: 'MsgFromPlatform', title: __('Msgfromplatform'), operate: 'LIKE'},
|
|
|
{field: 'MsgRandom', title: __('Msgrandom'), operate: 'LIKE'},
|
|
|
{field: 'MsgSeq', title: __('Msgseq'), operate: 'LIKE'},
|
|
|
{field: 'MsgTimestamp', title: __('Msgtimestamp'), operate: 'LIKE'},
|
|
|
{field: 'To_Account', title: __('To_account')},
|
|
|
- {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
- {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {field: 'touser.nickname', title: __('touser.nickname'), operate: 'LIKE'},
|
|
|
+ {field: 'operate', title: __('Operate'),
|
|
|
+ buttons:[
|
|
|
+ {
|
|
|
+ name:'showbody',
|
|
|
+ text:'消息体',
|
|
|
+ title:'消息体',
|
|
|
+ icon:'fa fa-exclamation-circle',
|
|
|
+ classname:'btn btn-xs btn-info btn-dialog',
|
|
|
+ url:'imlogc2c/showbody/id/{ids}?dialog=1',
|
|
|
+ target:'_self',
|
|
|
+ extend: 'data-area=["90%","90%"]'
|
|
|
+ },
|
|
|
+ ],
|
|
|
+ table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
]
|
|
|
]
|
|
|
});
|
|
@@ -50,6 +63,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
edit: function () {
|
|
|
Controller.api.bindevent();
|
|
|
},
|
|
|
+ showbody: function () {
|
|
|
+ Controller.api.bindevent();
|
|
|
+ },
|
|
|
api: {
|
|
|
bindevent: function () {
|
|
|
Form.api.bindevent($("form[role=form]"));
|