username@email.com
2021-06-25 77f8f99697748749edd553b127de34b02ccb18c5
zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml
@@ -90,7 +90,7 @@
                                                                                            <a class="collapse-link" onclick="collapseBox(this);"><i class="fa fa-chevron-up" title="折叠/展开明细"></i></a>&nbsp;&nbsp;
                                </div>*@
                        </div>
                        <div id="div_content" class="ibox-content" style="background-color:white;">
                        <div id="div_content" class="ibox-content" style="background-color:white;overflow-y:auto;">
                            <div class="row">
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">问题类型<i class="red">*</i></label>
@@ -148,18 +148,24 @@
                                </div>
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <label class="text-right col-sm-1 col-md-1 control-label">问题<i class="red">*</i></label>
                                    <div class="col-sm-11 col-md-11"><input id="Question" class="form-control" label="问题" name="Question" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="450" ismust="true" type="text" value="@Model.Question"></div>
                                    <div class="col-sm-11 col-md-11">
                                        @*<input id="Question" class="form-control" label="问题" name="Question" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="450" ismust="true" type="text" value="@Model.Question">*@
                                        <textarea class="form-control bt" id="Question" name="Question" title="答案" isempty="" maxlength="450" length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Question</textarea>
                                    </div>
                                </div>
                                <div class="clearfix layer-area" style="padding-bottom:15px;">
                                    <label grouptype="Vdata" class="text-right col-sm-1 col-md-1 control-label">答案<i class="red">*</i></label>
                                    <div class="col-sm-11 col-md-11">
                                        <textarea class="form-control bt" id="Anwser" name="Anwser" title="答案" isempty="" maxlength="4000" style=" height:200px" length="long">@Model.Anwser</textarea>
                                        <textarea class="form-control bt" id="Anwser" name="Anwser" title="答案" isempty="" maxlength="4000"   length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'" >@Model.Anwser</textarea>
                                    </div>
                                </div>
                                <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-11 col-md-11">    <textarea class="form-control bt" id="Shiyongfatiao" name="Shiyongfatiao" title="答案" isempty="" maxlength="450" style=" height:60px" length="long">@Model.Shiyongfatiao</textarea>  </div>
                                    <div class="col-sm-11 col-md-11">    <textarea class="form-control bt" id="Shiyongfatiao" name="Shiyongfatiao" title="答案" isempty="" maxlength="450"   length="long" style="resize:none;overflow-y:hidden; min-height:60px;" onpropertychange="this.style.height=this.scrollHeight + 'px'" oninput="this.style.height=this.scrollHeight + 'px'">@Model.Shiyongfatiao</textarea>  </div>
                                </div>
                            </div>
@@ -188,6 +194,18 @@
    </form>
    <script type="text/javascript">
        var Question = document.getElementById("Question");
        Question.style.height = Question.scrollHeight + 'px';
        var Anwser = document.getElementById("Anwser");
        Anwser.style.height = Anwser.scrollHeight + 'px';
        var Shiyongfatiao = document.getElementById("Shiyongfatiao");
        Shiyongfatiao.style.height = Shiyongfatiao.scrollHeight + 'px';
      var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height()*2 - 95;
      $("#div_content").height(hh);
@@ -215,7 +233,11 @@
         "hideEasing": "linear",
         "showMethod": "fadeIn",
         "hideMethod": "fadeOut"
      };
        };
        var delPosition = function () {
            if (id == null || id=='') {
                toastr.warning("请先保存");
@@ -349,8 +371,11 @@
                parent.layer.msg('保存失败', { icon: 5 });
            }
         });
      }
        }
        $("#Questiontype").change(function () {
@@ -369,8 +394,11 @@
                    quxian.append(aaa);
                    if (data.length > 0) {
                        for (var i = 0; i < data.length; i++) {
                            var o = '<option value="' + data[i].CodeSn + '" hassubinfo="true">' + data[i].Comments + '</option>';
                            if (i == 0) {
                                o = '<option value="' + data[i].CodeSn + '" hassubinfo="true"  selected="selected" >' + data[i].Comments + '</option>';
                            }
                            quxian.append(o);
                        }
                    }
@@ -383,6 +411,12 @@
            });
        });
        if (id == null || id == '') {
            $('#Questiontype option:eq(1)').attr('selected', 'selected');
            $('#Questiontype').trigger('change');
        }
      function _pageAutoClose() {
         parent.window._reloadPageData();
         var index = parent.layer.getFrameIndex(window.name);