Sha256: 601cc70b1c2c065cc7b60c2fdcc1dfff0f430cf8a130245403c44c06af6027c3

Contents?: true

Size: 881 Bytes

Versions: 5

Compression:

Stored size: 881 Bytes

Contents

layui.define(function(exports){
    let functions = {
        initTableColumnsFilter: function (tableId, cols) {
            var local = layui.data('table-filter-' + tableId);
            layui.each(cols, function(index, item) {
                if (item.field !== 'undefined' && item.field in local) {
                    item.hide = local[item.field];
                }
            });
            return cols;
        },
        observerTableColumnFilter: function (that) {
            that.elem.next().on('mousedown', 'input[lay-filter="LAY_TABLE_TOOL_COLS"]+', function(){
                var input = $(this).prev()[0];
                layui.data ('table-filter-'+ that.id, {
                    key: input.name,
                    value: input.checked
                });
            });
        }
    // 其他公共方法...
    };
    exports('functions', functions);
});

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
educode_sales-1.10.74 app/assets/javascripts/educode_sales/functions.js
educode_sales-1.10.73 app/assets/javascripts/educode_sales/functions.js
educode_sales-1.10.72 app/assets/javascripts/educode_sales/functions.js
educode_sales-1.10.71 app/assets/javascripts/educode_sales/functions.js
educode_sales-1.10.70 app/assets/javascripts/educode_sales/functions.js