Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
dj-scrm-wx-work-file-upload
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
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 aca5d480
authored
Feb 25, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:修复查询监听问题
1 parent
1b14d129
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletions
src/components/Search.vue
src/views/services/index.vue
src/components/Search.vue
View file @
aca5d48
...
@@ -6,6 +6,8 @@
...
@@ -6,6 +6,8 @@
@
search=
"onSearch"
@
search=
"onSearch"
right-icon=
"search"
right-icon=
"search"
left-icon=
""
left-icon=
""
v-on:click-right-icon=
"onSearchRight"
@
input=
"changeValue"
/>
/>
</div>
</div>
</
template
>
</
template
>
...
@@ -33,6 +35,15 @@ export default {
...
@@ -33,6 +35,15 @@ export default {
methods
:
{
methods
:
{
onSearch
(
e
)
{
onSearch
(
e
)
{
this
.
$emit
(
'search'
,
e
)
this
.
$emit
(
'search'
,
e
)
},
onSearchRight
(){
this
.
$emit
(
'rightSearch'
,
this
.
inputValue
)
},
changeValue
(
e
){
this
.
inputValue
=
e
if
(
!
e
){
this
.
$emit
(
'search'
,
e
)
}
}
}
}
}
}
}
...
...
src/views/services/index.vue
View file @
aca5d48
<
template
>
<
template
>
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"search sticky"
>
<div
class=
"search sticky"
>
<search
placeholder=
"输入客户姓名、手机号、车架号"
@
search=
"search"
/>
<search
placeholder=
"输入客户姓名、手机号、车架号"
@
rightSearch=
"toIconSearch"
@
search=
"search"
/>
</div>
</div>
<div
class=
"tab_widget"
>
<div
class=
"tab_widget"
>
<div
v-for=
"(item, index) in tabs"
:key=
"index"
class=
"tab_pannel flex_ccc"
>
<div
v-for=
"(item, index) in tabs"
:key=
"index"
class=
"tab_pannel flex_ccc"
>
...
@@ -160,6 +160,9 @@ export default {
...
@@ -160,6 +160,9 @@ export default {
this
.
getServicesList
()
this
.
getServicesList
()
this
.
getOrderCount
(
e
)
this
.
getOrderCount
(
e
)
},
},
toIconSearch
(
e
){
this
.
search
(
e
)
},
changeTab
(
e
)
{
changeTab
(
e
)
{
this
.
currentTabIndex
=
e
this
.
currentTabIndex
=
e
let
dataPerfection
=
e
==
2
?
1
:
e
==
1
?
0
:
3
let
dataPerfection
=
e
==
2
?
1
:
e
==
1
?
0
:
3
...
...
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