/** * 流水算法页面 * @author weidy * @date 2022-01-24 */ layui.define(['layer','element','form','table','dynamicCondition' ],function(exports){ var webUtil = $webUtil; var Class = function(){ this.MODELNAME = "mdm/CodeSerialAlgorithm"; this.moduleKey = "CodeSerialAlgorithm"; this.backPath = configData.compatibility? path:configData.mdmService; this.url = { controller:'codeSerialAlgorithmController/', dataGrid:'gridCodeSerialAlgorithm' }; this.getContent=function(){ var that = this; var html = ""; html = [ '
', '
', '
', '
', '
', '
', '
' ].join(""); return html; }; this.init = function(){ var that = this; webUtil.copyConfig(that,that.moduleKey); that.initMainTable(); }; this.initMainTable = function () { var that = this; var table = layui.table; that.checkColumns(); var tableWidth = $("#border_" + that.id).width()-225; var options = { elem: '#table_' + that.id, id: 'table_' + that.id, backPath:that.backPath, url: that.url.controller + that.url.dataGrid, limit: -1, width:tableWidth, selectMode:table.selectMode.muti, cols: [that.columns] }; table.render(options); }; this.checkColumns = function(){ var that = this; var table = layui.table; if(that.columns==null || that.columns.length==0){ that.columns = [table.getIndexColumn(),table.getCheckColumn(), { title: '算法编号', field: 'id', width: 200 }, { title: '算法名称', field: 'name', width: 150 }, { title: '类全路径', field: 'classFullName', width: 300 }, { title: '描述', field: 'description', width: 150 }]; } }; this.refresh = function () { var that = this; layui.table.reload("table_" + that.id); }; }; var cs = new Class(); exports(cs.MODELNAME,cs); });