Commit 1a4dda82 authored by 高铭波's avatar 高铭波

feat: 工单联想优化

parent 5e039b1b
...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment