Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
monorepo
/
venus
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
1
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 44528c49
authored
Apr 13, 2026
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(venus-usedcar-quality): 选择销售顾问pad端回车无法搜索修改
1 parent
3d1872c7
Pipeline
#198
for
44528c49
failed
in 0 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
apps/web/venus-usedcar-quality/src/components/ConsultantPicker.vue
apps/web/venus-usedcar-quality/src/components/ConsultantPicker.vue
View file @
44528c4
...
@@ -114,11 +114,13 @@ function toggleSelect(o: OptionItem) {
...
@@ -114,11 +114,13 @@ function toggleSelect(o: OptionItem) {
<van-field
v-model=
"keywordInput"
<van-field
v-model=
"keywordInput"
class=
"cp-searchField"
class=
"cp-searchField"
clearable
clearable
enterkeyhint=
"search"
placeholder=
""
placeholder=
""
type=
"search"
@
blur=
"isFocused = false"
@
blur=
"isFocused = false"
@
clear=
"onClear"
@
clear=
"onClear"
@
focus=
"isFocused = true"
@
focus=
"isFocused = true"
@
key
up
.
enter=
"onSearch"
/>
@
key
down
.
enter=
"onSearch"
/>
<div
v-if=
"!hasInput && !isFocused"
class=
"cp-searchPlaceholder"
>
<div
v-if=
"!hasInput && !isFocused"
class=
"cp-searchPlaceholder"
>
<span
class=
"cp-searchPlaceholderText"
>
{{
isPad
?
"请输入"
:
"搜索"
}}
</span>
<span
class=
"cp-searchPlaceholderText"
>
{{
isPad
?
"请输入"
:
"搜索"
}}
</span>
<van-icon
class=
"cp-searchPlaceholderIcon"
name=
"search"
/>
<van-icon
class=
"cp-searchPlaceholderIcon"
name=
"search"
/>
...
@@ -143,28 +145,32 @@ function toggleSelect(o: OptionItem) {
...
@@ -143,28 +145,32 @@ function toggleSelect(o: OptionItem) {
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<van-empty
description=
"暂无数据"
/>
<van-empty
description=
"暂无数据"
image=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/empty_data.png"
/>
</
template
>
</
template
>
</div>
</div>
<div
v-else
>
<div
v-else
class=
"cp-grid"
>
<
template
v-if=
"!isEmpty"
>
<
template
v-if=
"!isEmpty"
>
<div
v-for=
"o in filteredOptions"
<div
class=
"cp-grid"
>
:key=
"o.sellerUserId"
<div
v-for=
"o in filteredOptions"
class=
"cp-grid-item"
:key=
"o.sellerUserId"
:class=
"
{ 'is-active': tempSelected.sellerUserId === o.sellerUserId }"
class=
"cp-grid-item"
@click="toggleSelect(o)">
:class=
"
{ 'is-active': tempSelected.sellerUserId === o.sellerUserId }"
{{
o
.
sellerName
}}
@click="toggleSelect(o)">
<img
v-show=
"tempSelected.sellerUserId === o.sellerUserId"
{{
o
.
sellerName
}}
alt=
""
<img
v-show=
"tempSelected.sellerUserId === o.sellerUserId"
class=
"selected-icon"
alt=
""
src=
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/pad_selected.png"
>
class=
"selected-icon"
src=
"https://img02.glsx.com.cn/weapp/resource/dj-car-boutique-work-wechat/pad_selected.png"
>
</div>
</div>
</div>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<van-empty
description=
"暂无数据"
/>
<van-empty
description=
"暂无数据"
image=
"https://img02.glsx.com.cn/weapp/resource/miniprogram/store-assistant/empty_data.png"
style=
"margin: 0 auto;"
/>
</
template
>
</
template
>
</div>
</div>
</div>
</div>
<div
class=
"cp-footer"
>
<div
class=
"cp-footer"
>
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment