Browse Source

搜索后隐藏

wangqin
Joe 10 months ago
parent
commit
3da7b8a5cc
  1. 5
      ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue

5
ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue

@ -1,5 +1,5 @@
<template>
<ElPopover placement="bottom" popper-class="global-input-search-popover" :popperOptions="popperOptions"
<ElPopover ref="PopoverRef" placement="bottom" popper-class="global-input-search-popover" :popperOptions="popperOptions"
:visibleArrow="false" :width="this.width" trigger="click" @show="handleShow">
<div class='InputSearch' slot="reference" ref="ReferenceInputRef">
<span>{{ placeholder }}</span>
@ -77,11 +77,14 @@ export default {
handleResetForm() {
this.$refs.FormConfigRef?.reset();
this.$refs.PopoverRef.doClose();
this.$emit('handleSearch', cloneDeep(this.$refs.FormConfigRef?.formData));
},
handleSearch() {
this.$refs.FormConfigRef.validate()
.then((result) => {
this.$refs.PopoverRef.doClose();
this.$emit('handleSearch', result);
})
.catch((err) => {

Loading…
Cancel
Save