cl
2024-01-19 e0fac38b26845f25de479783e0c76cf12a5311e0
提交 | 用户 | 时间
71e81e 1
2 layui.use(['table', 'admin', 'ax', 'func'], function () {
3     var $ = layui.$;
4     var table = layui.table;
5     var $ax = layui.ax;
6     var admin = layui.admin;
7     var func = layui.func;
8
9     $('.layui-btn').click(
10         function (event) {
11             const id = event.target.id;
12             switch (id) {
13                 case 'badBoard':
14                     window.location.href =  Feng.ctxPath + '/badBoard';
15                     break;
16                 case 'materialRegistration':
17                     window.location.href =  Feng.ctxPath + '/materialRegistration';
18                     break;
19                 case 'lineFeeding':
20                     window.location.href =  Feng.ctxPath + '/lineFeedingView/recipeManageView';
21                     break;
22                 case 'scrapBoard':
23                     window.location.href =  Feng.ctxPath + '/scrapBoard';
24                     break;
25                 case 'poorBoard':
26                     window.location.href =  Feng.ctxPath + '/poorBoard';
27                     break;
28                 case 'reportRecord':
29                     window.location.href =  Feng.ctxPath + '/badBoard/reportRecord';
30                     break;
31                 case 'reworkAndLaunch':
32                     window.location.href =  Feng.ctxPath + '/reworkAndLaunch';
33                     break;
34                 case 'reworkOffline':
35                     window.location.href =  Feng.ctxPath + '/reworkOffline';
36                     break;
9a8790 37                 case 'greaseBoard':
38                     window.location.href =  Feng.ctxPath + '/greaseBoard';
39                     break;
71e81e 40                 default:
41                     console.log('点击')
42                     break;
43             }
44         }
45     )
46
47 });