username@email.com
2021-10-21 c571ee7de9595e2616e0e5f85734dbaa42ed6098
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Edit.cshtml
@@ -251,13 +251,13 @@
                                    {
                                    <div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:4%;">
                                        @*<div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;" label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="@expertTestTopicanwserDTOs[i].Anwserno" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        </div>*@
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">@expertTestTopicanwserDTOs[i].Anwserno、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
                                            <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="@expertTestTopicanwserDTOs[i].Anwser">
                                            <input type="hidden" name="anwserno" value="@expertTestTopicanwserDTOs[i].Anwserno" />
                                        </div>
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
@@ -704,8 +704,8 @@
                    }
                }
                if (booll < 1) {
                    toastr.warning("多单选至少有一个正确答案");
                if (booll <= 1) {
                    toastr.warning("多单选至少有两个正确答案");
                    return;
                }
            }
@@ -838,8 +838,8 @@
                    }
                }
                if (booll < 1) {
                    toastr.warning("多单选至少有一个正确答案");
                if (booll <= 1) {
                    toastr.warning("多单选至少有两个正确答案");
                    return;
                }
            }
@@ -957,7 +957,7 @@
                                                        </div>`);
              } else  if (num == 2) {
                $('#addlist_2').append(oTr);
                  $(oTr).html(` <div class="fatiaomeirong" >
                  $(oTr).html(` <div class="fatiaomeirong" >
<div class="clearfix layer-area" style="padding-bottom:15px;">
 <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
@@ -1111,13 +1111,11 @@
                $('#addlist_3').html(`
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="A" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">A、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
                                            <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
                                             <input type="hidden" name="anwserno" value="A" />
                                        </div>
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
@@ -1135,13 +1133,11 @@
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                        <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="B" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">B、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
                                            <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
                                            <input type="hidden" name="anwserno" value="B" />
                                        </div>
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
@@ -1159,13 +1155,11 @@
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                         <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="C" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">C、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
                                            <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
                                            <input type="hidden" name="anwserno" value="C" />
                                        </div>
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
@@ -1183,13 +1177,11 @@
<div class="clearfix layer-area" style="padding-bottom:15px;">
                                        <label class="text-right col-sm-1 col-md-1 control-label"></label>
                                         <div class="col-sm-2 col-md-2" style="width:4%;">
                                            <input class="form-control" style="text-align:left;border:none;"  label="答案编号" name="anwserno" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="50" ismust="true" type="text" value="D" readonly="readonly">
                                        </div>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:10px;" name="Anwser1">、</label>
                                        <label class="text-right col-sm-1 col-md-1 control-label" style="width:15px;margin-left:15px;" name="Anwser1">D、</label>
                                        <div class="col-sm-6 col-md-6" name="Anwser2">
                                            <input class="form-control" label="答案" name="Anwser" labtype="txt" addvisible="true" editvisible="true" maxlength="500" reg="" ismust="flase" type="text" value="">
                                            <input type="hidden" name="anwserno" value="D" />
                                        </div>
                                        <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">
@@ -1223,7 +1215,7 @@
            }
        }
        function checkFlag(vi) {
            if ($("#Topictype").val() == "01" || $("#Topictype").val() == "03") {
            //if ($("#Topictype").val() == "01" || $("#Topictype").val() == "03") {
                if (vi.checked) {
                    var ssssss = document.getElementsByName("FlagName");
                    for (var i = 0; i < ssssss.length; i++) {
@@ -1231,7 +1223,7 @@
                    }
                    vi.checked = true;
                }
            }
            //}
        }
    </script>