自动化立体仓库 - WMS系统
lty
6 天以前 8e943b7104561c3b14cf223016698709c5ade4b5
src/main/webapp/static/js/resource/resource.js
@@ -13,6 +13,7 @@
        url: baseUrl+'/resource/list/auth',
        page: true,
        limit: 16,
        limits: [16, 30, 50, 100, 200, 500],
        toolbar: '#toolbar',
        cellMinWidth: 50,
        cols: [[
@@ -20,9 +21,9 @@
            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'code', align: 'center',title: '菜单编码'}
            ,{field: 'name', align: 'center',title: '菜单名称'}
            ,{field: 'resourceName', align: 'center',title: '父级菜单',event: 'Resource', style: 'text-decoration: underline;cursor:pointer'}
            ,{field: 'resourceName', align: 'center',title: '父级菜单'}
            ,{field: 'level$', align: 'center',title: '菜单等级'}
            // ,{field: 'sort', align: 'center',title: '排序'}
            ,{field: 'sort', align: 'center',title: '排序'}
            // ,{field: 'status$', align: 'center',title: '状态'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150}
@@ -123,7 +124,7 @@
                                } else if (res.code === 403){
                                    top.location.href = baseUrl+"/";
                                } else {
                                    layer.msg(res.msg)
                                    layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
                                }
                            }
                        })
@@ -131,7 +132,7 @@
                }
                break;
            case 'exportData':
                layer.confirm('确定导出Excel吗', function(){
                layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {
@@ -162,7 +163,7 @@
                            } else if (res.code === 403) {
                                top.location.href = baseUrl+"/";
                            } else {
                                layer.msg(res.msg)
                                layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
                            }
                        }
                    });
@@ -237,7 +238,7 @@
                                   } else if (res.code === 403){
                                       parent.location.href = "/";
                                   }else {
                                       layer.msg(res.msg)
                                       layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
                                   }
                               }
                           })
@@ -279,7 +280,7 @@
                } else if (res.code === 403){
                    top.location.href = baseUrl+"/";
                }else {
                    layer.msg(res.msg)
                    layer.msg(typeof I18n !== 'undefined' ? I18n.t(res.msg) : res.msg, {icon: 2})
                }
                layer.close(index);
            }