/*
* @Description : 标准表格页面布局混入
*/
import { datePicker } from '@/components/date-picker';
import basicTableMixin from './basic-table-mixins';
import _ from 'lodash';
export default {
mixins: [
basicTableMixin
],
components: {
datePicker
},
data() {
return {
rootClass: 'page-wrapper', // 根节点class
search: {},
defaultSearch: {} // 默认输入框
}
},
created() {
this.defaultSearch = _.cloneDeep(this.search)
},
methods: {
/* 搜索 */
confirmSearch() {
this.Pagination.PageIndex = 1;
this.getTableData();
},
/* 重置 */
clearSearch() {
this.TableOptions.SearchDateTimes = [];
this.defaultSearch = _.cloneDeep(this.search);
this.getTableData();
}
}
}