From 75d8b0ad39a7eb04f72ef8654dbb895322f07cfd Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Tue, 21 Oct 2025 13:41:42 +0800
Subject: [PATCH] feat(ai): 新增会员答题分页及详情查询功能 - 在 AiMemberAnswerMapper 中新增 getAnswerPage 方法及对应 XML 查询语句 - 新增 ApiMemberAnswerPageDto 和 ApiMemberAnswerPageVo 用于分页查询参数和返回结果 - 在 AiMemberAnswerService 及其实现类中添加 getAnswerPage 方法 - 在 AiMemberService 及其实现类中新增 answerPage 和 answerInfo 接口实现 - 新增 ApiMemberAnswerInfoDto 和 ApiMemberAnswerInfoVo 用于答题详情接口参数和响应 - 在 ApiMemberController 中增加 /answerPage 和 /answerInfo两个 POST 接口 - 优化 AiMemberTeamPracticeVo,增加 memberUuid 字段 - 统一导入包路径,简化代码结构

---
 src/main/resources/templates/febs/views/modules/clothesType/socialList.html |   50 ++++++++++++++++++++++++++++++++++++++++----------
 1 files changed, 40 insertions(+), 10 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/clothesType/socialList.html b/src/main/resources/templates/febs/views/modules/clothesType/socialList.html
index a7f124b..49bfefc 100644
--- a/src/main/resources/templates/febs/views/modules/clothesType/socialList.html
+++ b/src/main/resources/templates/febs/views/modules/clothesType/socialList.html
@@ -44,6 +44,23 @@
                         </div>
                     </form>
                     <table lay-filter="scTable" lay-data="{id: 'scTable'}"></table>
+                    <style type="text/css">
+                        .layui-table cell{
+                            text-align:center;
+                            height: auto;
+                            white-space: nowrap; /*文本不会换行,在同一行显示*/
+                            overflow: hidden; /*超出隐藏*/
+                            text-overflow: ellipsis; /*省略号显示*/
+                        }
+                        .layui-table img{
+                            max-width:100px
+                        }
+
+                        ::-webkit-scrollbar {
+                            height: 20px !important;
+                            background-color: #f4f4f4;
+                        }
+                    </style>
                 </div>
             </div>
         </div>
@@ -255,16 +272,29 @@
                 url: ctx + 'admin/clothesType/socialList',
                 toolbar:"#scToolbar",
                 defaultToolbar:[],
-                cols: [[
-                    {type: 'numbers', title: '', width: 80},
-                    {title: '操作', toolbar: '#activityOption', minWidth: 400, align: 'center'},
-                    {field: 'name', title: '发布人', minWidth: 150,align:'left'},
-                    {field: 'socialTitle', title: '标题', minWidth: 150,align:'left'},
-                    {field: 'commentState', title: '允许评论', templet: '#commentStateSwitch', minWidth: 130,align:'center'},
-                    {field: 'socialState', title: '状态', templet: '#scStateSwitch', minWidth: 130,align:'center'},
-                    {field: 'hotState', title: '显示首页', templet: '#scHotStateSwitch', minWidth: 130,align:'center'},
-                    {templet:"#socialDelFlagFormat",  title: '是否删除', minWidth: 140,align:'left'},
-                ]]
+                cols:
+                    [
+                        [
+                            {type: 'numbers', title: '序号', rowspan: 2, width: 80},
+                            {title: '操作', toolbar: '#activityOption', minWidth: 400, rowspan: 2,align: 'center'},
+                            {field: 'name', title: '发布人', minWidth: 150,rowspan: 2,align:'center'},
+                            {field: 'categoryName', title: '分类', minWidth: 150,rowspan: 2,align:'center'},
+                            {field: 'socialTitle', title: '标题', minWidth: 150,rowspan: 2,align:'center'},
+                            {align: 'center', title: '点赞', colspan: 2},
+                            {align: 'center', title: '收藏', colspan: 2},
+                            {field: 'commentState', title: '允许评论', templet: '#commentStateSwitch', minWidth: 130,rowspan: 2,align:'center'},
+                            {field: 'socialState', title: '状态', templet: '#scStateSwitch', minWidth: 130,rowspan: 2,align:'center'},
+                            {field: 'hotState', title: '显示首页', templet: '#scHotStateSwitch', minWidth: 130,rowspan: 2,align:'center'},
+                            {templet:"#socialDelFlagFormat",  title: '是否删除', minWidth: 140,rowspan: 2,align:'center'},
+                            {align: 'center', title: '', colspan: 4},
+                        ],
+                        [
+                            {field: 'likeCnt', title: '点赞', minWidth: 150,align:'center'},
+                            {field: 'likeCntReal', title: '点赞数量', minWidth: 150,align:'center'},
+                            {field: 'collectCnt', title: '收藏', minWidth: 150,align:'center'},
+                            {field: 'collectCntReal', title: '收藏数量', minWidth: 150,align:'center'},
+                        ]
+                    ]
             });
         }
 

--
Gitblit v1.9.1