Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
self-support
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
李俊赕
self-support
Commits
1a4dda82
Commit
1a4dda82
authored
Aug 31, 2021
by
高铭波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 工单联想优化
parent
5e039b1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
search.vue
src/pages/order/search.vue
+10
-3
No files found.
src/pages/order/search.vue
View file @
1a4dda82
...
@@ -115,10 +115,10 @@ export default {
...
@@ -115,10 +115,10 @@ export default {
return
process
.
uniEnv
.
qn_base_url
+
"SearchEmpty.png"
;
return
process
.
uniEnv
.
qn_base_url
+
"SearchEmpty.png"
;
},
},
showAssociation
()
{
showAssociation
()
{
return
this
.
focused
&&
!
this
.
$u
.
test
.
isEmpty
(
this
.
associationList
);
return
this
.
focused
&&
this
.
search
.
keyword
&&
!
this
.
$u
.
test
.
isEmpty
(
this
.
associationList
);
},
},
showOrderCell
()
{
showOrderCell
()
{
return
!
this
.
focused
&&
this
.
$u
.
test
.
isEmpty
(
this
.
associationList
)
;
return
!
this
.
focused
;
},
},
},
},
methods
:
{
methods
:
{
...
@@ -128,6 +128,7 @@ export default {
...
@@ -128,6 +128,7 @@ export default {
if
(
this
.
search
.
keyword
)
{
if
(
this
.
search
.
keyword
)
{
getApp
().
track
(
"search_order"
,
{
keyword
:
this
.
search
.
keyword
});
getApp
().
track
(
"search_order"
,
{
keyword
:
this
.
search
.
keyword
});
this
.
getOrderList
();
this
.
getOrderList
();
this
.
focused
=
false
;
}
}
},
},
// 高亮文本
// 高亮文本
...
@@ -169,7 +170,7 @@ export default {
...
@@ -169,7 +170,7 @@ export default {
},
},
/** 失去焦点 */
/** 失去焦点 */
loseFocus
()
{
loseFocus
()
{
this
.
focused
=
false
;
},
},
// 页面数据
// 页面数据
getOrderList
(
event
)
{
getOrderList
(
event
)
{
...
@@ -243,6 +244,9 @@ export default {
...
@@ -243,6 +244,9 @@ export default {
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.search-wrap
{
.search-wrap
{
display
:
flex
;
flex-direction
:
column
;
height
:
100vh
;
.top-item
{
.top-item
{
position
:
sticky
;
position
:
sticky
;
padding
:
20rpx
0
;
padding
:
20rpx
0
;
...
@@ -283,6 +287,9 @@ export default {
...
@@ -283,6 +287,9 @@ export default {
}
}
.association-wrap
{
.association-wrap
{
height
:
100%
;
padding-bottom
:
44rpx
;
overflow
:
auto
;
.association-cell
{
.association-cell
{
display
:
flex
;
display
:
flex
;
padding
:
26rpx
32rpx
;
padding
:
26rpx
32rpx
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment