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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
| <!--MES方法-->
|
| $(function() {
| var options1 = {
| id: "MES-M-table",
| url: ctx + "tr/method/criterionDetail/ByMES_M",
| createUrl: ctx + "tr/criterionDetail/add",
| updateUrl: ctx + "tr/criterionDetail/edit/{id}",
| removeUrl: ctx + "tr/criterionDetail/remove",
| showSearch: false,
| showRefresh: false,
| showToggle: false,
| showColumns: false,
| modalName: "MES评价方法",
| columns: [
| {
| field: 'detailId',
| title: 'ID',
| visible: false
| },
| {
| field: 'detailScore',
| title: '分值'
| },
| {
| field: 'mesMBiaozhun',
| title: '标准'
| }
| // ,
| // {
| // title: '操作',
| // align: 'center',
| // formatter: function(value, row, index) {
| // var actions = [];
| // actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.detailId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
| // actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.detailId + '\')"><i class="fa fa-remove"></i>删除</a>');
| // return actions.join('');
| // }
| // }
| ]
| };
| $.table.init(options1);
|
|
| var options2 = {
| id: "MES-E-table",
| url: ctx + "tr/method/criterionDetail/ByMES_E",
| createUrl: ctx + "/add",
| updateUrl: ctx + "/edit/{id}",
| removeUrl: ctx + "/remove",
| showSearch: false,
| showRefresh: false,
| showToggle: false,
| showColumns: false,
| modalName: "MES评价方法",
| columns: [
| {
| field: 'detailId',
| title: 'ID',
| visible: false
| },
| {
| field: 'detailScore',
| title: '分值'
| },
| {
| field: 'mesEE1',
| title: 'E1(人身伤害和职业相关病症):人体暴露于危险状态的频繁程度'
| },
| {
| field: 'mesEE2',
| title: 'E2(财产损失和环境污染):危险状态出现的频次'
| }
| // ,
| // {
| // title: '操作',
| // align: 'center',
| // formatter: function(value, row, index) {
| // var actions = [];
| // actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.detailId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
| // actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.detailId + '\')"><i class="fa fa-remove"></i>删除</a>');
| // return actions.join('');
| // }
| // }
| ]
| };
| $.table.init(options2);
|
|
| var options3 = {
| id: "MES-S-table",
| url: ctx + "tr/method/criterionDetail/ByMES_S",
| createUrl: ctx + "/add",
| updateUrl: ctx + "/edit/{id}",
| removeUrl: ctx + "/remove",
| showSearch: false,
| showRefresh: false,
| showToggle: false,
| showColumns: false,
| modalName: "MES评价方法",
| columns: [
| {
| field: 'detailId',
| title: 'ID',
| visible: false
| },
| {
| field: 'detailScore',
| title: '分值'
| },
| {
| field: 'mesSFalu',
| title: '法律、法规及其他要求'
| },
| {
| field: 'mesSRenyuanShangwang',
| title: '人员伤亡'
| },
| {
| field: 'mesSJingjiSunshi',
| title: '直接经济损失'
| },
| {
| field: 'mesSTinggong',
| title: '停工'
| }
| // ,
| // {
| // title: '操作',
| // align: 'center',
| // formatter: function(value, row, index) {
| // var actions = [];
| // actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.detailId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
| // actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.detailId + '\')"><i class="fa fa-remove"></i>删除</a>');
| // return actions.join('');
| // }
| // }
| ]
| };
| $.table.init(options3);
|
|
| var options4 = {
| id: "MES-D-table",
| url: ctx + "tr/method/determinationList/ByMES_D",
| createUrl: ctx + "/add",
| updateUrl: ctx + "/edit/{id}",
| removeUrl: ctx + "/remove",
| showSearch: false,
| showRefresh: false,
| showToggle: false,
| showColumns: false,
| modalName: "MES评价方法",
| columns: [
|
| {
| field: 'determinationId',
| title: 'ID',
| visible: false
| },
| {
| field: 'detailScore',
| title: '风险值',
| formatter: function(value, row, index) {
| return row.riskMinNum +"-"+row.riskMaxNum;
| }
| },
| {
| field: 'riskMinNum',
| title: '最小风险值'
| },
| {
| field: 'riskMaxNum',
| title: '最大风险值'
| },
| {
| field: 'riskLevel',
| title: '风险等级'
| },
| {
| field: 'riskLevelDescription',
| title: '风险值'
| }
| // ,
| // {
| // title: '操作',
| // align: 'center',
| // formatter: function(value, row, index) {
| // var actions = [];
| // actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.determinationId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
| // actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.determinationId + '\')"><i class="fa fa-remove"></i>删除</a>');
| // return actions.join('');
| // }
| // }
| ]
| };
| $.table.init(options4);
|
| var options5 = {
| id: "MES-Level-table",
| url: ctx + "tr/method/riskLevelList/ByMES_LEVEL",
| createUrl: ctx + "/add",
| updateUrl: ctx + "/edit/{id}",
| removeUrl: ctx + "/remove",
| showSearch: false,
| showRefresh: false,
| showToggle: false,
| showColumns: false,
| modalName: "MES评价方法",
| columns: [
| {
| field: 'levelId',
| title: 'id',
| visible: false
| },
| {
| field: 'riskLevel',
| title: '风险级别'
| },
| {
| field: 'levelColor',
| title: '风险色'
| },
| {
| field: 'levelBeginNum',
| title: '风险起始值'
| },
| {
| field: 'levelEndNum',
| title: '风险结束值'
| }
| // ,
| // {
| // title: '操作',
| // align: 'center',
| // formatter: function(value, row, index) {
| // var actions = [];
| // actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="$.operate.edit(\'' + row.levelId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
| // actions.push('<a class="btn btn-danger btn-xs " href="javascript:void(0)" onclick="$.operate.remove(\'' + row.levelId + '\')"><i class="fa fa-remove"></i>删除</a>');
| // return actions.join('');
| // }
| // }
| ]
| };
| $.table.init(options5);
| });
|
|