| | |
| | | <a class="collapse-link" onclick="collapseBox(this);"><i class="fa fa-chevron-up" title="折叠/展开明细"></i></a> |
| | | </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> |
| | |
| | | </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> |
| | |
| | | |
| | | </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); |
| | | |
| | |
| | | "hideEasing": "linear", |
| | | "showMethod": "fadeIn", |
| | | "hideMethod": "fadeOut" |
| | | }; |
| | | }; |
| | | |
| | | |
| | | |
| | | |
| | | var delPosition = function () { |
| | | if (id == null || id=='') { |
| | | toastr.warning("请先保存"); |
| | |
| | | parent.layer.msg('保存失败', { icon: 5 }); |
| | | } |
| | | }); |
| | | } |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | $("#Questiontype").change(function () { |
| | | |
| | |
| | | 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); |
| | | } |
| | | } |
| | |
| | | }); |
| | | }); |
| | | |
| | | |
| | | 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); |