文件名从 src/main/resources/templates/tr/tbBaseCheckTask/specialCheckTaskLog.html 修改 |
| | |
| | | <form id="formId"> |
| | | <div class="select-list"> |
| | | <ul> |
| | | <!-- <li>--> |
| | | <!-- <label>检查类别:</label>--> |
| | | <!-- <input type="text" name="checkType"/>--> |
| | | <!-- </li>--> |
| | | |
| | | <input type="hidden" id="riskId" name="id" th:value="${id}"/> |
| | | |
| | | <li> |
| | | <li style="display: none"> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i> 搜索</a> |
| | | <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i> 重置</a> |
| | | </li> |
| | |
| | | </div> |
| | | <th:block th:include="include :: footer"/> |
| | | <script th:inline="javascript"> |
| | | var statusDatas = [[${@dict.getType('sys_common_status')}]]; |
| | | var groupDatas = [[${@dict.getType('sys_job_group')}]]; |
| | | var prefix = ctx + "tr/specialCheckTaskLog"; |
| | | |
| | | $(function () { |
| | |
| | | url: prefix + "/list", |
| | | queryParams: queryParams, |
| | | cleanUrl: prefix + "/clean", |
| | | createUrl: prefix + "/taskAdd", |
| | | detailUrl: prefix + "/taskDetail/{id}", |
| | | updateUrl: prefix + "/taskEdit/{id}", |
| | | createUrl: prefix + "/add", |
| | | detailUrl: prefix + "/detail/{id}", |
| | | updateUrl: prefix + "/edit/{id}", |
| | | removeUrl: prefix + "/remove", |
| | | exportUrl: prefix + "/export", |
| | | sortName: "createTime", |
| | | sortOrder: "desc", |
| | | modalName: "任务上报", |
| | | columns: [{ |
| | | checkbox: true |
| | | }, |
| | | columns: [ |
| | | { |
| | | field: 'riskName', |
| | | title: '风险分析对象' |
| | | field: 'indexId', |
| | | title: 'indexId', |
| | | visible: false |
| | | }, |
| | | { |
| | | field: 'hazardSource', |
| | | title: '风险分析对象编码' |
| | | }, |
| | | { |
| | | field: 'checkType', |
| | |
| | | } |
| | | }, |
| | | { |
| | | field: 'riskName', |
| | | field: 'checkDate', |
| | | title: '检查日期' |
| | | }, |
| | | { |
| | | field: 'riskName', |
| | | field: 'resultStatus', |
| | | title: '是否停产整顿', |
| | | formatter: function (value, row, index) { |
| | | if (value == "1") { |
| | | return "企业自查"; |
| | | } else if (value == "2") { |
| | | return "市级及以下检查"; |
| | | } else if (value == "3") { |
| | | return "省级检查"; |
| | | } else{ |
| | | return "部级检查"; |
| | | if (value == "0") { |
| | | return "正常"; |
| | | } else if (value == "1") { |
| | | return "停产整顿"; |
| | | } |
| | | } |
| | | }, |
| | | { |
| | | field: 'riskName', |
| | | field: 'createBy', |
| | | title: '创建人' |
| | | }, |
| | | { |
| | | field: 'riskName', |
| | | field: 'createDate', |
| | | title: '创建时间' |
| | | }, |
| | | { |
| | | field: 'riskName', |
| | | field: 'updateBy', |
| | | title: '最后修改人' |
| | | }, |
| | | { |
| | | field: 'riskName', |
| | | field: 'updateDate', |
| | | title: '最后修改时间' |
| | | }, |
| | | { |
| | | field: 'scheduleCheckStatus', |
| | | field: 'reportStatus', |
| | | title: '上报状态', |
| | | align: 'center', |
| | | formatter: function (value, row, index) { |
| | | if (value == "0") { |
| | | return "未排查"; |
| | | } else if (value == "1") { |
| | | return "已排查"; |
| | | if (value == "1") { |
| | | return "未上报"; |
| | | } else if (value == "2") { |
| | | return "已上报"; |
| | | } |
| | | } |
| | | }, |
| | |
| | | align: 'center', |
| | | formatter: function (value, row, index) { |
| | | var actions = []; |
| | | actions.push('<a class="btn btn-success btn-xs" href="#" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
| | | actions.push("<a class='btn btn-warning btn-xs' href='#' onclick='$.operate.detail(" + row.id + ")'><i class='fa fa-search'></i>查看</a> "); |
| | | actions.push("<a class='btn btn-default btn-xs' href='#' onclick='jobLog(" + row.indexId + ")'><i class='fa fa-list'></i>获取indexId</a>"); |
| | | actions.push('<a class="btn btn-success btn-xs" href="#" onclick="$.operate.edit(\'' + row.indexId + '\')"><i class="fa fa-edit"></i>编辑</a> '); |
| | | actions.push("<a class='btn btn-warning btn-xs' href='#' onclick='$.operate.detail(" + row.indexId + ")'><i class='fa fa-search'></i>查看</a> "); |
| | | return actions.join(''); |
| | | } |
| | | } |
| | |
| | | search.id = $("#riskId").val(); |
| | | return search; |
| | | } |
| | | function jobLog(indexId) { |
| | | console.log(indexId,'indexId') |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |