| | |
| | | </div> |
| | | </div> |
| | | |
| | | <script type="text/html" id="productQuestionToolbar"> |
| | | <script type="text/html" id="productQuestionJobToolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productQuestionList:aiAdd" lay-event="productQuestionJobStateClose">停止</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" lay-event="productQuestionJobStateClose">停止</button> |
| | | </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"> |
| | |
| | | }); |
| | | } |
| | | |
| | | // 初始化表格操作栏各个按钮功能 |
| | | 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'), |
| | |
| | | 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'}, |