From e0e522aa69f69e0aa95f677fc083734281099df2 Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期一, 15 十一月 2021 09:39:26 +0800
Subject: [PATCH] 回车查询
---
zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Index.cshtml | 2 +-
zhengcaioa/zhengcaioa/wwwroot/css/plugins/chosen/chosen.css | 34 +++++++++++++++++++++++++---------
zhengcaioa/zhengcaioa/Views/Shared/_Layout_Search.cshtml | 10 +++++++++-
zhengcaioa/zhengcaioa/Views/Home/login.cshtml | 12 +++++++++++-
4 files changed, 46 insertions(+), 12 deletions(-)
diff --git a/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Index.cshtml b/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Index.cshtml
index b893c77..0bf08a7 100644
--- a/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Index.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/ExpertTestTopic/Index.cshtml
@@ -50,7 +50,7 @@
{ label: '棰樺瀷', name: 'Topictype', labtype: 'combox', hidden: false, data: JSON.parse(topictype), cwidth: '5%', cccwidth: '15%' },
{ label: '鐭ヨ瘑鐐�', name: 'Zhishitype', labtype: 'combox', hidden: false, data: JSON.parse(zhishitype), cwidth: '5%', cccwidth: '15%' },
{ label: '娉曞緥', name: 'Falv', labtype: 'combox', hidden: false, data: JSON.parse(Falv), cwidth: '5%', cccwidth: '15%' },
- { label: '閲嶇偣鏍囨敞', name: 'Zhongdian', labtype: 'combox', hidden: false, data: JSON.parse(zhongdian), cwidth: '5%', cccwidth: '15%' },
+ //{ label: '閲嶇偣鏍囨敞', name: 'Zhongdian', labtype: 'combox', hidden: false, data: JSON.parse(zhongdian), cwidth: '5%', cccwidth: '15%' },
{ label: '瑙f瀽', name: 'JiexiStatus', labtype: 'combox', hidden: false, data: JSON.parse(jiexi_status), cwidth: '5%', cccwidth: '15%' },
{ label: '瀹℃牳', name: 'ShenpiStatus', labtype: 'combox', hidden: false, data: JSON.parse(shenpi_status), cwidth: '5%', cccwidth: '15%' },
diff --git a/zhengcaioa/zhengcaioa/Views/Home/login.cshtml b/zhengcaioa/zhengcaioa/Views/Home/login.cshtml
index 093ab11..76a2d94 100644
--- a/zhengcaioa/zhengcaioa/Views/Home/login.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Home/login.cshtml
@@ -257,7 +257,7 @@
<input name="hidIp" id="hidIp" type="hidden" class="form-control">
</div>
</div>
- <button class="btn btn-lg btn-login btn-block" type="submit">
+ <button class="btn btn-lg btn-login btn-block" id="login" type="submit">
鐧� 褰�
</button>
<div class="row">
@@ -345,6 +345,16 @@
else {
console.log("璇蜂娇鐢ㄤ富娴佹祻瑙堝櫒锛歝hrome,firefox,opera,safari");
}
+
+
+ //鍥炶溅浜嬩欢
+ document.onkeydown = function (event) {
+ var e = event || window.event;
+ if (e && e.keyCode == 13) { //鍥炶溅閿殑閿�间负13
+ $("#login").click(); //璋冪敤鐧诲綍鎸夐挳鐨勭櫥褰曚簨浠�
+ }
+ };
+
</script>
</body>
</html>
diff --git a/zhengcaioa/zhengcaioa/Views/Shared/_Layout_Search.cshtml b/zhengcaioa/zhengcaioa/Views/Shared/_Layout_Search.cshtml
index 524ded9..d7b99b3 100644
--- a/zhengcaioa/zhengcaioa/Views/Shared/_Layout_Search.cshtml
+++ b/zhengcaioa/zhengcaioa/Views/Shared/_Layout_Search.cshtml
@@ -22,7 +22,7 @@
<link href="~/css/bootstrap.min.css" rel="stylesheet">
<link href="~/css/font-awesome.min.css" rel="stylesheet">
<link href="~/css/plugins/iCheck/custom.css" rel="stylesheet">
- <link href="~/css/plugins/chosen/chosen.css?v=7" rel="stylesheet">
+ <link href="~/css/plugins/chosen/chosen.css?v=9" rel="stylesheet">
<link href="~/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
<script type="text/javascript">
@@ -65,6 +65,14 @@
Verify.isEmptyMsg = '涓嶈兘涓虹┖';
Verify.isShortLengthMsg = '闀垮害杩囬暱';
Verify.isLongLengthMsg = '鏁版嵁澶暱';
+ //鍥炶溅浜嬩欢
+ document.onkeydown = function (event) {
+ var e = event || window.event;
+ if (e && e.keyCode == 13) { //鍥炶溅閿殑閿�间负13
+ //$("#login").click(); //璋冪敤鐧诲綍鎸夐挳鐨勭櫥褰曚簨浠�
+ _pageSearch();
+ }
+ };
</script>
<style type="text/css">
diff --git a/zhengcaioa/zhengcaioa/wwwroot/css/plugins/chosen/chosen.css b/zhengcaioa/zhengcaioa/wwwroot/css/plugins/chosen/chosen.css
index 7599a85..4375e0b 100644
--- a/zhengcaioa/zhengcaioa/wwwroot/css/plugins/chosen/chosen.css
+++ b/zhengcaioa/zhengcaioa/wwwroot/css/plugins/chosen/chosen.css
@@ -1,11 +1,11 @@
/*!
Chosen, a Select Box Enhancer for jQuery and Prototype
by Patrick Filler for Harvest, http://getharvest.com
-
+
Version 1.1.0
Full source at https://github.com/harvesthq/chosen
Copyright (c) 2011 Harvest http://getharvest.com
-
+
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
This file is generated by `grunt build`, do not edit it by hand.
*/
@@ -175,7 +175,7 @@
margin: 0;
padding: 5px 6px;
list-style: none;
- line-height: 7px;
+ line-height: 15px;
-webkit-touch-callout: none;
}
@@ -233,7 +233,8 @@
min-height: 30px;
overflow: hidden;
padding: 2px;
- position: relative; box-sizing:border-box;
+ position: relative;
+ box-sizing: border-box;
width: 100%;
}
@@ -482,8 +483,23 @@
}
/* @end */
-.chosen-container-single .chosen-single{ line-height:28px;}
-.chosen-container-single .chosen-single div b{ background-position:0px 4px;}
-.chosen-container-active.chosen-with-drop .chosen-single div b { background-position: -18px 4px; }
-.chosen-container{ display:block;}
-.chosen-container-multi .chosen-choices{min-height:30px; padding:0px;}
\ No newline at end of file
+.chosen-container-single .chosen-single {
+ line-height: 28px;
+}
+
+ .chosen-container-single .chosen-single div b {
+ background-position: 0px 4px;
+ }
+
+.chosen-container-active.chosen-with-drop .chosen-single div b {
+ background-position: -18px 4px;
+}
+
+.chosen-container {
+ display: block;
+}
+
+.chosen-container-multi .chosen-choices {
+ min-height: 30px;
+ padding: 0px;
+}
--
Gitblit v1.9.1