Commit 9a79020c by 陈羽

update: 创建人筛选

parent 08fb1aa8
......@@ -222,7 +222,6 @@ export default {
if (!e.target.value) {
this.creatorId = '';
this.creatorName = '';
this.handleInputSearch();
}
},
selectCreator(v) {
......@@ -230,8 +229,8 @@ export default {
this.$nextTick(() => {
this.creatorName = v.creatorName;
this.creatorId = v.creatorId;
this.handleInputSearch();
});
this.handleInputSearch();
},
querySearch(v, cb) {
this.creatorLoading = true;
......
......@@ -429,7 +429,6 @@ export default {
if (!e.target.value) {
this.creatorId = '';
this.creatorName = '';
this.handleInputSearch();
}
},
selectCreator(v) {
......@@ -437,8 +436,8 @@ export default {
this.$nextTick(() => {
this.creatorName = v.creatorName;
this.creatorId = v.creatorId;
this.getListCurr();
});
this.getListCurr();
},
querySearch(v, cb) {
this.creatorLoading = true;
......
......@@ -245,7 +245,6 @@ export default {
if (!e.target.value) {
this.updaterId = '';
this.updaterName = '';
this.handleInputSearch();
}
},
selectCreator(v) {
......@@ -253,8 +252,8 @@ export default {
this.$nextTick(() => {
this.updaterName = v.creatorName;
this.updaterId = v.creatorId;
this.handleInputSearch();
});
this.handleInputSearch();
},
querySearch(v, cb) {
this.creatorLoading = true;
......
......@@ -36,7 +36,7 @@
<el-input v-model="searchValue" placeholder="请输入自提点名称/code" prefix-icon="el-icon-search" clearable class="w-280" @keyup.enter.native="getSearchList" @clear="getSearchList"> </el-input>
</div>
<div class="search-item m-r-10">
<el-autocomplete prefix-icon="el-icon-search" popper-class="autocomplete-wrap" class="inline-input" :value="creatorName" :select-when-unmatched="true" @select="selectCreator" :fetch-suggestions="querySearch" placeholder="请输入创建人" :trigger-on-focus="false">
<el-autocomplete prefix-icon="el-icon-search" popper-class="autocomplete-wrap" class="inline-input" :value="creatorName" :select-when-unmatched="true" @change.native="changeAuto" @select="selectCreator" :fetch-suggestions="querySearch" placeholder="请输入创建人" :trigger-on-focus="false">
<template slot-scope="{ item }">{{ item.creatorName }}</template>
</el-autocomplete>
</div>
......@@ -165,13 +165,21 @@ export default {
this.getStatus();
},
methods: {
changeAuto(e) {
if (!e.target.value) {
this.creatorId = '';
this.creatorName = '';
// this.getSearchList();
}
},
selectCreator(v) {
this.creatorName = '';
this.creatorId = '';
this.$nextTick(() => {
this.creatorName = v.creatorName;
this.creatorId = v.creatorId;
this.getSearchList();
});
this.getSearchList();
},
querySearch(v, cb) {
this.creatorLoading = true;
......
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