layui.use(['table', 'admin', 'ax', 'func'], function () { var $ = layui.$; var table = layui.table; var $ax = layui.ax; var admin = layui.admin; var func = layui.func; $('.layui-btn').click( function (event) { const id = event.target.id; switch (id) { case 'badBoard': window.location.href = Feng.ctxPath + '/badBoard'; break; case 'materialRegistration': window.location.href = Feng.ctxPath + '/materialRegistration'; break; case 'lineFeeding': window.location.href = Feng.ctxPath + '/lineFeedingView/recipeManageView'; break; case 'scrapBoard': window.location.href = Feng.ctxPath + '/scrapBoard'; break; case 'poorBoard': window.location.href = Feng.ctxPath + '/poorBoard'; break; case 'reportRecord': window.location.href = Feng.ctxPath + '/badBoard/reportRecord'; break; case 'reworkAndLaunch': window.location.href = Feng.ctxPath + '/reworkAndLaunch'; break; case 'reworkOffline': window.location.href = Feng.ctxPath + '/reworkOffline'; break; case 'greaseBoard': window.location.href = Feng.ctxPath + '/greaseBoard'; break; default: console.log('点击') break; } } ) });