From e01955ee1f2061d99faced86eaec926b7e67a735 Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Wed, 25 Feb 2026 16:47:09 +0800
Subject: [PATCH] fix(ai): 修复产品点模块中文件显示名称错误问题
---
src/main/resources/templates/febs/views/modules/ai/productQuestion/jobList.html | 19 +++++++++++++++++++
1 files changed, 19 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..af1ca6e 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,20 @@
});
}
+ // 初始化表格操作栏各个按钮功能
+ 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,
+ area: ['100%', '100%'],
+ });
+ }
+ });
+
function initproductQuestionJobTable() {
tableIns = febs.table.init({
elem: $view.find('table'),
@@ -169,6 +187,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