|
@@ -110,7 +110,8 @@ export default {
|
|
|
},
|
|
|
saveDisable: false, //保存按钮禁止点击
|
|
|
showDrop: false, //下拉框显示文字
|
|
|
- searchType: 2
|
|
|
+ searchType: 2,
|
|
|
+ queryText: ''
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
@@ -127,6 +128,8 @@ export default {
|
|
|
methods: {
|
|
|
// 搜索列表
|
|
|
searchTerms(query) {
|
|
|
+ console.log(query, 'query');
|
|
|
+ // this.queryText = query;
|
|
|
if (!query) {
|
|
|
this.uniqueNameList = []
|
|
|
return;
|
|
@@ -152,14 +155,16 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- changeWord() {},
|
|
|
+ changeWord() {
|
|
|
+ },
|
|
|
// 获取焦点
|
|
|
handleFocus() {
|
|
|
+ // this.searchTerms(this.queryText);
|
|
|
// this.uniqueNameList = [];
|
|
|
},
|
|
|
handleclick() {
|
|
|
- this.uniqueNameList = [];
|
|
|
- this.form.searchText = '';
|
|
|
+ // this.uniqueNameList = [];
|
|
|
+ // this.form.searchText = '';
|
|
|
},
|
|
|
|
|
|
// 初始化表单数据
|