|
@@ -33,7 +33,24 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'sort', title: __('Sort'), operate: 'LIKE', table: table, class: 'autocontent', formatter: Table.api.formatter.content},
|
|
|
{field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
{field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
|
|
|
- {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
|
|
|
+ {
|
|
|
+ field: 'operate',
|
|
|
+ title: __('Operate'),
|
|
|
+ table: table,
|
|
|
+ events: Table.api.events.operate,
|
|
|
+ formatter: Table.api.formatter.operate,
|
|
|
+ buttons: [{
|
|
|
+ name: 'detail',
|
|
|
+ title: __('文件列表'),
|
|
|
+ classname: 'btn btn-xs btn-primary btn-dialog',
|
|
|
+ icon: 'fa fa-list',
|
|
|
+ url: 'video.video_file/index?video_id={id}',
|
|
|
+ extend: 'data-area=\'["75%","75%"]\'',
|
|
|
+ callback: function (data) {
|
|
|
+ Layer.alert("接收到回传数据:" + JSON.stringify(data), {title: "回传数据"});
|
|
|
+ }
|
|
|
+ },],
|
|
|
+ }
|
|
|
]
|
|
|
]
|
|
|
});
|