1. /*
    2. * @Description : 标准表格页面布局混入
    3. */
    4. import { datePicker } from '@/components/date-picker';
    5. import basicTableMixin from './basic-table-mixins';
    6. import _ from 'lodash';
    7. export default {
    8. mixins: [
    9. basicTableMixin
    10. ],
    11. components: {
    12. datePicker
    13. },
    14. data() {
    15. return {
    16. rootClass: 'page-wrapper', // 根节点class
    17. search: {},
    18. defaultSearch: {} // 默认输入框
    19. }
    20. },
    21. created() {
    22. this.defaultSearch = _.cloneDeep(this.search)
    23. },
    24. methods: {
    25. /* 搜索 */
    26. confirmSearch() {
    27. this.Pagination.PageIndex = 1;
    28. this.getTableData();
    29. },
    30. /* 重置 */
    31. clearSearch() {
    32. this.TableOptions.SearchDateTimes = [];
    33. this.defaultSearch = _.cloneDeep(this.search);
    34. this.getTableData();
    35. }
    36. }
    37. }