From 1393dfcf5b8b67180a776ab8591ca90996054da5 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Mon, 04 Aug 2025 15:46:49 +0800
Subject: [PATCH] feat(product): 添加 AI 题目配置功能

---
 src/main/resources/templates/febs/views/modules/ai/product/list.html |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/src/main/resources/templates/febs/views/modules/ai/product/list.html b/src/main/resources/templates/febs/views/modules/ai/product/list.html
index ebd5512..a41f5f6 100644
--- a/src/main/resources/templates/febs/views/modules/ai/product/list.html
+++ b/src/main/resources/templates/febs/views/modules/ai/product/list.html
@@ -54,6 +54,7 @@
         <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productList:add" lay-event="productAdd">新增</button>
         <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productList:pointSet" lay-event="pointSet">知识点配置</button>
         <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productList:productRoleSet" lay-event="productRoleSet">AI陪练配置</button>
+        <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productList:productQuestionSet" lay-event="productQuestionSet">AI题目配置</button>
     </div>
 </script>
 
@@ -282,6 +283,24 @@
                     }
                 });
             }
+
+            if (layEvent === 'productQuestionSet') {
+                var checkData = table.checkStatus('productTable').data;
+                if (checkData.length > 1 || checkData.length === 0) {
+                    febs.alert.warn('每次操作只能操作一行数据');
+                    return;
+                }
+                febs.modal.open('AI题目配置', 'modules/ai/product/productQuestionSet/' + checkData[0].id, {
+                    btn: ['提交', '取消'],
+                    area:['100%','100%'],
+                    yes: function (index, layero) {
+                        $('#productQuestion-set').find('#submit').trigger('click');
+                    },
+                    btn2: function () {
+                        layer.closeAll();
+                    }
+                });
+            }
         });
 
         function initproductTable() {

--
Gitblit v1.9.1