Commit 1179c973 by cwq0219

表格组件-修改

1 parent 679a62a9
......@@ -153,7 +153,9 @@ export default {
searchForm: {
handler(val) {
const attr = Object.keys(val).find(item => val[item] !== this.oldValue[item])
!val[attr] && this.oldValue[attr] && this.refreshTable()
if (!val[attr] && this.oldValue[attr]) {
this.getListApi ? this.refreshTable() : this.$emit('refreshTable', this.page)
}
this.oldValue = _.cloneDeep(val)
},
deep: true
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!