中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-16 e1583e24d38b49d8e668e7756c5fca772fd6cbc3
src/main/webapp/static/js/deptTree.js
@@ -35,12 +35,11 @@
                        data: res.data,
                        click: function (obj) {
                            currentDeptId = obj.data.id;
                            currentDeptName = obj.data.title.split(" - ")[0];
                            // currentTemSsbm = obj.data.title.split(" - ")[1];
                            currentDeptName = obj.data.title;
                            selObj = obj;
                            $('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click');
                            $(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click');
                            tableIns.reload({
                            insTb2.reload({
                                where: {dept_id: obj.data.id},
                                page: {curr: 1}
                            });
@@ -48,7 +47,7 @@
                    });
                    treeData = res.data;
                    if (isEmpty(condition) && init) {
                        tableIns.reload({
                        insTb2.reload({
                            where: {dept_id: ""},
                            page: {curr: 1}
                        });
@@ -82,4 +81,4 @@
function findData(el) {
    var condition = $(el).val();
    loadTree(condition)
}
}