中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-16 5a150aa2c975060b036336ad7f90be24ee6ad83f
src/main/webapp/static/js/cstmr/cstmr.js
@@ -17,13 +17,33 @@
    var tree = layui.tree;
    var dropdown = layui.dropdown;
    $('#organization').text(localStorage.getItem('nickname'));
    // 部门人员 筛选
    dropdown.render({
        elem: '#slrassa'
        elem: '#organization'
        ,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();
        }
    });
    // 数据同步
    dropdown.render({
        elem: '#data-btn'
        ,align: 'center' //居中对齐(2.6.8 新增)
        ,style: 'width: 50px;'
        ,data: [{
            title: 'menu item test 111'
            ,id: 100
        },{
            title: 'menu item test 222'
            ,id: 101
        },{
            title: 'menu item test 333'
            ,id: 102
        }]
    });
    // 树形图
@@ -50,9 +70,10 @@
                                key: obj.data.key,
                                val: obj.data.id
                            }
                            // treeCond = {[obj.data.key]: obj.data.id};
                            $('#organization').text(obj.data.title);
                            $('#organizationTree').find('.ew-tree-click').removeClass('ew-tree-click');
                            $(obj.elem).children('.layui-tree-entry').addClass('ew-tree-click');
                            clearFormVal($('#search-box'));
                            tableIns.reload({
                                where: {[obj.data.key]: obj.data.id},
                                page: {curr: 1}
@@ -90,9 +111,9 @@
            ,{field: 'addr', align: 'left',title: '详细地址', templet:function(d){return emptyShow(d.addr)}}
            ,{field: 'tel', align: 'left',title: '电话', templet:function(d){return emptyShow(d.tel)}}
            ,{field: 'remarks', align: 'left',title: '备注', templet:function(d){return emptyShow(d.remarks)}}
            ,{field: 'createTime$', align: 'left',title: '添加时间'}
            ,{field: 'userId$', align: 'left',title: '添加人员'}
            ,{field: 'cstmrType$', align: 'left',title: '客户类别'}
            ,{field: 'userId$', align: 'left',title: '添加人员'}
            ,{field: 'createTime$', align: 'left',title: '添加时间'}
            ,{field: 'deptId$', align: 'left',title: '所属部门', hide: true}
            ,{field: 'simple', align: 'left',title: '客户简称', hide: true}
            ,{field: 'rela', align: 'left',title: '客户关系', hide: true}