| | |
| | | url: prefix + "/list", |
| | | detailUrl: "/tr/specialCheckTaskLog/{id}", |
| | | createUrl: prefix + "/add", |
| | | updateUrl: "/tr/specialCheckItemDangerLog/{id}", |
| | | updateUrl: prefix + "/edit/{id}", |
| | | removeUrl: prefix + "/remove", |
| | | exportUrl: prefix + "/export", |
| | | sortName: "createTime", |
| | | sortOrder: "desc", |
| | | modalName: "任务", |
| | | columns: [{ |
| | | checkbox: true |
| | | checkbox: false |
| | | }, |
| | | { |
| | | field: 'id', |
| | |
| | | align: 'center', |
| | | formatter: function (value, row, index) { |
| | | var actions = []; |
| | | actions.push('<a class="btn btn-info btn-xs " href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\',1600)"><i class="fa fa-edit"></i>检查任务上报</a> '); |
| | | actions.push('<a class="btn btn-info btn-xs " href="javascript:void(0)" onclick="openDetail(\'' + row.id + '\')"><i class="fa fa-edit"></i>检查项上报</a> '); |
| | | actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="openReport(\'' + row.id + '\')"><i class="fa fa-edit"></i>检查任务上报</a> '); |
| | | actions.push('<a class="btn btn-success btn-xs " href="javascript:void(0)" onclick="openDetail(\'' + row.id + '\')"><i class="fa fa-edit"></i>检查项上报</a> '); |
| | | return actions.join(''); |
| | | } |
| | | }] |
| | |
| | | $.table.init(options); |
| | | }); |
| | | |
| | | /* 检查任务上报 */ |
| | | function openReport(id) { |
| | | var checkTaskUrl = "/tr/specialCheckTaskLog/{id}"; |
| | | $.modal.openFullNoConfirm("检查任务上报", checkTaskUrl.replace("{id}", id)); |
| | | } |
| | | |
| | | /* 检查项上报 */ |
| | | function openDetail(id) { |
| | | var detailDangerExamineUrl = "/tr/specialCheckItemDangerLog/{id}"; |
| | | $.operate.openDetailInfo("检查项上报", detailDangerExamineUrl.replace("{id}", id),1600); |
| | | var checkItemUrl = "/tr/specialCheckItemDangerLog/{id}"; |
| | | $.modal.openFullNoConfirm("检查项上报", checkItemUrl.replace("{id}", id)); |
| | | } |
| | | </script> |
| | | </body> |