| | |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productQuestionList:aiAdd" lay-event="productQuestionStateOpen">启用</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productQuestionList:aiAdd" lay-event="productQuestionStateClose">禁用</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productQuestionList:aiAdd" lay-event="productQuestionDelete">删除</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-green-plain" shiro:hasPermission="productQuestionList:aiAdd" lay-event="productQuestionAddLabel">打标签</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" shiro:hasPermission="productQuestionList:aiAdd" lay-event="exportProductQuestion">导出</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-primary febs-button-blue-plain" shiro:hasPermission="productQuestionList:aiAdd" id="importProductQuestion" lay-event="importProductQuestion">导入</button> |
| | | </div> |
| | |
| | | }); |
| | | window.location.href = ctx + "admin/productQuestion/exportProductQuestion?ids="+ids; |
| | | } |
| | | if (layEvent === 'productQuestionAddLabel') { |
| | | var checkData = table.checkStatus('productQuestionTable').data; |
| | | if (checkData.length <= 0) { |
| | | febs.alert.warn('请选择'); |
| | | return; |
| | | } |
| | | var ids = []; |
| | | layui.each(checkData, function (key, item) { |
| | | ids.push(item.id) |
| | | }); |
| | | let strIds = ids.join(','); |
| | | febs.modal.open('打标签', 'modules/ai/productQuestion/labelSet/' + strIds, { |
| | | btn: ['确定', '取消'], |
| | | area:['100%','100%'], |
| | | yes: function (index, layero) { |
| | | $('#labelSet').find('#submit').trigger('click'); |
| | | }, |
| | | btn2: function () { |
| | | layer.closeAll(); |
| | | } |
| | | }); |
| | | } |
| | | }); |
| | | |
| | | upload.render({ |
| | |
| | | {field: 'state', title: '状态', templet: '#productQuestionStateSwitch', minWidth: 130,align:'center'}, |
| | | {field: 'productCategoryName', title: '分类', minWidth: 100,align:'center'}, |
| | | {field: 'title', title: '题目', minWidth: 100,align:'center'}, |
| | | {field: 'label', title: '标签', minWidth: 100,align:'center'}, |
| | | {templet:"#difficultyFormat", title: '难度', minWidth: 140,align:'center'}, |
| | | {field: 'companyId', title: '公司编码', minWidth: 150,align:'center'}, |
| | | ]] |