1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
| /**
| * 流水算法页面
| * @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 = [
| '<div class="layui-layout" style="display:block;overflow-y: hidden">',
| '<div class="layui-layout-border" style="display:block;margin-top:0px; " id="border_',that.id,'">',
| '<div class="layui-center" style="overflow-y:auto;">',
| '<table id="table_', that.id , '" lay-filter="',that.id , '" style="overflow-x:auto;"></table>',
| '</div>',
| '</div>',
| '</div>'
| ].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);
| });
|
|