| | |
| | | |
| | | |
| | | //根据是否为隐患--来控制--显示选择核查人--是否显示 |
| | | $("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"); |
| | | } |
| | | }); |
| | | // $("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"); |
| | | // } |
| | | // }); |
| | | |
| | | |
| | | function submitHandler() { |