From 59af9c7cbaf7eb16cca00c11426729d012196d88 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期五, 25 六月 2021 13:08:05 +0800
Subject: [PATCH] 提交
---
zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml | 48 +++++++++++++++++++++++++++++++++++++++++-------
1 files changed, 41 insertions(+), 7 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml b/zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml
index ade81d5..2576ec2 100644
--- a/zhengcaioa/zhengcaioa/Views/Liaotian/Edit.cshtml
+++ b/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>
</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);
--
Gitblit v1.9.1