lizhen_gitee 1 yıl önce
ebeveyn
işleme
e7525d46cd

+ 28 - 6
public/assets/js/backend/topicdongtai.js

@@ -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;
                                     }
-                                },
-                            ],}
+                                },*/
+                            ]
+                        }
                     ]
                 ]
             });

+ 2 - 2
public/assets/js/backend/topicdongtaianswer.js

@@ -31,8 +31,8 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'user_id', title: __('User_id')},
                         {field: 'user.nickname', title: __('User.nickname'), operate: 'LIKE'},
                         {field: 'content', title: __('Content'), operate: 'LIKE'},
-                        {field: 'to_user_id', title: __('To_user_id')},
-                        {field: 'touser.nickname', title: __('User.to_nickname'), operate: 'LIKE'},
+//                        {field: 'to_user_id', title: __('To_user_id')},
+//                        {field: 'touser.nickname', title: __('User.to_nickname'), operate: 'LIKE'},
                         {field: 'goodnum', title: __('Goodnum')},
                         {field: 'level', title: __('Level'), searchList: {"1":__('Level 1'),"2":__('Level 2')}, formatter: Table.api.formatter.normal},
                         {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},