自动化立体仓库 - WMS系统
#
whycq
2024-06-21 64d240185c5b7f7507d8217f50950af37201ab97
src/main/webapp/static/js/role/rolePower.js
@@ -39,13 +39,16 @@
    form.on('submit(save)', function () {
        var param = [];
        var checkData = tree.getChecked('powerTree');
        console.log(checkData)
        checkData.map(function (obj) {
            obj.children.map(function (resource) {
                console.log(resource)
                var childrens = [];
                resource.children.map(function (resource) {
                    childrens.push(resource.id);
                });
                if (resource.children) {
                    resource.children.map(function (resource) {
                        childrens.push(resource.id);
                    });
                }
                var one = {
                    'two': resource.id,
                    'three': childrens