|
@@ -30,7 +30,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
{field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
{field: 'actname', title: __('Actname'), operate: 'LIKE'},
|
|
|
- {field: 'videofile', title: __('Videofile'), operate: false},
|
|
|
+ {field: 'videofile', title: __('Videofile'), operate: false,formatter: function(val, row) {
|
|
|
+ if(val) {
|
|
|
+ return '<video width="120" height="90" preload="none" controls>'+
|
|
|
+ '<source src="'+val+'" type="video/ogg">'+
|
|
|
+ '</video>';
|
|
|
+ } else {
|
|
|
+ return '暂无';
|
|
|
+ }
|
|
|
+
|
|
|
+ }},
|
|
|
{field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1'),"2":__('Status 2')}, formatter: Table.api.formatter.status},
|
|
|
{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},
|