优化:综合浏览前端更多搜索条件显示与收起时的bug

master
guoxin 1 year ago
parent dae3c5b24a
commit b18528eb54
  1. 7
      shandan-browser/src/main/resources/static/js/browser.js
  2. 2
      shandan-browser/src/main/resources/view/browser.html

@ -205,8 +205,9 @@ layui.use(['layer', 'listPage', 'globalTree', 'gtable', 'form', 'element', 'drop
const display = $('#condition-div').css('display'); const display = $('#condition-div').css('display');
if (display == 'none') { if (display == 'none') {
$('div[lay-id="dirMetadataTable"] .mengban').show().on('click', function () { $('div[lay-id="dirMetadataTable"] .mengban').show().on('click', function () {
$('#condition-div').slideUp(100, 'linear')
$(this).hide(); $(this).hide();
$('#condition-btn').click(); //$('#condition-btn').click();
}); });
} }
$('#condition-div').slideToggle(100, 'linear', conditionSlideToggle) $('#condition-div').slideToggle(100, 'linear', conditionSlideToggle)
@ -226,7 +227,7 @@ layui.use(['layer', 'listPage', 'globalTree', 'gtable', 'form', 'element', 'drop
}); });
$('#condition-cancel-btn').on('click', function () { $('#condition-cancel-btn').on('click', function () {
$('#condition-div').slideToggle(100, 'linear') $('#condition-div').slideUp(100, 'linear')
$('div[lay-id="dirMetadataTable"] .mengban').hide(); $('div[lay-id="dirMetadataTable"] .mengban').hide();
}); });
@ -582,7 +583,7 @@ class SearchSuggest {
hide() { hide() {
this.$elem.hide(); this.$elem.hide();
this.$shadeBox.hide(); this.$shadeBox.hide();
this.$bindElem.css('display', 'unset'); this.$bindElem.css({'display': 'unset', 'z-index': 700});
this.isHide = true; this.isHide = true;
this.bindElem(); this.bindElem();
} }

@ -122,7 +122,7 @@
</div> </div>
</div> </div>
<div class="b-search-slide-div" id="condition-div" style="z-index: 2"> <div class="b-search-slide-div" id="condition-div" style="z-index: 1000">
<div class="layui-form-item"> <div class="layui-form-item">
<div class="layui-inline"> <div class="layui-inline">
<label class="layui-form-label" label-name="inputDate">任务时间</label> <label class="layui-form-label" label-name="inputDate">任务时间</label>