组件
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<template>
|
||||
<div>
|
||||
<el-card shadow="always" :body-style="{ padding: '20px' }" />
|
||||
<SearchForm />
|
||||
<div class="p20">
|
||||
<el-card shadow="always" :body-style="{ padding: '20px' }">
|
||||
<SearchForm ref="SearchForm" @search="getTableList" />
|
||||
</el-card>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@@ -18,6 +19,14 @@ export default {
|
||||
pageSize: 20
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
getTableList() {
|
||||
const tempForm = this.$refs.SearchForm.searchForm;
|
||||
const params = { ...this.searchForm, ...tempForm };
|
||||
console.log(params);
|
||||
// api.list(params)
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user