| | |
| | | <option value="超期改">超期改</option> |
| | | </select> |
| | | </li> |
| | | <li> |
| | | <li style="display: flex;align-items: center"> |
| | | <label>整改部门:</label> |
| | | <select name="rectifyDeptIdLedger"> |
| | | <option value="">所有</option> |
| | | <option th:each="dept : ${deptList}" th:text="${dept.deptName}" |
| | | th:value="${dept.deptId}"></option> |
| | | </select> |
| | | <!-- <select name="rectifyDeptIdLedger">--> |
| | | <!-- <option value="">所有</option>--> |
| | | <!-- <option th:each="dept : ${deptList}" th:text="${dept.deptName}"--> |
| | | <!-- th:value="${dept.deptId}"></option>--> |
| | | <!-- </select>--> |
| | | <div class="input-group" style="width: 200px"> |
| | | <input name="rectifyDeptIdLedger" type="hidden" id="rectifyDeptIdLedger"> |
| | | <input onclick="selectDangerDeptTree()" id="dangerDeptName" type="text" |
| | | placeholder="请选择部门" class="form-control" required |
| | | readonly="readonly"> |
| | | <span class="input-group-addon"><i class="fa fa-search"></i></span> |
| | | </div> |
| | | </li> |
| | | <li> |
| | | <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i |
| | |
| | | $.operate.openDetailInfo("查看隐患验收信息", detailDangerAcceptUrl.replace("{id}", id)); |
| | | } |
| | | |
| | | /*隐患责任部门 选择 start*/ |
| | | function selectDangerDeptTree() { |
| | | var treeId = $("#rectifyDeptIdLedger").val(); |
| | | var deptId = $.common.isEmpty(treeId) ? "100" : $("#rectifyDeptIdLedger").val(); |
| | | var url = ctx + "system/dept/selectDeptTreeByCompanyId/" + deptId; |
| | | var options = { |
| | | title: '选择部门', |
| | | width: "380", |
| | | url: url, |
| | | callBack: doSubmitBeCheckedDept |
| | | }; |
| | | $.modal.openOptions(options); |
| | | } |
| | | |
| | | function doSubmitBeCheckedDept(index, layero) { |
| | | var tree = layero.find("iframe")[0].contentWindow.$._tree; |
| | | // if ($.tree.notAllowParents(tree)) { |
| | | var body = layer.getChildFrame('body', index); |
| | | $("#rectifyDeptIdLedger").val(body.find('#treeId').val()); |
| | | $("#dangerDeptName").val(body.find('#treeName').val()); |
| | | layer.close(index); |
| | | // } |
| | | } |
| | | </script> |
| | | </body> |
| | | </html> |