```html
data:{
resultMaster: [],
otableData:[],
schfilter:''
}
watch: {
schfilter: function(val, oldVal){
this.resultMaster = this.otableData.filter(item => (~item.ChildName.indexOf(val)));
}
},
methods: {
getUserslist() {
this.$http.get('/xxx/xxxx', {
params: {
ServiceUnitId: 111,
Type: 0
}
}).then((res) => {
if(res.data) {
this.otableData=res.data.ResultMaster;
this.resultMaster = res.data.ResultMaster;
} else {
alert('没有数据信息!')
}
});
},
}
//使用Element-Ui中的table的时候,怎么实现表格内容过滤
```html