diff --git a/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js b/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js index 8ed1acaa..07b76d77 100644 --- a/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js +++ b/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js @@ -46,10 +46,20 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) { title : '归属章节',align:"center" }, { - field : 'userId',title : '操作',align:"center",width:150, templet: function (d) { - var htm = ''; - htm += ''; - return htm; + field : 'questionStatus',width:200, + title : '状态',align:"center", templet(d) { + return d.questionStatus === 1 + ? `上架` + : '下架'} + }, + { + field : 'userId',title : '操作',align:"center",width:260, templet: function (d) { + return ` + + + + + `; } } @@ -80,6 +90,12 @@ layui.define([ 'form', 'laydate', 'table' ], function(exports) { searchForm.reset(); Lib.doSearchForm($("#searchForm"), resourcesQuestionTable, 1); }, + up: function() { + alert('up') + }, + down: function() { + alert('down') + }, search:function () { Lib.doSearchForm($("#searchForm"), resourcesQuestionTable, 1); },import:function (){