双重预防项目-国泰新华二开定制版
马宇豪
2023-10-30 131b4ec060280288e2c9a95e8841b67ebbb96fc3
src/main/resources/templates/tr/hiddenDangerCheck/dangerReport/editJudgeDangerReport.html
@@ -111,7 +111,7 @@
        </div>
        <div class="form-group" id="showByReportStatusChange" style="display:none;">
        <div class="form-group" id="showByReportStatusChange">
            <label class="col-sm-3 control-label is-required">核查人:</label>
            <div class="col-sm-8">
                <input id="examineUserName"  name="examineUserName" placeholder="选择核查人" class="form-control" type="text"  onclick="selectExamineUser()" maxlength="30" readonly="true" required>
@@ -154,19 +154,19 @@
    //根据是否为隐患--来控制--显示选择核查人--是否显示
    $("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() {