From e89b46eccadc107be6b6cb54e7b257a8ccb8455e Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 12 Feb 2026 15:58:40 +0800
Subject: [PATCH] feat(ai): 添加AI产品题目任务详情功能

---
 src/main/resources/templates/febs/views/modules/ai/productQuestion/jobList.html |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/ai/productQuestion/jobList.html b/src/main/resources/templates/febs/views/modules/ai/productQuestion/jobList.html
index fff7f84..fe8b9a5 100644
--- a/src/main/resources/templates/febs/views/modules/ai/productQuestion/jobList.html
+++ b/src/main/resources/templates/febs/views/modules/ai/productQuestion/jobList.html
@@ -55,6 +55,10 @@
     </div>
 </script>
 
+<script type="text/html" id="productQuestionJobOption">
+    <button class="layui-btn layui-btn-normal layui-btn-sm" type="button" shiro:hasPermission="jobInfoList:update" lay-event="productQuestionJobInfoEvent">详情</button>
+</script>
+
 <script type="text/html" id="difficultyFormat">
     {{# if(d.difficulty == 1) { }}
     <span>简单</span>
@@ -160,6 +164,19 @@
             });
         }
 
+        // 初始化表格操作栏各个按钮功能
+        table.on('tool(productQuestionJobTable)', function (obj) {
+            console.log("触发事件:", obj.event); // 调试信息
+            var data = obj.data,
+                layEvent = obj.event;
+            if (layEvent === 'productQuestionJobInfoEvent') {
+                console.log("触发事件-ID:", data.id)
+                febs.modal.open( '详情', 'modules/ai/productQuestion/jobInfoList/' + data.id, {
+                    maxmin: true,
+                });
+            }
+        });
+
         function initproductQuestionJobTable() {
             tableIns = febs.table.init({
                 elem: $view.find('table'),
@@ -169,6 +186,7 @@
                 defaultToolbar:[],
                 cols: [[
                     {type: 'checkbox'},
+                    {title: '操作', toolbar: '#productQuestionJobOption', minWidth: 200, align: 'center'},
                     {type: 'numbers', title: '', width: 80},
                     {field: 'title', title: '要求', minWidth: 100,align:'center'},
                     {field: 'questionCnt', title: '生成总数', minWidth: 100,align:'center'},

--
Gitblit v1.9.1