Compare commits

...

2 Commits

Author SHA1 Message Date
LiJianZhao 759fc69fd7 Merge branch 'main' of ssh://git.jizhiweb.cn:2222/clinic-v2/web
# Conflicts:
#	src/components/outpatient/DiagnosisSearchInput.vue
2025-05-06 14:55:56 +08:00
LiJianZhao 227ea607cb dev 2025-05-06 14:54:51 +08:00
1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
<template>
<el-input v-model="keyword" style="width:100%;height: 100%" @input="changeInput" :disabled="disabled"
<el-input v-model="keyword" style="width:100%;height: 100%" @input="changeInput" :disabled="disabled" @click="changeInput"
placeholder="诊断选择" ref="inputRef" @focus="focus"></el-input>
<el-popover placement="bottom-start" trigger="click" :width="props.width" ref="popoverRef" @before-enter="beforeShow" :virtual-ref="inputRef" @hide ="afterShow">
<div class="container" v-if="searchList.length > 0">
<div class="container">
<el-table :data="searchList" style="width: 100%" @row-click="clickRow" :show-header="props.showHeader" size="small"
max-height="250px">
<el-table-column v-for="item in showConfig" :prop="item.prop" :label="item.label"
@ -88,9 +88,9 @@ const clickRow = (row: any) => {
popoverRef.value.hide()
}
const beforeShow = () => {
if (searchList.value.length === 0) {
popoverRef.value.hide()
}
// if (searchList.value.length === 0) {
// popoverRef.value.hide()
// }
}
const afterShow = () => {
if (nameList.value.length === 0){