自动化立体仓库 - WMS系统
1
zhangc
2025-03-24 002f10f7d38dc6791d26a69d061e6b17f9980fd0
src/main/webapp/static/js/role/role.js
@@ -7,6 +7,7 @@
        headers: {'token': localStorage.getItem('token')},
        method: 'GET',
        success: function (res) {
            console.log(res)
            if (res.code === 200){
                powerTreeData = res.data;
            } else if (res.code === 403){
@@ -40,7 +41,7 @@
            ,{field: 'id', title: 'ID', sort: true,align: 'center', fixed: 'left', width: 80}
            ,{field: 'code', align: 'center',title: '编码'}
            ,{field: 'name', align: 'center',title: '名称'}
            ,{field: 'leader$', align: 'center',title: '上级',event: 'leader', style: 'text-decoration: underline;cursor:pointer'}
            ,{field: 'leader$', align: 'center',title: '上级'}
            // ,{field: 'level$', align: 'center',title: '角色等级'}
            ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:150}
@@ -150,6 +151,7 @@
                break;
            case 'exportData':
                layer.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    layer.load(2, {time: 600*1000});
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {