懒羊羊
2024-01-10 a556270e96bc6e7fa4202c466d57cc75f778c614
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
 
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;
            }
        }
    )
 
});