diff --git a/src/views/datatable/DataTableExportDemo.vue b/src/views/datatable/DataTableExportDemo.vue index aeceaeb52..de7d73aaf 100755 --- a/src/views/datatable/DataTableExportDemo.vue +++ b/src/views/datatable/DataTableExportDemo.vue @@ -2,23 +2,23 @@
-

DataTable - Export

+

DataTable Export

DataTable can export its data to CSV format.

- + - - - - + + + +
@@ -28,35 +28,35 @@ -import CarService from '../../service/CarService'; +import ProductService from '../../service/ProductService'; export default { data() { return { - cars: null + products: null } }, - carService: null, + productService: null, created() { - this.carService = new CarService(); + this.productService = new ProductService(); }, mounted() { - this.carService.getCarsSmall().then(data => this.cars = data); + this.productService.getProductsSmall().then(data => this.products = data); }, methods: { exportCSV() { @@ -72,20 +72,20 @@ export default { \ No newline at end of file