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