fix:cabinet搜索框bug修复

This commit is contained in:
bsdbc
2020-03-03 14:57:18 +08:00
parent 29f8797a93
commit cd71698540
2 changed files with 4 additions and 10 deletions

View File

@@ -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) {

View File

@@ -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};