|
@@ -8,6 +8,8 @@
|
|
|
<meta http-equiv="Cache-Control" content="no-siteapp" />
|
|
|
<#include "/base/list_base.ftl">
|
|
|
<link rel="stylesheet" type="text/css" href="${path}/common/lib/jquery.ui/jquery-ui.css" />
|
|
|
+ <link rel="stylesheet" type="text/css" href="${path}/common/static/chosen/css/chosen.css" />
|
|
|
+ <script type="text/javascript" src="${path}/common/static/chosen/js/chosen.jquery.js"></script>
|
|
|
<title>Excel - 选择文件内容 - Watero-RST 1.0</title>
|
|
|
</head>
|
|
|
<body>
|
|
@@ -187,7 +189,7 @@
|
|
|
<input type="hidden" value="${companyId!''}" id="companyId" name="companyId">
|
|
|
<div id="store-select-1" style="width: 100%;float: left;">
|
|
|
<label>
|
|
|
- <select class="my-select" name="shop-id" id="shop-id" style="height: 30px;width: 180px;margin: 0px;">
|
|
|
+ <select class="chosen" name="shop-id" id="shop-id" style="height: 30px;width: 180px;margin: 0px;">
|
|
|
<#if listStoreInfo?? && (listStoreInfo?size > 0) >
|
|
|
<#list listStoreInfo as info>
|
|
|
<option value="${info.storeId!''}" >${info.storeName!''}</option>
|
|
@@ -199,7 +201,7 @@
|
|
|
|
|
|
<div id="store-select-2" style="display: none">
|
|
|
<div>
|
|
|
- <select class="my-select" name="order_store_info" id="order_store_info" matchSelect="店铺|订单来源|渠道商" style="height: 30px;width: 180px;margin: 0px;">
|
|
|
+ <select class="chosen" name="order_store_info" id="order_store_info" matchSelect="店铺|订单来源|渠道商" style="height: 30px;width: 180px;margin: 0px;">
|
|
|
<#list heads as head>
|
|
|
<option value="${head}" >${head}</option>
|
|
|
</#list>
|
|
@@ -653,5 +655,26 @@
|
|
|
function check_fault() {
|
|
|
window.location.href = error_path;
|
|
|
}
|
|
|
+
|
|
|
+ $('.chosen').chosen({
|
|
|
+ no_results_text: "没有找到结果!",//搜索无结果时显示的提示
|
|
|
+ search_contains:true, //关键字模糊搜索。设置为true,只要选项包含搜索词就会显示;设置为false,则要求从选项开头开始匹配
|
|
|
+ allow_single_deselect:true, //单选下拉框是否允许取消选择。如果允许,选中选项会有一个x号可以删除选项
|
|
|
+ disable_search: false, //禁用搜索。设置为true,则无法搜索选项。
|
|
|
+ disable_search_threshold: 0, //当选项少等于于指定个数时禁用搜索。
|
|
|
+ inherit_select_classes: true, //是否继承原下拉框的样式类,此处设为继承
|
|
|
+ placeholder_text_single: '选择国家', //单选选择框的默认提示信息,当选项为空时会显示。如果原下拉框设置了data-placeholder,会覆盖这里的值。
|
|
|
+ width: '227px', //设置chosen下拉框的宽度。即使原下拉框本身设置了宽度,也会被width覆盖。
|
|
|
+ max_shown_results: 1000, //下拉框最大显示选项数量
|
|
|
+ display_disabled_options: false,
|
|
|
+ single_backstroke_delete: false, //false表示按两次删除键才能删除选项,true表示按一次删除键即可删除
|
|
|
+ case_sensitive_search: false, //搜索大小写敏感。此处设为不敏感
|
|
|
+ group_search: false, //选项组是否可搜。此处搜索不可搜
|
|
|
+ include_group_label_in_selected: true //选中选项是否显示选项分组。false不显示,true显示。默认false。
|
|
|
+ });
|
|
|
+ $('.chosen2').chosen({
|
|
|
+ search_contains:false,
|
|
|
+ enable_split_word_search: true //分词搜索,选项词可通过空格或'[]'分隔。search_contains为false时才能看出效果
|
|
|
+ });
|
|
|
</script>
|
|
|
</html>
|