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 4ae3b7a3..2c68cf80 100644 --- a/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js +++ b/web/src/main/resources/static/js/jlw/resourcesQuestion/index.js @@ -74,12 +74,13 @@ layui.define(['form', 'laydate', 'table'], function (exports) { }else{ htm += '查看'; }*/ - if((d.addType == 'ADMIN_ADD' && isAdmin)){ + console.log(d.sourceType == '2' ) + if(((d.sourceType == '2'||d.addType == 'ADMIN_ADD' ) && isAdmin)){ htm +='上架\n' +'下架' +'编辑\n' +'删除'; - }else if((d.addType == 'ADMIN_ADD' && !isAdmin)){ + }else if(((d.sourceType == '2'||d.addType == 'ADMIN_ADD') && !isAdmin)){ htm += '查看'; }