|
@@ -35,6 +35,27 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
{field: 'user.mobile', title: __('User.mobile'), operate: 'LIKE'},
|
|
|
{field: 'type', title: __('Type'), searchList: {"0":__('Type 0'),"1":__('Type 1'),"2":__('Type 2')}, formatter: Table.api.formatter.normal},
|
|
|
{field: 'content', title: __('Content'), operate: 'LIKE'},
|
|
|
+ {field: 'images', title: '图片或视频', operate: false,events: Table.api.events.image,formatter: function (value,row,index){
|
|
|
+ if (row.type == '0'){
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+ if (row.type == '1'){
|
|
|
+ return Table.api.formatter.images(value,row,index);
|
|
|
+ }
|
|
|
+ if (row.type == '2'){
|
|
|
+ return Table.api.formatter.video(value,row,index);
|
|
|
+ }
|
|
|
+ return value;
|
|
|
+ },
|
|
|
+ cellStyle: {css: {
|
|
|
+ "white-space": "break-spaces",
|
|
|
+ "max-width": "200px",
|
|
|
+ "min-width": "200px",
|
|
|
+ "line-height": "24px",
|
|
|
+ "text-align": "left !important"
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
{field: 'goodnum', title: __('Goodnum')},
|
|
|
{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},
|