中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-16 f8a54ce7524085ba6412bb614f4e4ae1680b7d76
src/main/webapp/static/js/cstmr/cstmr.js
@@ -3,9 +3,8 @@
layui.config({
    base: baseUrl + "/static/layui/lay/modules/"
}).extend({
    dropdown: 'dropdown/dropdown',
    cascader: 'cascader/cascader',
}).use(['table','laydate', 'form', 'admin', 'xmSelect', 'dropdown', 'element', 'cascader', 'tree'], function(){
}).use(['table','laydate', 'form', 'admin', 'xmSelect', 'element', 'cascader', 'tree', 'dropdown'], function(){
    var table = layui.table;
    var $ = layui.jquery;
    var layer = layui.layer;
@@ -15,6 +14,16 @@
    var xmSelect = layui.xmSelect;
    var cascader = layui.cascader;
    var tree = layui.tree;
    var dropdown = layui.dropdown;
    dropdown.render({
        elem: '#slrassa'
        ,content: ['<div id="organizationTree" style="height: calc(100vh - 525px);border: none"></div>'].join('')
        ,style: 'width: 370px; height: 500px; padding: 0 15px; box-shadow: 1px 1px 30px rgb(0 0 0 / 12%);'
        ,ready: function(){
            loadTree();
        }
    });
    // 树形图
    var organizationTree;
@@ -53,7 +62,6 @@
            }
        })
    }
    loadTree();
    // 数据渲染
    tableIns = table.render({
@@ -64,7 +72,7 @@
        limit: 15,
        limits: [15, 30, 50, 100, 200, 500],
        cellMinWidth: 100,
        height: 'full-145',
        height: 'full-148',
        // size: 'sm',
        skin: 'line',
        cols: [[