中扬CRM客户关系管理系统
#
luxiaotao1123
2022-09-12 383d703e74dfb165bc66f29b3c677d50fb71d391
#
4个文件已修改
63 ■■■■ 已修改文件
src/main/webapp/static/js/cstmr/cstmr.js 50 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/cstmr/cstmr.html 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/cstmrType/cstmrType.html 8 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/views/index.html 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/webapp/static/js/cstmr/cstmr.js
@@ -17,9 +17,10 @@
        page: true,
        limit: 15,
        limits: [15, 30, 50, 100, 200, 500],
        toolbar: '#toolbar',
        cellMinWidth: 50,
        cellMinWidth: 100,
        height: 'full-120',
        size: 'sm',
        skin: 'nob',
        cols: [[
            {type: 'checkbox'}
            // ,{field: 'id', align: 'center',title: 'ID'}
@@ -104,44 +105,6 @@
               del(checkStatus.map(function (d) {
                   return d.id;
               }));
               break;
            case 'exportData':
                admin.confirm('确定导出Excel吗', {shadeClose: true}, function(){
                    var titles=[];
                    var fields=[];
                    obj.config.cols[0].map(function (col) {
                        if (col.type === 'normal' && col.hide === false && col.toolbar == null) {
                            titles.push(col.title);
                            fields.push(col.field);
                        }
                    });
                    var exportData = {};
                    $.each($('#search-box [name]').serializeArray(), function() {
                        exportData[this.name] = this.value;
                    });
                    var param = {
                        'cstmr': exportData,
                        'fields': fields
                    };
                    $.ajax({
                        url: baseUrl+"/cstmr/export/auth",
                        headers: {'token': localStorage.getItem('token')},
                        data: JSON.stringify(param),
                        dataType:'json',
                        contentType:'application/json;charset=UTF-8',
                        method: 'POST',
                        success: function (res) {
                            layer.closeAll();
                            if (res.code === 200) {
                                table.exportFile(titles,res.data,'xls');
                            } else if (res.code === 403) {
                                top.location.href = baseUrl+"/";
                            } else {
                                layer.msg(res.msg, {icon: 2})
                            }
                        }
                    });
                });
                break;
        }
    });
@@ -228,13 +191,6 @@
    // 搜索
    form.on('submit(search)', function (data) {
        pageCurr = 1;
        tableReload(false);
    });
    // 重置
    form.on('submit(reset)', function (data) {
        pageCurr = 1;
        clearFormVal($('#search-box'));
        tableReload(false);
    });
src/main/webapp/views/cstmr/cstmr.html
@@ -36,8 +36,7 @@
                        <button class="layui-btn icon-btn" lay-filter="search" lay-submit>
                            <i class="layui-icon">&#xe615;</i>搜索
                        </button>
                        <button class="layui-btn icon-btn" lay-filter="reset" lay-submit>
                            <i class="layui-icon">&#xe666;</i>重置
                        <button id="addBtn" class="layui-btn icon-btn btn-add"><i class="layui-icon">&#xe654;</i>添加
                        </button>
                    </div>
                </div>
src/main/webapp/views/cstmrType/cstmrType.html
@@ -166,7 +166,13 @@
            response: {
                statusCode: 200
            },
            size: 'lg'
            size: 'lg', // sm lg
            // skin: 'nob'
            /**
             * line (行边框风格)
             row (列边框风格)
             nob (无边框风格)
             */
        });
        // 工具条点击事件
src/main/webapp/views/index.html
@@ -147,7 +147,7 @@
                        $('#hostName').text(res.data.hostName);
                    }
                    if (res.data.root) {
                        showHost();
                        // showHost();
                    }
                } else if (res.code === 403) {
                    top.location.href = baseUrl + "/login";