| | |
| | | <div class="form-group"> |
| | | <label class="col-sm-3 control-label is-required">隐患判定结果:</label> |
| | | <div class="col-sm-8"> |
| | | <select name="reportStatus" class="form-control m-b" required disabled> |
| | | <select name="reportStatus" class="form-control m-b" required> |
| | | <option value="2">是隐患</option> |
| | | <option value="1">不是隐患</option> |
| | | <!-- <option value="1">不是隐患</option>--> |
| | | </select> |
| | | </div> |
| | | </div> |
| | |
| | | |
| | | //根据是否为隐患--来控制--显示选择核查人--是否显示 |
| | | // $("select[name='reportStatus']").change(function () { |
| | | // var $thisVal = $(this).val(); |
| | | // if ($thisVal == "1") { |
| | | // $("#showByReportStatusChange").hide(); |
| | | // $(".requiredByReportStatusChange").removeClass("is-required"); |
| | | // $("select[name='troubleTypeId']").attr("required", "required"); |
| | | // |
| | | // } else if ($thisVal == "2") { |
| | | // $("#showByReportStatusChange").show(); |
| | | // $(".requiredByReportStatusChange").addClass("is-required"); |
| | | // $("select[name='troubleTypeId']").removeAttr("required"); |
| | | // } |
| | | var $thisVal = $(this).val(); |
| | | // if ($thisVal == "1") { |
| | | // $("#showByReportStatusChange").hide(); |
| | | // $(".requiredByReportStatusChange").removeClass("is-required"); |
| | | // $("select[name='troubleTypeId']").attr("required", "required"); |
| | | // |
| | | // } else if ($thisVal == "2") { |
| | | // $("#showByReportStatusChange").show(); |
| | | // $(".requiredByReportStatusChange").addClass("is-required"); |
| | | // $("select[name='troubleTypeId']").removeAttr("required"); |
| | | // } |
| | | // }); |
| | | |
| | | |