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 9f3d5f00..4ae3b7a3 100644 --- a/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js +++ b/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js @@ -66,13 +66,21 @@ layui.define(['form', 'laydate', 'table'], function (exports) { { field: 'userId', title: '操作', align: "center", width: 220, style:"text-align: left", templet: function (d) { let htm = ""; - if((d.sourceType == '2' && isAdmin) || (d.sourceType == '1' && !isAdmin)){ + /*if((d.sourceType == '2' && isAdmin) || (d.sourceType == '1' && !isAdmin)){ htm +='上架\n' +'下架' +'编辑\n' +'删除'; }else{ htm += '查看'; + }*/ + if((d.addType == 'ADMIN_ADD' && isAdmin)){ + htm +='上架\n' + +'下架' + +'编辑\n' + +'删除'; + }else if((d.addType == 'ADMIN_ADD' && !isAdmin)){ + htm += '查看'; } // TODO 上下架前端逻辑待开发