From 91bad66d03c07b6cb2a3eb09bdd98faab4b8caa3 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期四, 02 十二月 2021 14:03:34 +0800 Subject: [PATCH] 提交 --- zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml | 39 ++++++++++++++++++++++++++++++++------- 1 files changed, 32 insertions(+), 7 deletions(-) diff --git a/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml b/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml index a287ee4..ea931d6 100644 --- a/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml +++ b/zhengcaioa/zhengcaioa/Views/SysCode/Editlaw.cshtml @@ -3,7 +3,7 @@ @using zhengcaioa.Models; @{ - + List<SysCodeDtl> falv = ViewData["falv"] as List<SysCodeDtl>; //娉曞緥 @@ -124,11 +124,30 @@ </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">鍚嶇О</label> + <label class="text-right col-sm-1 col-md-1 control-label">娉曞緥鍚嶇О</label> <div class="col-sm-10 col-md-10"> - <input class="form-control" label="鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments"> + @*<input class="form-control" label="娉曞緥鍚嶇О" id="Comments" name="Comments" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="100" ismust="true" type="text" value="@Model.Comments">*@ + <select id="Comments" class="form-control" name="Comments" data-placeholder="閫夋嫨 搴忓垪 ..."> + <option value="" hassubinfo="true">璇烽�夋嫨</option> + @foreach (var item in falv) + { + @if (!item.CodeSn.Equals(Model.Comments)) + { + <option value="@item.CodeSn" hassubinfo="true"> + @item.Comments + </option> + } + else + { + <option value="@item.CodeSn" hassubinfo="true" selected="selected"> + @item.Comments + </option> + } + } + } + </select> </div> </div> <div class="clearfix layer-area" style="padding-bottom:15px;display:none;"> @@ -140,12 +159,14 @@ </div> <div class="clearfix layer-area" style="padding-bottom:15px;"> - <label class="text-right col-sm-1 col-md-1 control-label">澶囨敞</label> + <label class="text-right col-sm-1 col-md-1 control-label">鍐呭</label> <div class="col-sm-10 col-md-10"> - <input class="form-control" label="澶囨敞" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents"> + @*<input class="form-control" label="鍐呭" id="Contents" name="Contents" labtype="txt" addvisible="true" editvisible="true" reg="" maxlength="300" ismust="true" type="text" value="@Model.Contents">*@ - + <textarea class="form-control bt" id="Contents" name="Contents" 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.Contents</textarea> </div> + + </div> </div> @@ -198,6 +219,10 @@ var hh = document.body.clientHeight - $('.ibox-title').height() - $("#top").height() * 2; $("#div_content").height(hh); + + var Contents = document.getElementById("Contents"); + + Contents.style.height = Contents.scrollHeight + 'px'; toastr.options = { "closeButton": true, @@ -280,7 +305,7 @@ if ($.trim($("#Comments").val()) == '') { - toastr.warning("鍚嶇О涓嶈兘涓虹┖"); + toastr.warning("娉曞緥鍚嶇О涓嶈兘涓虹┖"); return; } -- Gitblit v1.9.1