fix:cabinet搜索框bug修复
This commit is contained in:
@@ -182,15 +182,6 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
searchMsg: {
|
|
||||||
deep: true,
|
|
||||||
immediate: true,
|
|
||||||
handler(n, o) {
|
|
||||||
this.$nextTick(() => {
|
|
||||||
this.clear_input();
|
|
||||||
})
|
|
||||||
}
|
|
||||||
},
|
|
||||||
select_list: {
|
select_list: {
|
||||||
//监听下拉列表
|
//监听下拉列表
|
||||||
handler(newData, oldData) {
|
handler(newData, oldData) {
|
||||||
|
|||||||
@@ -501,12 +501,13 @@
|
|||||||
this.currentShowDc=dc;
|
this.currentShowDc=dc;
|
||||||
this.cabSearchLabel={idcId:this.currentShowDc.id};
|
this.cabSearchLabel={idcId:this.currentShowDc.id};
|
||||||
this.getCabinetDatas();
|
this.getCabinetDatas();
|
||||||
|
let temp=this;
|
||||||
|
setTimeout(function(){temp.$refs.cabSearchInput.clear_input();},100)
|
||||||
},
|
},
|
||||||
getCabinetDatas:function(){
|
getCabinetDatas:function(){
|
||||||
this.$get('/cabinet',this.cabSearchLabel).then(response=>{
|
this.$get('/cabinet',this.cabSearchLabel).then(response=>{
|
||||||
if(response.code==200 && response.msg=='success'){
|
if(response.code==200 && response.msg=='success'){
|
||||||
this.cabinetDatas=response.data.list;
|
this.cabinetDatas=response.data.list;
|
||||||
console.log(this.cabinetDatas)
|
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
@@ -537,6 +538,8 @@
|
|||||||
back:function(){
|
back:function(){
|
||||||
this.tabShow=1;
|
this.tabShow=1;
|
||||||
this.getTableData();
|
this.getTableData();
|
||||||
|
let temp=this;
|
||||||
|
setTimeout(function(){temp.$refs.searchInput.clear_input();},100)
|
||||||
},
|
},
|
||||||
cabSearch:function(obj){
|
cabSearch:function(obj){
|
||||||
this.cabSearchLabel={idcId:this.currentShowDc.id};
|
this.cabSearchLabel={idcId:this.currentShowDc.id};
|
||||||
|
|||||||
Reference in New Issue
Block a user