|
@@ -26,11 +26,32 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
[
|
|
|
{checkbox: true},
|
|
|
{field: 'id', title: __('Id')},
|
|
|
- {field: 'topic_id', title: __('Topic_id')},
|
|
|
- {field: 'topichub.name', title: __('Topichub.name'), operate: 'LIKE'},
|
|
|
+// {field: 'topic_id', title: __('Topic_id')},
|
|
|
+// {field: 'topichub.name', title: __('Topichub.name'), operate: 'LIKE'},
|
|
|
{field: 'user_id', title: __('User_id')},
|
|
|
{field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
|
|
|
- {field: 'content', title: __('Content'), operate: 'LIKE'},
|
|
|
+ {field: 'content', title: __('Content'), operate: 'LIKE',
|
|
|
+ cellStyle: {css: {
|
|
|
+ "white-space": "break-spaces",
|
|
|
+ "max-width": "200px",
|
|
|
+ "min-width": "200px",
|
|
|
+ "word-break": "break-all",
|
|
|
+ "text-overflow": "inherit",
|
|
|
+ "overflow": "visible",
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ {field: 'images', title: __('Images'), operate: false,
|
|
|
+ cellStyle: {css: {
|
|
|
+ "white-space": "break-spaces",
|
|
|
+ "max-width": "150px",
|
|
|
+ "min-width": "150px",
|
|
|
+ "word-break": "break-all",
|
|
|
+ "text-overflow": "inherit",
|
|
|
+ "overflow": "visible",
|
|
|
+ }
|
|
|
+ },
|
|
|
+ events: Table.api.events.image, formatter: Table.api.formatter.images},
|
|
|
{field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"2":__('Type 2')}, formatter: Table.api.formatter.normal},
|
|
|
{field: 'goodnum', title: __('Goodnum')},
|
|
|
{field: 'answernum', title: __('Answernum')},
|
|
@@ -54,7 +75,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
return false;
|
|
|
}
|
|
|
},
|
|
|
- {
|
|
|
+ /*{
|
|
|
name:'good_list',
|
|
|
text:'点赞列表',
|
|
|
title:'点赞列表',
|
|
@@ -69,8 +90,9 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
|
|
|
}
|
|
|
return false;
|
|
|
}
|
|
|
- },
|
|
|
- ],}
|
|
|
+ },*/
|
|
|
+ ]
|
|
|
+ }
|
|
|
]
|
|
|
]
|
|
|
});
|